XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Change gold

  1. #1
    grave18's Avatar
    Join Date
    Mar 2014
    Posts
    74
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Question Change gold

    Hello.
    I need a script that will click on 100gp and 100pc.

    lua code:
     -- conditions
    if (Container:GetItemData(spot).id == 3031 or Container:GetItemData(spot).id == 3035 and Container:GetItemData(spot).count == 100) then
    Container:UseItem(spot)

    Thanks

  2. #2
    Senior Member
    Join Date
    Jul 2014
    Posts
    788
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by grave18 View Post
    Hello.
    I need a script that will click on 100gp and 100pc.

    lua code:
     -- conditions
    if (Container:GetItemData(spot).id == 3031 or Container:GetItemData(spot).id == 3035 and Container:GetItemData(spot).count == 100) then
    Container:UseItem(spot)

    Thanks
    lua code:

    Module.New("GP:Changer", function(moduleObject)
    for i = 0, 15 do
    local c = Container.New(i)
    if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(c:Name(), "%a+")) then
    for SPOT = c:ItemCount() - 1, 0, -1 do
    local tmp = c:GetItemData(SPOT)
    if (table.contains({3031, 3035}, tmp.id) and tmp.count == 100) then
    c:UseItem(SPOT, true)
    end
    end
    end
    end
    end)
    Last edited by HjugO; 11-21-2015 at 05:30 PM.

Posting Permissions

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