Não esta fucionando meu virar morador da city
sempre que passo no Tp não fuciona, e quando dou /t vai para ab'dendriel , as actions id no map editor estão corretas.
Meu script:
<movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/>
Agora o citizen.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,13)
elseif (item.actionid == 4037) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Carlin.")
doPlayerSetTown(cid,4)
elseif (item.actionid == 4038) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Ab'Dendriel.")
doPlayerSetTown(cid,5)
elseif (item.actionid == 4039) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Kazordoon.")
doPlayerSetTown(cid,3)
elseif (item.actionid == 4040) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Thais.")
doPlayerSetTown(cid,2)
elseif (item.actionid == 4041) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Venore.")
doPlayerSetTown(cid,1)
elseif (item.actionid == 4042) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Darashia.")
doPlayerSetTown(cid,10)
elseif (item.actionid == 4043) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Ankrahmun.")
doPlayerSetTown(cid,9)
elseif (item.actionid == 4044) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Edron.")
doPlayerSetTown(cid,11)
elseif (item.actionid == 4045) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Port Hope.")
doPlayerSetTown(cid,8)
elseif (item.actionid == 4046) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Liberty Bay.")
doPlayerSetTown(cid,7)
elseif (item.actionid == 4047) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Svargrond.")
doPlayerSetTown(cid,12)
elseif (item.actionid == 4048) then
doPlayerSendTextMessage(cid,24,"Now you are citizen of Farmine.")
doPlayerSetTown(cid,14)
end
end
end
Alguém pode me ajudar, não esta fucionando uso tfs 0.4 e mapa global
por favor preciso de ajuda