function onCastSpell(cid, var)
local jogadorpos = getCreaturePosition(cid)local target = getCreatureTarget(cid)
local monsterpos = getCreaturePosition(target)
if target == isMonster or isCreature then
doTeleportThing(cid,monsterpos)
doSendMagicEffect(jogadorpos, 229)
doTargetCombatHealth(cid, target, ELEMENTODODANO, -DANOMINIMO, -DANOMAXIMO, EFEITO)
else
doPlayerSendTextMessage(cid,20,'Precisa Selecionar um Alvo')
end
end
ai é só configurar, tudo que tá em pura maiscula






info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino
Tenho essa magia aki,ela teleportado o alvo ao target,tem como colocar para tirar dano?