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
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino
Tenho essa magia aki,ela teleportado o alvo ao target,tem como colocar para tirar dano?