Signup Now
Results 1 to 1 of 1

Thread: Useitemon

  1. #1
    Free User Wesker's Avatar
    Join Date
    Dec 2013
    Posts
    462
    Reputation
    -65
    Rep Power
    0

    Useitemon

    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
    Last edited by Wesker; 12-20-2016 at 03:08 AM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •