bom eu uso essa
elseif spell == "Aqua Ring" then
local min = (getCreatureMaxHealth(cid)) / 100
local max = (getCreatureMaxHealth(cid)) / 100
local function doHealArea(cid, min, max)
if not isCreature(cid) then return false end
if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return false end
if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
local amount = isSummon(cid) and getMasterLevel(cid)+getPokemonBoost(cid)+500 or getPokemonLevel(cid)+500
if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then
amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid))
end
if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then
doCreatureAddHealth(cid, amount)
doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65)
end
end
doSendMagicEffect(getThingPosWithDebug(cid), 132)
doHealArea(cid, min, max)
times = {0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000}
setPlayerStorageValue(cid, 3644587, 1)
addEvent(setPlayerStorageValue, 10000, cid, 3644587, -1)
for i = 1, #times do--alterado v1.4
addEvent(doHealArea, times, cid)
end
e nunca deu error mano






info
Grupo: Marquês
Registrado: 23/09/12
Posts: 1k
Reputação: +87
Gênero: Masculino
essa spell ta dando bug no meu server PDA alguem tem como me ajudar? ela funfa direito mas da lag