Results 1 to 8 of 8

Thread: fire sword action

  1. #1
    Normal User
    Join Date
    Nov 2012
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    fire sword action

    i dont know if this is the right place to post this but i need an action that if theres 2 or more ghost equip fire sword and kill the ghost.
    thanks

  2. #2
    Normal User
    Join Date
    Nov 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    default : sword that you use to hunt.

    Code:
    local iWeapon = { default = "Bright Sword", elemental = "Fire Sword" }
    local iTarget = "Ghost"

    if target.name == iTarget then
    if weapon ~= itemid(iWeapon.elemental) then
    setlooting("no")
    wait(500)
    moveitems(iWeapon.elemental, "all", "weapon", 1)
    wait(1000)
    setlooting("yes")
    end
    else
    if weapon ~= itemid(iWeapon.default) then
    setlooting("no")
    wait(500)
    moveitems(iWeapon.default, "all", "weapon", 1)
    wait(1000)
    setlooting("yes")
    end
    end

  3. #3
    Normal User
    Join Date
    Nov 2012
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    is this for a single ghost or for 2 or more?

  4. #4
    Normal User
    Join Date
    Feb 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    for single ghost
    for 2 or more do you want add maroud action

  5. #5
    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
    In my opinion the better way to fix that is:

    Add ghost as 'Only if trapped'
    Buy some HMMs for example 100.
    Put HMM in spell list.

    but it's just an opinion, good luck!

  6. #6
    Normal User
    Join Date
    Nov 2012
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    you just gave me a great idea thanks

  7. #7
    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
    I have an action that equips a firesword only while your target is a ghost, then have ghost on targeting set to only if trapped.
    PHP Code:
    local ghostWeapon "Fire Sword"
    local otherWeapon "Shiny Blade"

    if target.name == "Ghost" or target.name == "Pirate Ghost" then

    if  weapon ~= itemid(ghostWeaponthen
    moveitems
    (ghostWeapon"all""weapon"1)
    end

    else

    if 
    weapon ~= itemid(otherWeaponthen
    moveitems
    (otherWeapon"all""weapon"1)
    end

    end 
    works, and you dont need to worry about buying hmms

  8. #8
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,482
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Quote Originally Posted by pink_panther View Post
    I have an action that equips a firesword only while your target is a ghost, then have ghost on targeting set to only if trapped.
    PHP Code:
    local ghostWeapon "Fire Sword"
    local otherWeapon "Shiny Blade"

    if target.name == "Ghost" or target.name == "Pirate Ghost" then

    if  weapon ~= itemid(ghostWeaponthen
    moveitems
    (ghostWeapon"all""weapon"1)
    end

    else

    if 
    weapon ~= itemid(otherWeaponthen
    moveitems
    (otherWeapon"all""weapon"1)
    end

    end 
    works, and you dont need to worry about buying hmms
    Ye, it works very well!

Posting Permissions

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