* Added 'OnInterIfInitOnce' for WoE scripts & modified the WoE scripts as well [Ajarn & Codemaster] [Thanks to FREYA] [SVN 943]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@943 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
487f212144
commit
65bc36dba7
@ -1,5 +1,6 @@
|
||||
Date Added
|
||||
01/09
|
||||
01/0
|
||||
* Added 'OnInterIfInitOnce' for WoE scripts & modified the WoE scripts as well [Ajarn & Codemaster] [Thanks to FREYA] [SVN 943]
|
||||
* Added the @sound command and the NPC command of soundeffectall
|
||||
- works just like soundeffect, but plays for everyone in the area [Codemaster] [SVN 942]
|
||||
* Don't allow Pets to attack Guardians outside of WoE [Codemaster] [SVN 940]
|
||||
|
@ -34,6 +34,8 @@ Other Ppl
|
||||
|
||||
Date Added
|
||||
======
|
||||
01/09/05
|
||||
* Modified guild war scripts to fix a bug for duplicate guild storages. [Codemaster & Ajarn]
|
||||
8/1
|
||||
* Added the new Yuno field warps by Sara-chan [celest]
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
// Castle 1 ================================================================
|
||||
aldeg_cas01.gat,216,24,0 script Agit_A01 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA01";
|
||||
end;
|
||||
OnRecvCastleA01:
|
||||
@ -39,7 +39,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 2 ================================================================
|
||||
aldeg_cas02.gat,214,24,0 script Agit_A02 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "aldeg_cas02.gat",0,"::OnRecvCastleA02";
|
||||
end;
|
||||
OnRecvCastleA02:
|
||||
@ -62,7 +62,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 3 ================================================================
|
||||
aldeg_cas03.gat,206,32,0 script Agit_A03 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "aldeg_cas03.gat",0,"::OnRecvCastleA03";
|
||||
end;
|
||||
OnRecvCastleA03:
|
||||
@ -85,7 +85,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 4 ================================================================
|
||||
aldeg_cas04.gat,36,218,0 script Agit_A04 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "aldeg_cas04.gat",0,"::OnRecvCastleA04";
|
||||
end;
|
||||
OnRecvCastleA04:
|
||||
@ -108,7 +108,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 5 ================================================================
|
||||
aldeg_cas05.gat,28,102,0 script Agit_A05 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "aldeg_cas05.gat",0,"::OnRecvCastleA05";
|
||||
end;
|
||||
OnRecvCastleA05:
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
// Castle 1 ================================================================
|
||||
gefg_cas01.gat,198,182,0 script Agit_G01 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "gefg_cas01.gat",0,"::OnRecvCastleG01";
|
||||
end;
|
||||
OnRecvCastleG01:
|
||||
@ -39,7 +39,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 2 ================================================================
|
||||
gefg_cas02.gat,176,178,0 script Agit_G02 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "gefg_cas02.gat",0,"::OnRecvCastleG02";
|
||||
end;
|
||||
OnRecvCastleG02:
|
||||
@ -62,7 +62,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 3 ================================================================
|
||||
gefg_cas03.gat,245,167,0 script Agit_G03 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "gefg_cas03.gat",0,"::OnRecvCastleG03";
|
||||
end;
|
||||
OnRecvCastleG03:
|
||||
@ -85,7 +85,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 4 ================================================================
|
||||
gefg_cas04.gat,174,178,0 script Agit_G04 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "gefg_cas04.gat",0,"::OnRecvCastleG04";
|
||||
end;
|
||||
OnRecvCastleG04:
|
||||
@ -108,7 +108,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 5 ================================================================
|
||||
gefg_cas05.gat,194,184,0 script Agit_G05 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "gefg_cas05.gat",0,"::OnRecvCastleG05";
|
||||
end;
|
||||
OnRecvCastleG05:
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
// Castle 1 ================================================================
|
||||
nguild_alde.gat,0,0,0 script Agit_N01 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "nguild_alde.gat",0,"::OnRecvCastleN01";
|
||||
end;
|
||||
OnRecvCastleN01:
|
||||
@ -38,7 +38,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 2 ================================================================
|
||||
nguild_gef.gat,0,0,0 script Agit_N02 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "nguild_gef.gat",0,"::OnRecvCastleN02";
|
||||
end;
|
||||
OnRecvCastleN02:
|
||||
@ -61,7 +61,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 3 ================================================================
|
||||
nguild_pay.gat,0,0,0 script Agit_N03 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "nguild_pay.gat",0,"::OnRecvCastleN03";
|
||||
end;
|
||||
OnRecvCastleN03:
|
||||
@ -84,7 +84,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 4 ================================================================
|
||||
nguild_prt.gat,0,0,0 script Agit_N04 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "nguild_prt.gat",0,"::OnRecvCastleN04";
|
||||
end;
|
||||
OnRecvCastleN04:
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
// Castle 1 ================================================================
|
||||
payg_cas01.gat,139,139,0 script Agit_Py01 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "payg_cas01.gat",0,"::OnRecvCastlePy01";
|
||||
end;
|
||||
OnRecvCastlePy01:
|
||||
@ -39,7 +39,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 2 ================================================================
|
||||
payg_cas02.gat,39,25,0 script Agit_Py02 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "payg_cas02.gat",0,"::OnRecvCastlePy02";
|
||||
end;
|
||||
OnRecvCastlePy02:
|
||||
@ -62,7 +62,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 3 ================================================================
|
||||
payg_cas03.gat,269,265,0 script Agit_Py03 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "payg_cas03.gat",0,"::OnRecvCastlePy03";
|
||||
end;
|
||||
OnRecvCastlePy03:
|
||||
@ -85,7 +85,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 4 ================================================================
|
||||
payg_cas04.gat,271,29,0 script Agit_Py04 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "payg_cas04.gat",0,"::OnRecvCastlePy04";
|
||||
end;
|
||||
OnRecvCastlePy04:
|
||||
@ -108,7 +108,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 5 ================================================================
|
||||
payg_cas05.gat,30,30,0 script Agit_Py05 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "payg_cas05.gat",0,"::OnRecvCastlePy05";
|
||||
end;
|
||||
OnRecvCastlePy05:
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
// Castle 1 ================================================================
|
||||
prtg_cas01.gat,197,197,0 script Agit_Pt01 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "prtg_cas01.gat",0,"::OnRecvCastlePt01";
|
||||
end;
|
||||
OnRecvCastlePt01:
|
||||
@ -39,7 +39,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 2 ================================================================
|
||||
prtg_cas02.gat,158,174,0 script Agit_Pt02 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "prtg_cas02.gat",0,"::OnRecvCastlePt02";
|
||||
end;
|
||||
OnRecvCastlePt02:
|
||||
@ -62,7 +62,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 3 ================================================================
|
||||
prtg_cas03.gat,17,221,0 script Agit_Pt03 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "prtg_cas03.gat",0,"::OnRecvCastlePt03";
|
||||
end;
|
||||
OnRecvCastlePt03:
|
||||
@ -85,7 +85,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 4 ================================================================
|
||||
prtg_cas04.gat,292,14,0 script Agit_Pt04 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "prtg_cas04.gat",0,"::OnRecvCastlePt04";
|
||||
end;
|
||||
OnRecvCastlePt04:
|
||||
@ -108,7 +108,7 @@ OnAgitEnd:
|
||||
|
||||
// Castle 5 ================================================================
|
||||
prtg_cas05.gat,266,266,0 script Agit_Pt05 -1,{
|
||||
OnInterIfInit:
|
||||
OnInterIfInitOnce:
|
||||
GetCastleData "prtg_cas05.gat",0,"::OnRecvCastlePt05";
|
||||
end;
|
||||
OnRecvCastlePt05:
|
||||
|
@ -36,13 +36,14 @@ static const int packet_len_table[0x20] = {
|
||||
-1,-1,10, 6,11,-1, 0, 0, // 2b10-2b17
|
||||
};
|
||||
|
||||
int char_fd;
|
||||
int char_fd = -1;
|
||||
int srvinfo;
|
||||
static char char_ip_str[16];
|
||||
static int char_ip;
|
||||
static int char_port = 6121;
|
||||
static char userid[24], passwd[24];
|
||||
static int chrif_state;
|
||||
static int chrif_state = 0;
|
||||
static int char_init_done = 0;
|
||||
|
||||
// 設定ファイル読み込み関係
|
||||
/*==========================================
|
||||
@ -256,6 +257,11 @@ int chrif_connectack(int fd)
|
||||
ShowStatus(tmp_output);
|
||||
sprintf(tmp_output,"Event '"CL_WHITE"OnInterIfInit"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs.\n", npc_event_doall("OnInterIfInit"));
|
||||
ShowStatus(tmp_output);
|
||||
if(!char_init_done) {
|
||||
char_init_done = 1;
|
||||
sprintf(tmp_output,"Event '"CL_WHITE"OnInterIfInitOnce"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs.\n", npc_event_doall("OnInterIfInitOnce"));
|
||||
ShowStatus(tmp_output);
|
||||
}
|
||||
|
||||
// <Agit> Run Event [AgitInit]
|
||||
// printf("NPC_Event:[OnAgitInit] do (%d) events (Agit Initialize).\n", npc_event_doall("OnAgitInit"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user