function onThink(interval, lastExecution, thinkInterval)
for _, pid in pairs(getPlayersOnline()) do
if(getCreatureHealth(pid) >= (getCreatureMaxHealth(pid)*0.7)) then
doSendMagicEffect(getThingPosition(pid), 170)
end
end
return true
end
function onThink(interval, lastExecution, thinkInterval)
for _, pid in pairs(getPlayersOnline()) do
if getCreatureHealth(pid) >= getCreatureMaxHealth(pid) * 0.7 then
doSendMagicEffect(getThingPosition(pid), 170)
elseif getCreatureMaxHealth(pid) * 0.3 <= getCreatureHealth(pid) < getCreatureMaxHealth(pid) * 0.7 then
doSendMagicEffect(getThingPosition(pid), 175)
end
end
return true
end