Não está completa mais sim funcional:
function onCastSpell(cid, var) if getCreatureTarget(cid) > 0 then demage = math.random(50, 150) doCreatureAddHealth(getCreatureTarget(cid), -demage) doSendAnimatedText(getThingPos(cid), ""..demage.."", 181) doTeleportThing(cid, getThingPos(getCreatureTarget(cid)), true) doSendMagicEffect(getThingPos(cid), 10) addEvent(doMoveCreature, 200, cid, NORTH) else doPlayerSendCancel(cid, "You need a target for this spell.") return TRUE end end







info
Grupo: Campones
Registrado: 29/09/12
Posts: 32
Reputação: -1
Char no Tibia: [ADM] JuAn
quero uma spell que ao clickar no oponente (no battle) e usar a spell o player seja teleportado para perto do oponente apenas isso flw