Untitled

mail@pastecode.io avatar
unknown
lua
a year ago
470 B
3
Indexable
Never
local running = false
function onThink(cid)
local hp = (getCreatureHealth(cid)/getCreatureMaxHealth(cid))*100
	if (hp < 5.5 and not running) then
	doCreatureSay(cid, "No eres rival para mi!", TALKTYPE_ORANGE_2)
	running = true
	addEvent(Uheal, 7000, cid)
	end
	end

function Uheal(cid)
	running = false
	doCreatureAddHealth(cid, 300000)
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(cid, "Podeeer!", TALKTYPE_ORANGE_2)
	return true
end