miklus
New Member
Hello!
i have problem on mine server... i can't change town id... i enter teleport but always i respawn on town 1 ( i want town number 2 ). PLease script for change town !! TFS 0.3.4PL2 !!
PS. In map editor i have 3 tows, alls great... only script doesn't work.
i have problem on mine server... i can't change town id... i enter teleport but always i respawn on town 1 ( i want town number 2 ). PLease script for change town !! TFS 0.3.4PL2 !!
Code:
function onStepIn(cid, item, pos)
if item.actionid == 9000 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Enigma.')
doPlayerSetTown(cid,1)
elseif item.actionid == 9001 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Edron.')
doPlayerSetTown(cid,2)
elseif item.actionid == 9002 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Endhoria.')
doPlayerSetTown(cid,3)
end
return 1
end
PS. In map editor i have 3 tows, alls great... only script doesn't work.
Last edited: