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