Results 1 to 3 of 3

Thread: Monsters Health

  1. #1
    iBot User zedendagua's Avatar
    Join Date
    Nov 2012
    Posts
    60
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Monsters Health

    Hello everybody...
    How can i stop to atack a monster if its health goes less then 50%?

    If ????? then
    stopatack()
    end


    Thanks

  2. #2
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    U don't need action for that, set up in the targeting to attack if health 50% to 100%

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  3. #3
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Code:
    --[[ INIT START ]]--
    	local CREATURES = {"demon", "ferumbras"}
    	local _VALUE = 50
    --[[ INIT END ]]--
    
    if table.find(CREATURES, target.name) and target.hppc < _VALUE then
    	stopattack()
    	wait(200, 400)
    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
  •