• 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!

Help with citizen.lua

Johanz

New Member
Joined
Dec 31, 2008
Messages
188
Reaction score
1
I would like to make so when you enter the portal you become a citizen of the town. Used tfs 0.3.1 before and recently changed to 0.3.6 so i dont know how to config it :/

Can anyone explain it to me or edit with help of my old file?

--------------only using the first 6.

function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if (item.actionid == 20001) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Fairy port!")
doPlayerSetTown(cid,1)


elseif (item.actionid == 20003) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Chioz!")
doPlayerSetTown(cid,2)

elseif (item.actionid == 20004) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Sandmere!")
doPlayerSetTown(cid,6)

elseif (item.actionid == 20005) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Farcrest.")
doPlayerSetTown(cid,4)

elseif (item.actionid == 20006) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Eldkeep!")
doPlayerSetTown(cid,7)

elseif (item.actionid == 20007) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Wild Haven!")
doPlayerSetTown(cid,5)

elseif (item.actionid == 20008) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Lebers.")
doPlayerSetTown(cid,8)

elseif (item.actionid == 20010) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Comarca.")
doPlayerSetTown(cid,10)

elseif (item.actionid == 20011) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Shimara.")
doPlayerSetTown(cid,11)

elseif (item.actionid == 20012) then
doPlayerSendTextMessage(cid,22,"You are now a citizen of Dalaran.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20015) then
doPlayerSendTextMessage(cid,22,"Welcome to the great city of Dalaran, you are now a citizen of the main town in World of Cythera.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20016) then
doPlayerSendTextMessage(cid,22,"Welcome to the great city of Dalaran, you are now a citizen of the main town in World of Cythera.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20017) then
doPlayerSendTextMessage(cid,22,"Welcome to the great city of Dalaran, you are now a citizen of the main town in World of Cythera.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20018) then
doPlayerSendTextMessage(cid,22,"Welcome to the great city of Dalaran, you are now a citizen of the main town in World of Cythera.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20019) then
doPlayerSendTextMessage(cid,22,"Have a nice time in Utgarde Keep!")
doPlayerSetTown(cid,14)

elseif (item.actionid == 20020) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20021) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20022) then
doPlayerSendTextMessage(cid,22,"Have a nice time in Utgarde Keep!")
doPlayerSetTown(cid,15)

elseif (item.actionid == 20023) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20024) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20025) then
doPlayerSendTextMessage(cid,22,"Have a nice time in The Nexus!")
doPlayerSetTown(cid,16)

elseif (item.actionid == 20026) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20027) then
doPlayerSendTextMessage(cid,22,"Have a nice time in The Nexus!")
doPlayerSetTown(cid,17)

elseif (item.actionid == 20028) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20029) then
doPlayerSendTextMessage(cid,22,"Have a nice time in The Black Temple!")
doPlayerSetTown(cid,18)

elseif (item.actionid == 20030) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20031) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20032) then
doPlayerSendTextMessage(cid,22,"Have a nice time in Naxxramas!")
doPlayerSetTown(cid,18)

elseif (item.actionid == 20033) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 20034) then
doPlayerSendTextMessage(cid,22,"Feel free to come back.")
doPlayerSetTown(cid,12)
end
end
end
 
Back
Top