elseif spell == "Selfdestruct" then
local function death(cid)
if isCreature(cid) then
if getTilePzInfo(getCreaturePosition(cid)) then return true end
if pokeHaveReflect(cid) then return true end --alterado v1.6
doCreatureAddHealth(cid, -getCreatureMaxHealth(cid))
end
end
doMoveInArea2(cid, 5, selfArea1, NORMALDAMAGE, min, max, spell) --alterado v1.6
addEvent(death, 300, cid)
tenta ai







info
Grupo: Cavaleiro
Registrado: 12/10/09
Posts: 160
Reputação: +19
Gênero: Masculino
tenho problema com esse spell
elseif spell == "Selfdestruct" then local function death(cid) if isCreature(cid) then if pokeHaveReflect(cid) then return true end --alterado v1.6 doCreatureAddHealth(cid, -getCreatureMaxHealth(cid)) end end doMoveInArea2(cid, 5, selfArea1, NORMALDAMAGE, min, max, spell) --alterado v1.6 addEvent(death, 300, cid)