• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Problem with citizen movement script

bury

Active Member
Joined
Jul 27, 2008
Messages
421
Solutions
7
Reaction score
25
Hello, im using tfs 0.4

I use this script for make someone citizen of any city. It works 100% but with my custom cities: Gengia, Oken and Pyre, it doesn't move yourself to temple position with magiceffect on pos, when you get the teleport.

LUA:
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if (item.actionid == 4036) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Yalahar.")
doPlayerSetTown(cid,1)

elseif (item.actionid == 4037) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Carlin.")
doPlayerSetTown(cid,2)

elseif (item.actionid == 4038) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Ab'Dendriel.")
doPlayerSetTown(cid,3)

elseif (item.actionid == 4039) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Kazordoon.")
doPlayerSetTown(cid,4)

elseif (item.actionid == 4040) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Thais.")
doPlayerSetTown(cid,5)

elseif (item.actionid == 4041) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Venore.")
doPlayerSetTown(cid,6)

elseif (item.actionid == 4042) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Darashia.")
doPlayerSetTown(cid,7)

elseif (item.actionid == 4043) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Ankrahmun.")
doPlayerSetTown(cid,8)

elseif (item.actionid == 4044) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Edron.")
doPlayerSetTown(cid,9)

elseif (item.actionid == 4045) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Port Hope.")
doPlayerSetTown(cid,10)

elseif (item.actionid == 4046) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Liberty Bay.")
doPlayerSetTown(cid,12)

elseif (item.actionid == 4047) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Svargrond.")
doPlayerSetTown(cid,13)

elseif (item.actionid == 4048) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Gengia.")
doPlayerSetTown(cid,15)

elseif (item.actionid == 4049) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Oken.")
doPlayerSetTown(cid,17)

elseif (item.actionid == 4050) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Pyre.")
doPlayerSetTown(cid,18)

end
end
end

LUA:
    <!-- Citizen teleport -->
    <movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/>

In RL cities working 100% and move yourself to the temple (how? lol that is not written in the script), but in my custom cities it doesnt work. Just make yourself citizen of that city and send you the message. TP position is well set on RME on the three cities. If I make /town oken with the admin, you arrive the properly temple position.

Thanks!
 
Teleport destination must be wrong.
Check tp in map editor.

I dont know what I was thinking about :O I was so convinced that was another script what was doing that, that forgot about RME destination. Sorry.

Thanks!!
 
Back
Top