<movevent event="StepIn" uniqueid="30303" script="city.lua" />
function onStepIn(cid, item, position, fromPosition)
local townId = 1 -- your town id please.
doPlayerSetTown(cid, townId)
doPlayerSendTextMessage(cid, 19, "Welcome new resident of CityName.") -- change the message if you want.
return TRUE
end
<movevent event="StepIn" uniqueid="30303" script="city.lua" />
function onStepIn(cid, item, position, fromPosition)
local townId = 2 -- your town id please.
doPlayerSetTown(cid, townId)
doPlayerSendTextMessage(cid, 19, "Welcome new resident of rhyves.") -- change the message if you want.
return TRUE
end