Results 1 to 2 of 2

Thread: Weapon Changer - Spears - Spike Sword

  1. #1
    iScripter
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    69
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    38
    Rep Power
    4

    Weapon Changer - Spears - Spike Sword

    Hello. I want make script for AB Trolls for pally. I want loot spears and use it and change it when don't have any spear for spike sword. If i don't have any spears after loot it i want change it back to spear. Any action for me?

    Thanks.

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    [xcode=lua]local DistanceWeapon = "spear"
    local AlternativeWeapon = "spike sword"
    local MinSpearToWear = 5 -- min spear to move

    if weaponamount == 0 then
    if weapon ~= itemid(AlternativeWeapon) and itemcount(AlternativeWeapon) > 0 then
    pausewalking(2000)
    moveitems(AlternativeWeapon, "all", "weapon", 100)
    wait(150,250)
    end
    else
    if weapon ~= itemid(DistanceWeapon) and itemcount(DistanceWeapon) > MinSpearToWear then
    pausewalking(2000)
    moveitems(DistanceWeapon, "all", "weapon", 100)
    wait(150,250)
    end
    end[/xcode]

    Made by @JuicyScripts I did edit a bit, hopefully without stupid bugs, didn't tested

Posting Permissions

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