Results 1 to 3 of 3

Thread: Use sword when no spears available

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

    Use sword when no spears available

    That's it guys, the title pretty much says everything. I'm starting a paladin, and would like to have him using a serpent sword while hunting trolls, but once that he gahter 5 spears, it moves the sword to the backpack and uses the spears until he riuns out of it.

    Can anyone give me an idea of how this is done? Is this something Action-related?
    Thank you all very much!

  2. #2
    iBot User Nosekim's Avatar
    Join Date
    Feb 2012
    Posts
    1,089
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    70
    Rep Power
    7
    when you have 1 spear in hand the bot will change to sword you choose
    you need to set the backpack where your spear will be!

    PHP Code:
    local SwordToUse "serpent sword"
    local PallyWeapon "spear"
    local SpearBP "orange backpack"

    if weapon ~= PallyWeapon and itemcount(PallyWeaponSpearBP) >= and maround(0) == 0
    then moveitems
    (PallyWeapon"all""weapon"100)
    wait(1000)
    elseif 
    weaponamount <= and maround(0) == 0
    then moveitems
    (SwordToUse"all""weapon"100)
    end 

  3. #3
    iBot User
    Join Date
    Apr 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you very much!
    I`ve ran some simple tests and it seems to work perfect! I'll have my paladin hunting over the night and let you know about the results...

Posting Permissions

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