MY

Virar Morador Bug

Por mysticChem, 10 de mai. de 2012 em Scripts

nao fuciona
script
5
1.6k
mysticChemM
10 de maio de 2012 às 22:15

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

Editado Maio 10 por MysticChem

VildenV
11 de maio de 2012 às 00:26

A script parece funcional, acho que o erro é a tag, use essa:

<movevent type="StepIn" actionid="4036;4037;4038;4039;4040;4041;4042;4043;4044;4045;4046;4047;4048" event="script" value="citizen.lua"/>

Só ve os actionid ai e colocar no mapeditor onde quiser (teleport/chão)

se não funcionar adicione de um em um no movements.xml

<movevent type="StepIn" actionid="4038" event="script" value="citizen.lua"/>

Editado Maio 11 por Vilden

mysticChemM
11 de maio de 2012 às 12:23

Vou testar aqui , já dou a resposta!!!

 

BRIGADOO, REP + SEMPRE ME AJUDANDO VILDEN!!!!

 

MUITO BRIGADO MESMO!!

 

KKKKKK, FUI O CENTEZIMO A TE DAR REP QUE PRIVILEGIO!!!

Editado Maio 11 por MysticChem

Makelin1M
11 de maio de 2012 às 17:04

Topico Reportado

Duvida Sanada

HisashiitYamagutiH
11 de maio de 2012 às 19:43

Tópico movido para Dúvidas e Pedidos Atendidos Ot Serv Scripting.