Results 1 to 9 of 9

Thread: spear refil

  1. #1
    Normal User
    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    spear refil

    some action that checks when <= 1 spears in hand then takes spears from bp to hand
    if spears in hand = 0 then put some weapon in hand


    thx

  2. #2
    Normal User Tomix's Avatar
    Join Date
    Aug 2012
    Posts
    78
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    36
    Rep Power
    5
    PHP Code:
    CONFIG CONFIG or {
        
    WEAPON "serpent sword",
        
    DISTANCE "spear",
        
        
    DISTANCE_MIN 2, -- minimum spears in bp to switch from weapon
    }

    if (
    weapon == itemid(CONFIG.WEAPON)) and (itemcount(CONFIG.DISTANCE) >= CONFIG.DISTANCE_MINthen
        moveitems
    (CONFIG.DISTANCE,"all","weapon",100)
    elseif (
    weapon == 0) and (itemcount(CONFIG.DISTANCE) < CONFIG.DISTANCE_MINthen
        moveitems
    (CONFIG.WEAPON,"all","weapon",1)
    elseif (
    weapon == 0) and (itemcount(CONFIG.DISTANCE) >= CONFIG.DISTANCE_MINthen
        moveitems
    (CONFIG.DISTANCE,"all","weapon",100)
    elseif (
    weapon == itemid(CONFIG.DISTANCE)) and (itemcount(CONFIG.DISTANCE) > 0then
        moveitems
    (CONFIG.DISTANCE,"all","weapon",100)
    end 
    Try it, not tested. Change weapon for yourself.
    Last edited by Tomix; 01-12-2013 at 02:27 PM.

  3. #3
    Normal User
    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    working, thanks!

  4. #4
    Normal User Tomix's Avatar
    Join Date
    Aug 2012
    Posts
    78
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    36
    Rep Power
    5
    np. good luck!

  5. #5
    Normal User
    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    if isnt asking too much, alredy asking
    i'd like something that when it is attacking without spear (with melee weapong), it changes the settings on the creatures to attack in offensive mode.
    I'm new using the bot system, sorry :s

  6. #6
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Wow, pointless.

    Just add a refiller rule for spears. to just move all your spears to your hand.

  7. #7
    Normal User
    Join Date
    Jun 2012
    Posts
    119
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post
    Wow, pointless.

    Just add a refiller rule for spears. to just move all your spears to your hand.
    he's probably at trolls

  8. #8
    Normal User
    Join Date
    Jan 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by pink_panther View Post
    Wow, pointless.

    Just add a refiller rule for spears. to just move all your spears to your hand.
    what if there is no more spears then? :s

  9. #9
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by piva666 View Post
    he's probably at trolls
    My suggestion would still work. Just add spears to looting if you have less than X cap, or X spears left.

    Quote Originally Posted by graxa View Post
    what if there is no more spears then? :s
    My suggestion would still work

    You add spears to refill and it takes them straight out of your bag and into your hand. If you have none, the nothing happens


    Furthermore, you just bumped a year old thread. zzz

Posting Permissions

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