Results 1 to 2 of 2

Thread: To stop attack when monster is low hp.

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

    To stop attack when monster is low hp.

    Hello guys,

    I need a action to stop attack when monster is low hp. Anyone can help me?

  2. #2
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    Lua Code:
    local health = 30 -- // % hp to stop attacking
     
    if (target.id ~= 0) and (target.hppc <= health) then
        stopattack()
        wait(1000,2000)
    end

Posting Permissions

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