Results 1 to 4 of 4

Thread: [HELP] Strike Instead of SD monster LowHP

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    [SOLVED] Strike Instead of SD monster LowHP

    Hi there.

    I am trying to figure out an action to change the spell from SD to Flame Strike when target hp is lower then 10-20%.

    Should be something like this

    Code:
    if (hppc(7, "Crawler") <= 15 then 
        
    
    setsettings("Settings\\Targeting\\Monsters\\Crawler\\ListSettings\\Setting0\\ListSpell\\Spell0", "Flame Strike") 
    else 
        setsettings("Settings\\Targeting\\Monsters\\Crawler\\ListSettings\\Setting0\\ListSpell\\Spell0", "Sudden Death Rune") 
    end
    But it doesn't work.. Could some1 check this out and tell me what's wrong? Or maybe link me to a similar script that works? =)

    Thank you in advance!

    Cheers
    Last edited by Runkpapper; 06-22-2013 at 09:32 AM. Reason: SOLVED

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    Code:
    if target.name == "Crawler" and target.hppc <= 15 then 
        
    
    setsettings("Settings\\Targeting\\Monsters\\Crawler\\ListSettings\\Setting0\\ListSpell\\Spell0", "Flame Strike") 
    else 
        setsettings("Settings\\Targeting\\Monsters\\Crawler\\ListSettings\\Setting0\\ListSpell\\Spell0", "Sudden Death Rune") 
    end

  3. #3
    Normal User
    Join Date
    Dec 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by Drakke View Post
    Code:
    if target.name == "Crawler" and target.hppc <= 15 then 
        
    
    setsettings("Settings\\Targeting\\Monsters\\Crawler\\ListSettings\\Setting0\\ListSpell\\Spell0", "Flame Strike") 
    else 
        setsettings("Settings\\Targeting\\Monsters\\Crawler\\ListSettings\\Setting0\\ListSpell\\Spell0", "Sudden Death Rune") 
    end
    Love <3 Fast response, like it! Will try it out!


    [Edit] It works! Thanks a bunch! rep+
    Last edited by Runkpapper; 06-22-2013 at 09:33 AM.

  4. #4
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    No problem buddy!

Posting Permissions

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