useitemon ( number idused , number idusedon , optional string locationusedon , optional number idindex )
- useitemon(23722,3031,"Jewelled Backpack",2)
code is not working with index if you take out the index its working, well its not doing anything because you need the index but it attempts to click the stack of gold
i think that jewelled backpack has some kind of error its buggy most of the time
local GoldConverter = 23722
local Cap = 640
auto(1000)
--for i=0,15 do
-- local cont = getcontainer(i)
--for j=1,cont.itemcount do
-- if cont.item[j].count == 100 and cont.item[j].id == 3031 then
--print(j)
--print(i)
--print(cont.item[j].id)
--useitemon(23722, 3031, "Zaoan Chess Box", 2)
--end
--end
--end
--for i=0,15 do
local cont = getcontainer("Jewelled Backpack")
for j=1,cont.itemcount do
if cont.item[j].count == 100 and cont.item[j].id == 3031 then
print(cont.item[j])
print(j)
useitemon(23722, cont.item[j].id, "Jewelled Backpack", 2)
end
--if cont.item[j].count == 100 and (cont.item[j].id == 3035 or cont.item[j].id == 3031) then
-- useitem(cont.item[j].id, i, j)
--end
--end
end
after gazillion tests i can only say useitemon is not working i tried everything that values are correct
stupid mistake just delete thread