Results 1 to 4 of 4

Thread: Equipping looted spears

  1. #1
    iBot User
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4

    Equipping looted spears

    Hi,

    So basically the title says it all. Ive browsed the forum a bit looking for it, I found one action from 2012, changed it so its goin like this

    PHP Code:
    if (weaponamount <= 4then
        moveitems
    ("Spear""all" weapon
    end 
    I've set the bot to loot the spears in to the bp, then equip them when the ammo falls below 4. Technically it should work, the bot is trying to drag the spears, but nothing besides the dragging is happening. All I can see is that the bot is trying to move something(the spears).

    Anyone could please help me with that?
    Last edited by Kanapketti; 04-22-2014 at 04:20 PM.

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    817
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    345 Post(s)
    Reputation
    462
    Rep Power
    10
    Lua Code:
     
    if weaponamount <= 4
    then
        moveitems("spear", "all", "weapon", 100)
    end
    Last edited by blakw; 04-22-2014 at 04:13 PM.


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    iBot User
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4
    He stopped draggin at all when I copied this action :|

    EDIT: Its workin, suddenly started to work as soon as I added the "end" at the end. Thanks!
    Last edited by Kanapketti; 04-22-2014 at 04:17 PM.

  4. #4
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    817
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    345 Post(s)
    Reputation
    462
    Rep Power
    10
    Lua Code:
     
    if weaponamount <= 4 and itemcount("spear") >= 1
    then
        moveitems("spear", "all", "weapon", 100)
    end


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

Posting Permissions

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