function doRegenerateWithHeld(cid,sid)
local ball = getPlayerSlotItem(cid, 8) or getPlayerSlotItem(getCreatureMaster(cid), 8)
if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
return false
end
if isSummon(sid) then
if isPlayer(cid) and #getCreatureSummons(cid) > 0 then
if isCreature(sid) and getItemAttribute(ball.uid, "regenheld") == 1 and getCreatureHealth(sid) < getCreatureMaxHealth(sid) then
addEvent(function() doCreatureAddHealth(sid,1000) doSendAnimatedText(getThingPos(sid), "+1000", 30) end, 0)
end
end
addEvent(doRegenerateWithHeld, 1000, cid, sid)
end
end







info
Grupo: Barão
Registrado: 31/07/09
Posts: 205
Reputação: +24
Gênero: Masculino
preciso de ajuda nessa função