Перейти к содержанию

Отладка


Krivedkin

Рекомендуемые сообщения

После перевода, через некоторое время после запуска сервера, происходит отладка дирижабля.

[Debug]: NPCEvent 'Airship#airplane02::OnEnable' not found! (source: Internation
al_Airship)

Что это за отладка?

Чем она чревата?

Вот кусок кода, где эта отладка находится, выделил часть когда, которую отлаживает сервер.

airplane_01,1,1,0 script International_Airship -1,{
end;
OnInit:
OnEnable:
initnpctimer;
end;
OnTimer25000:
mapannounce "airplane_01","We are heading to Izlude.",bc_map,"0x00ff00";
end;
OnTimer50000:
mapannounce "airplane_01","We will arrive in Izlude shortly.",bc_map,"0x00ff00";
end;
OnTimer60000:
set $@airplanelocation2,1;
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01","Welcome to Izlude. Have a safe trip.",bc_map,"0x00ff00";
end;
OnTimer70000:
mapannounce "airplane_01","We are currently in Izlude. The Airship will take off shortly.",bc_map,"0x00ff00";
end;
OnTimer80000:
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
mapannounce "airplane_01","The Airship is now taking off. Our next destination is Juno.",bc_map,"0x70dbdb";
end;
OnTimer105000:
mapannounce "airplane_01","We are heading to Juno.",bc_map,"0x70dbdb";
end;
OnTimer130000:
mapannounce "airplane_01","We will arrive in Juno shortly.",bc_map,"0x70dbdb";
end;
OnTimer140000:
set $@airplanelocation2,2;
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01","Welcome to Juno. Have a safe trip.",bc_map,"0x70dbdb";
end;
OnTimer150000:
mapannounce "airplane_01","We are currently in Juno. The Airship will leave shortly.",bc_map,"0x70dbdb";
end;
OnTimer160000:
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
mapannounce "airplane_01","The Airship is leaving the ground. Our next destination is Rachel.",bc_map,"0xFF8200";
end;
OnTimer185000:
mapannounce "airplane_01","We are heading to Rachel.",bc_map,"0xFF8200";
end;
OnTimer210000:
mapannounce "airplane_01","We will arrive in Rachel shortly.",bc_map,"0xFF8200";
end;
OnTimer220000:
set $@airplanelocation2,0;
donpcevent "#AirshipWarp-3::OnUnhide";
donpcevent "#AirshipWarp-4::OnUnhide";
mapannounce "airplane_01","Welcome to Rachel. Have a safe trip.",bc_map,"0xFF8200";
end;
OnTimer230000:
mapannounce "airplane_01","We are currently in Rachel. The Airship will take off shortly.",bc_map,"0xFF8200";
end;
OnTimer240000:
donpcevent "#AirshipWarp-3::OnHide";
donpcevent "#AirshipWarp-4::OnHide";
mapannounce "airplane_01","The Airship is now taking off. Our next destination is Izlude.",bc_map,"0x00ff00";
stopnpctimer;
set .moninv, .moninv + 1;
if (.moninv == 7) {
if (rand(1,3) == 3) {


donpcevent "Airship#airplane02::OnEnable";


end;
}
set .moninv, 0;
}
initnpctimer;
end;
}

И в какую сторону лезть, чтобы данное сообщение не выводилось?

Или оно должно выводиться обязательно?

Ссылка на комментарий
Поделиться на другие сайты

Если бы имя нпц было...

Имени Airship#airplane02 как раз таки не существует.

Жаре, ревизия 17099. =)

Кусок выдран не с перевода, а с оригинала.

Это сёрч по всем нпц на дирижабле

Search "Airship#airplane02" (1 hits in 1 files)

*\Renewal-17099\trunk\npc\airports\airships.txt (1 hits)

Line 751: donpcevent "Airship#airplane02::OnEnable";

Поиск проведен по оригиналу.

Изменено пользователем Krivedkin
Ссылка на комментарий
Поделиться на другие сайты

https://rathena.svn....sts_airship.txt

строка 1083

а чуть ниже и евент OnEnable

Проверяйте

Спасип Жаре, как всегда выручаешь)

Я забыл про квесты=)

Искал в самом дирижабле...

Ссылка на комментарий
Поделиться на другие сайты

×
×
  • Создать...
Яндекс.Метрика