doPlayerSendTextMessage(cid,19,"From now you are citizen from [I]yourtownhere[/I]!")
pos = {x=100, y=100, z=7}
doTeleportThing(cid,pos, 0)
doPlayerSetTown(cid, 1)
bumb, altough its outdated - i am someone who actually uses the search function
so, could anyone help me?
how to use that code? make it an actionid/unique id? explain please.
just put this in the script
doPlayerSetTown(cid, 1) 1= the id of the town.
edit: better version
Code:doPlayerSendTextMessage(cid,19,"From now you are citizen from [I]yourtownhere[/I]!") pos = {x=100, y=100, z=7} doTeleportThing(cid,pos, 0) doPlayerSetTown(cid, 1)
<movevent event="StepIn" actionid="[COLOR=Red]ACTIONID[/COLOR]" function="settown1.lua"/>
doPlayerSendTextMessage(cid,19,"From now you are citizen from [I]yourtownhere[/I]!")
pos = {x=100, y=100, z=7}
doTeleportThing(cid,pos, 0)
doPlayerSetTown(cid, 1)