Results 1 to 10 of 10

Thread: Help Action!

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Help Action!

    an action that someone would make the bot pick up items from the floor with x cap? this while hunting, I found in the forum to which that well ne looking if someone could help me thank you.

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9

    local ITEMS = {"plate armor","steel helmet"}
    local CAPACITY = 30 --cap to loot
    local DIRECTIONS = {"n","s","e","w","ne","nw","se","sw","c"}

    if cap >= CAPACITY then
    for k = 1, #ITEMS do
    for v = 1, #DIRECTIONS do
    pickupitems(DIRECTIONS[v], ITEMS[k])
    end
    end
    end

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Soder thanks, more so I doubt he takes a loot for which pulls the backpack

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9

    local ITEMS = {"plate armor","steel helmet"}
    local CAPACITY = 30 --cap to loot
    local LOOT_BACKPACK = "red backpack"

    if cap >= CAPACITY then
    for k = 1, #ITEMS do
    local ITEM = itemid(ITEMS[k])

    for X = -1, 1 do
    for Y = -1, 1 do
    if toptileitem(posx+X,posy+Y,posz) == ITEM then
    movetems(ITEM,ground(posx+X,posy+Y,posz),LOOT_BACKPACK,100)
    end
    end
    end
    end
    end

  5. #5
    iBot User
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks !!!

  6. #6
    iBot User
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Soder how do I make the action take the iten even going a bit far

  7. #7
    iBot User
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    help me soder the second action step that you me is not working ...

  8. #8
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Any errors in debug console?

  9. #9
    iBot User
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    the second action not simply picks the items to go near them, the first takes longer works so well when passing near, and throws it all in the first bp.

  10. #10
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    What??

Posting Permissions

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