• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

changing what city i live in

Quickshot

Member
Joined
Nov 8, 2008
Messages
595
Reaction score
8
hi i need a script to change were i live. just like real tibia when you go threw the portal in the temple you become that citys resident. rep++ thanks in advance. also im using v0.2.9(mystic spirit)
 
Code:
function onStepIn(cid, item, position, fromPosition)
local townId = 1
	doPlayerSetTown(cid, townId)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".")
return true
end
 
and what do i do with that? plz explain im a nub

edit. i think i did it but im getting a error and also dont have the funtion "getTownName"

edit. found a script that works
 
Last edited:
Well I know no fu**ing shit about scripts but i guess you need to change the "You are the newest resident of (you city name)" and the "getTownName" put the id of the town It's a number like maybe 1 if It's main but you need to know what's the number maybe something else


function onStepIn(cid, item, position, fromPosition)
local townId = 1
doPlayerSetTown(cid, townId)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".")
return true
end



Hope you've gotten what you want :D
 
Back
Top