Jump to content

Add gem in socket slot


79135

Recommended Posts

  • 1 year later...

hello, 

i am deeply sorry i was late, I've been busy with work and irl, here is what you are looking for ? Hope you and others enjoy.

function PickItemUp(SearchItemName)
    i=(SearchItemName)d=1 for x=0,4 do for 
        y=1,GetContainerNumSlots(x) do if (d>0) then 
            l=GetContainerItemLink(x,y) 
               if l and GetItemInfo(l)==i 
                   then PickupContainerItem(x,y) 
                     d=d-1 
                end 
            end 
        end 
    end
end

function GemSocketing(ItemSlotID, GemName, slotID)
    if ( not ItemSocketingFrame:IsShown() ) then
        SocketInventoryItem(ItemSlotID)
    end

    if (ItemSocketingFrame:IsVisible() == nil) then
        SocketInventoryItem(ItemSlotID)
    end
    PickItemUp(GemName)
    if ( CursorHasItem() ) then
        ClickSocketButton(slotID) 
    end
    AcceptSockets() 
    if ( ItemSocketingFrame:IsShown() ) then
        HideUIPanel(ItemSocketingFrame);
    end
end

GemSocketing(2, "Accurate Huge Citrine", 1)
		//armor slot number, Gem name, gem frame slot number
armor slots : 
0 = ammo
1 = head
2 = neck
3 = shoulder
4 = shirt
5 = chest
6 = belt
7 = legs
8 = feet
9 = wrist
10 = gloves
11 = finger 1
12 = finger 2
13 = trinket 1
14 = trinket 2
15 = back
16 = main hand
17 = off hand
18 = ranged
19 = tabard
20 = first bag (the rightmost one)
21 = second bag
22 = third bag
23 = fourth bag (the leftmost one)

 

Edited by TheSmokie
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...