XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Is this possible!?

  1. #1

    Join Date
    Dec 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Is this possible!?

    I recently started playing inferna, as part of the pk team of jik~, the thing is...
    It's better to just not refill since you'll get assraped in the cities while getting fresh supps.

    So my question is:
    is it possible to let the bot loot from a bag/backpack that is on the floor, let him put on spears / mana's ?

    Sincerely Yours,

    Nikk

  2. #2
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Of course, but something this specific requires more details. How would you set up your supply bag that's on the floor?

  3. #3

    Join Date
    Dec 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Just put a bag on the floor of the tomb for example.
    Once het gets to waypoint X he checks the supplies
    if <XX he opens the backpack and picks up XX supplies

  4. #4
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Nikkos View Post
    Just put a bag on the floor of the tomb for example.
    Once het gets to waypoint X he checks the supplies
    if <XX he opens the backpack and picks up XX supplies
    Yes but the script side of that is a tad more confusing. Watch...

    lua code:
    local spearID = 1234
    local stockPos = {x = 1234, y = 1234, z = 7}

    registerEventListener(WALKER_SELECTLABEL, "onLabel")

    function onLabel(label)
    if (label == 'Restock') then
    if (Self.ItemCount(spearID) <= 10) then
    Walker.Stop()
    local c = Container.New(Self.UseItemFromGround(stockPos.x, stockPos.y, stockPos.z))
    wait(1000, 1200)
    if c:isOpen() then
    -- Here is where it's a bit more involved, this is just assuming the manas are directly inside the bp on ground. Finding them inside another bp would be even harder.
    while Self.ItemCount(spearID) <= 20 do
    for s = 0, c:ItemCount() do
    local i = c:GetItemData(s)
    if (i.id == manaID) then
    c:MoveItemToContainer(s, 0, math.min(100, maxManas - Self.ItemCount(manaID)))
    wait(500, 900)
    break
    end
    end
    end
    else
    print("Opening container failed.")
    end
    Self.Equip(spearID, 'weapon')
    wait(500, 900)
    Walker.Start()
    end
    end
    end
    Last edited by Spectrus; 02-22-2013 at 10:45 AM.

  5. #5

    Join Date
    Dec 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I see, can you make it that he just picks up spears out of the backpack when it's below 10?
    If possible also equips them

  6. #6
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Nikkos View Post
    I see, can you make it that he just picks up spears out of the backpack when it's below 10?
    If possible also equips them
    I updated the example I posted to work like you want, wasn't sure how many you wanted to pick up so I set it to up to 15.

  7. #7

    Join Date
    Dec 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much!! will try it out right away

  8. #8

    Join Date
    Dec 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Doesn't work=/ It doesn't open the backpack below him..

    * Made a label with Restock and ran the lua ofc.
    Last edited by Nikkos; 02-22-2013 at 11:10 AM.

  9. #9

    Join Date
    Dec 2012
    Posts
    130
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If I give him a hand and open the bp for him, he does pick up a spear and puts it on weapon slot.. but that's it..
    Does it mather if it's a backpack or bag? No right/

  10. #10
    Lifetime Subscriber Nostrax's Avatar
    Join Date
    May 2012
    Location
    Belgium
    Posts
    2,388
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Be aware of floor resets, which might get u killed cuz of no bag = no manas

Posting Permissions

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