Hello, i have that script for change the residence of player
but that dont found, i put the unique id 50101, and action 50101 to teleport, but that dont found someone can help me?
Code:
--Example change voc and masterpos--
function onUse(cid, item, frompos, item2, topos)
if item.uid==50101 then
newpos = {x=32369, y=32241, z=7}
doPlayerSetTown(cid, 4)
doPlayerSendTextMessage(cid,22,"You have changed your residence to Thais")
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,12)
return 1
end
end
but that dont found, i put the unique id 50101, and action 50101 to teleport, but that dont found someone can help me?