data/spells/spells.xml
Data/Spells/scripts/create a new lua(called: transfer)
PHP:
<instant name="Transfer of Bodies" words="utori con mas" lvl="100" mana="800" needtarget="1" prem="0" range="5" exhaustion="1000" blockwalls="1" needlearn="0" script="transfer.lua">
<vocation name="Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Master Sorcerer"/>
<vocation name="Elder Druid"/>
</instant>
PHP:
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)
doTeleportThing(target,jogadorpos)
doSendMagicEffect(jogadorpos, 65)
doSendMagicEffect(monsterpos, 65)
else
doPlayerSendTextMessage(cid,20,'You can only use it on creatures')
end
end