diff options
Diffstat (limited to 'npc/other/arena/arena_aco.txt')
-rw-r--r-- | npc/other/arena/arena_aco.txt | 508 |
1 files changed, 225 insertions, 283 deletions
diff --git a/npc/other/arena/arena_aco.txt b/npc/other/arena/arena_aco.txt index 60077b88e..315d61165 100644 --- a/npc/other/arena/arena_aco.txt +++ b/npc/other/arena/arena_aco.txt @@ -1,20 +1,23 @@ //===== Hercules Script ====================================== -//= Izlude Arena script +//= Izlude Arena Script //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.2 +//= 1.5 //===== Description: ========================================= //= Izlude Acolyte Battle Arena //===== Additional Comments: ================================= //= 1.0 First version. //= 1.1 Corrected variable typos. (bugreport:4374) [L0ne_w0lf] //= 1.2 Updated 'waitingroom' to support required zeny/lvl. [Kisuka] +//= 1.3 Label standardization. [Euphy] +//= 1.4 Script updates, and removed two level restrictions. [Euphy] +//= 1.5 Added GM management function. [Euphy] //============================================================ arena_room,114,102,0 script onlyaco#arena 45,1,1,{ OnTouch: - if (baseclass == job_acolyte && baselevel > 9) { + if (BaseClass == Job_Acolyte) { warp "arena_room",135,129; end; } @@ -24,13 +27,11 @@ OnTouch: } } -arena_room,135,126,0 warp byeaco#arena 1,1,arena_room,111,99 - arena_room,136,138,3 script Acolyte Waiting Room 124,{ end; OnInit: - waitingroom "Personal Force, Acolyte Class",50,"Acolyte Waiting Room::OnStartArena",1,1000,10,99; + waitingroom "Personal Force, Acolyte Class",50,"Acolyte Waiting Room::OnStartArena",1,1000,10; enablewaitingroomevent; end; @@ -40,7 +41,7 @@ OnStartArena: disablewaitingroomevent; end; -Onstart: +OnStart: enablewaitingroomevent; end; } @@ -48,63 +49,63 @@ Onstart: force_5-1,100,12,0 script arena#aco -1,5,5,{ OnTouch: donpcevent "allkill#aco::OnEnable"; - if (basejob == job_acolyte) { - donpcevent "arena_aco1::Onstart"; + if (BaseJob == Job_Acolyte) { + donpcevent "arena_aco1::OnStart"; } else { - donpcevent "arena_aco2::Onstart"; + donpcevent "arena_aco2::OnStart"; } disablenpc "arena#aco"; end; } - script arena_aco1 -1,{ -Onstart: +OnStart: donpcevent "Trocco#aco1::OnEnable"; end; -Onreset_01: +OnReset_01: enablenpc "force_01_02#aco"; enablenpc "force_02start#aco"; end; -Onreset_02: - donpcevent "force_02mob#aco::Onreset"; +OnReset_02: + donpcevent "force_02mob#aco::OnReset"; enablenpc "force_02_03#aco"; enablenpc "force_03start#aco"; end; -Onreset_03: +OnReset_03: enablenpc "force_03_04#aco"; enablenpc "force_04start#aco"; end; -Onreset_04: +OnReset_04: enablenpc "force_04_05#aco"; enablenpc "force_05start#aco"; end; -Onreset_05: +OnReset_05: enablenpc "force_05_06#aco"; enablenpc "force_06start#aco"; end; -Onreset_06: +OnReset_06: enablenpc "force_06_07#aco"; enablenpc "force_07start#aco"; end; -Onreset_07: +OnReset_07: enablenpc "force_07_08#aco"; enablenpc "force_08start#aco"; end; -Onreset_08: +OnReset_08: enablenpc "force_08_09#aco"; enablenpc "force_09start#aco"; end; -Onreset_09: +OnReset_09: enablenpc "force_exit#aco"; end; } @@ -129,49 +130,49 @@ OnTimer4000: OnTimer60000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 7 Minutes",bc_map|bc_npc; end; OnTimer120000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 6 Minutes",bc_map|bc_npc; end; OnTimer180000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 5 Minutes",bc_map|bc_npc; end; OnTimer240000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 4 Minutes",bc_map|bc_npc; end; OnTimer300000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 3 Minutes",bc_map|bc_npc; end; OnTimer360000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 2 Minutes",bc_map|bc_npc; end; OnTimer420000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; } mapannounce "force_5-1","Time left: 1 Minute",bc_map|bc_npc; end; @@ -195,77 +196,77 @@ OnTimer494000: OnTimer495000: mapwarp "force_5-1","prt_are_in",177,86; - donpcevent "Trocco#aco1::Onfailclearstage"; + donpcevent "Trocco#aco1::OnFailClearStage"; end; -Ontimeroff: +OnTimerOff: stopnpctimer; end; -Onfailclearstage: +OnFailClearStage: mapwarp "force_5-1","prt_are_in",177,86; - donpcevent "Trocco#aco1::Ontimeroff"; - donpcevent "arena_aco1::Onreset"; + donpcevent "Trocco#aco1::OnTimerOff"; + //donpcevent "arena_aco1::OnReset"; donpcevent "Acolyte Waiting Room::OnStart"; end; -On01_start: +On01_Start: mapannounce "force_5-1","Objective: Destroy all Red Plants!",bc_map|bc_npc; end; -On01_end: +On01_End: mapannounce "force_5-1","The North Exit has opened!",bc_map|bc_npc; end; -On02_start: +On02_Start: mapannounce "force_5-1","Objective: Kill at least 10 Drops!",bc_map|bc_npc; end; -On02_end: +On02_End: mapannounce "force_5-1","The North Exit has opened!",bc_map|bc_npc; end; -On03_start: +On03_Start: mapannounce "force_5-1","Objective: Terminate all Zombies!",bc_map|bc_npc; end; -On03_end: +On03_End: mapannounce "force_5-1","The East Exit has opened!",bc_map|bc_npc; end; -On04_start: +On04_Start: mapannounce "force_5-1","As a courtesy, we'll restore some of your HP and SP. Now, head to the next room! Go go go!!",bc_map|bc_npc; end; -On05_start: +On05_Start: mapannounce "force_5-1","Objective: Obliterate all Orc Zombies!",bc_map|bc_npc; end; -On05_end: +On05_End: mapannounce "force_5-1","The South Exit has opened!",bc_map|bc_npc; end; -On06_start: +On06_Start: mapannounce "force_5-1","Objective: Reach the South Exit while dodging Hydras!",bc_map|bc_npc; end; -On07_start: +On07_Start: mapannounce "force_5-1","Objective: Kill all Archer Skeletons and Firelock Soldiers!",bc_map|bc_npc; end; -On07_end: +On07_End: mapannounce "force_5-1","The West Exit has opened!",bc_map|bc_npc; end; -On08_start: +On08_Start: mapannounce "force_5-1","Objective: Boss Battle. Please proceed to the room to the north!",bc_map|bc_npc; end; -On09_start: +On09_Start: mapannounce "force_5-1","Objective: Kill Zombie Prisoners, Skel Prisoners and Zombie Troops!",bc_map|bc_npc; end; -On09_end: +On09_End: mapannounce "force_5-1","Boss Defeated! The North Exit has opened. Thank you.",bc_map|bc_npc; end; } @@ -279,7 +280,7 @@ OnTouch: - script force_01mob#aco -1,{ OnEnable: - donpcevent "Trocco#aco1::On01_start"; + donpcevent "Trocco#aco1::On01_Start"; monster "force_5-1",22,29,"Red Plant",1078,1,"force_01mob#aco::OnMyMobDead"; monster "force_5-1",29,29,"Red Plant",1078,1,"force_01mob#aco::OnMyMobDead"; monster "force_5-1",29,22,"Red Plant",1078,1,"force_01mob#aco::OnMyMobDead"; @@ -287,14 +288,14 @@ OnEnable: monster "force_5-1",25,25,"Red Plant",1078,1,"force_01mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_01mob#aco::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_01mob#aco::OnMyMobDead") < 1) { - donpcevent "Trocco#aco1::On01_end"; - donpcevent "arena_aco1::Onreset_01"; + donpcevent "Trocco#aco1::On01_End"; + donpcevent "arena_aco1::OnReset_01"; } end; } @@ -309,19 +310,19 @@ OnTouch: - script force_02mob#aco -1,{ OnEnable: - donpcevent "Trocco#aco1::On02_start"; + donpcevent "Trocco#aco1::On02_Start"; areamonster "force_5-1",22,69,29,130,"Drops",1572,20,"force_02mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_02mob#aco::OnMyMobDead"; end; OnMyMobDead: if ((mobcount("force_5-1","force_02mob#aco::OnMyMobDead") < 11) && ($@drop_gate == 0)) { set $@drop_gate,1; - donpcevent "Trocco#aco1::On02_end"; - donpcevent "arena_aco1::Onreset_02"; + donpcevent "Trocco#aco1::On02_End"; + donpcevent "arena_aco1::OnReset_02"; } end; } @@ -334,26 +335,26 @@ OnTouch: - script force_03mob#aco -1,{ OnEnable: - donpcevent "Trocco#aco1::On03_start"; + donpcevent "Trocco#aco1::On03_Start"; areamonster "force_5-1",9,157,41,190,"Zombie",1394,10,"force_03mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_03mob#aco::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_03mob#aco::OnMyMobDead") < 1) { - donpcevent "Trocco#aco1::On03_end"; - donpcevent "arena_aco1::Onreset_03"; + donpcevent "Trocco#aco1::On03_End"; + donpcevent "arena_aco1::OnReset_03"; } end; } force_5-1,69,174,0 script force_04start#aco -1,1,1,{ OnTouch: - donpcevent "Trocco#aco1::On04_start"; - donpcevent "arena_aco1::Onreset_04"; + donpcevent "Trocco#aco1::On04_Start"; + donpcevent "arena_aco1::OnReset_04"; percentheal 50,50; disablenpc "force_04start#aco"; end; @@ -368,18 +369,18 @@ OnTouch: - script force_05mob#aco -1,{ OnEnable: - donpcevent "Trocco#aco1::On05_start"; + donpcevent "Trocco#aco1::On05_Start"; areamonster "force_5-1",159,157,187,190,"Orc Zombie",1463,8,"force_05mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_05mob#aco::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_05mob#aco::OnMyMobDead") < 1) { - donpcevent "Trocco#aco1::On05_end"; - donpcevent "arena_aco1::Onreset_05"; + donpcevent "Trocco#aco1::On05_End"; + donpcevent "arena_aco1::OnReset_05"; } end; } @@ -387,14 +388,14 @@ OnMyMobDead: force_5-1,174,130,0 script force_06start#aco -1,1,1,{ OnTouch: donpcevent "force_06mob#aco::OnEnable"; - donpcevent "arena_aco1::Onreset_06"; + donpcevent "arena_aco1::OnReset_06"; disablenpc "force_06start#aco"; end; } - script force_06mob#aco -1,{ OnEnable: - donpcevent "Trocco#aco1::On06_start"; + donpcevent "Trocco#aco1::On06_Start"; monster "force_5-1",170,124,"Hydra",1579,1,"force_06mob#aco::OnMyMobDead"; monster "force_5-1",170,121,"Hydra",1579,1,"force_06mob#aco::OnMyMobDead"; monster "force_5-1",173,116,"Hydra",1579,1,"force_06mob#aco::OnMyMobDead"; @@ -414,7 +415,7 @@ OnEnable: monster "force_5-1",179,80,"Hydra",1579,1,"force_06mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_06mob#aco::OnMyMobDead"; end; @@ -430,7 +431,7 @@ OnTouch: - script force_07mob#aco -1,{ OnEnable: - donpcevent "Trocco#aco1::On07_start"; + donpcevent "Trocco#aco1::On07_Start"; monster "force_5-1",170,32,"Archer Skeleton",1420,1,"force_07mob#aco::OnMyMobDead"; monster "force_5-1",184,23,"Archer Skeleton",1420,1,"force_07mob#aco::OnMyMobDead"; monster "force_5-1",165,9,"Archer Skeleton",1420,1,"force_07mob#aco::OnMyMobDead"; @@ -438,14 +439,14 @@ OnEnable: monster "force_5-1",189,23,"Firelock Soldier",1523,1,"force_07mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_07mob#aco::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_07mob#aco::OnMyMobDead") < 1) { - donpcevent "Trocco#aco1::On07_end"; - donpcevent "arena_aco1::Onreset_07"; + donpcevent "Trocco#aco1::On07_End"; + donpcevent "arena_aco1::OnReset_07"; } end; } @@ -453,15 +454,15 @@ OnMyMobDead: force_5-1,132,26,0 script force_08start#aco -1,1,1,{ OnTouch: percentheal 50,50; - donpcevent "Trocco#aco1::On08_start"; - donpcevent "arena_aco1::Onreset_08"; + donpcevent "Trocco#aco1::On08_Start"; + donpcevent "arena_aco1::OnReset_08"; disablenpc "force_08start#aco"; end; } force_5-1,99,82,0 script force_09start#aco -1,1,1,{ OnTouch: - donpcevent "Trocco#aco1::On09_start"; + donpcevent "Trocco#aco1::On09_Start"; donpcevent "force_09mob#aco::OnEnable"; disablenpc "force_09start#aco"; end; @@ -474,66 +475,66 @@ OnEnable: areamonster "force_5-1",88,89,111,110,"Zombie",1394,4,"force_09mob#aco::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_09mob#aco::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_09mob#aco::OnMyMobDead") < 1) { - donpcevent "Trocco#aco1::On09_end"; + donpcevent "Trocco#aco1::On09_End"; set $@arn_2,gettimetick(2); - donpcevent "arena_aco1::Onreset_09"; + donpcevent "arena_aco1::OnReset_09"; } end; } - script arena_aco2 -1,{ -Onstart: +OnStart: donpcevent "Trocco#aco2::OnEnable"; end; -Onreset_01: +OnReset_01: enablenpc "force_01_02#aco"; enablenpc "force_02start#pri"; end; -Onreset_02: - donpcevent "force_02mob#pri::Onreset"; +OnReset_02: + donpcevent "force_02mob#pri::OnReset"; enablenpc "force_02_03#aco"; enablenpc "force_03start#pri"; end; -Onreset_03: +OnReset_03: enablenpc "force_03_04#aco"; enablenpc "force_04start#pri"; end; -Onreset_04: +OnReset_04: enablenpc "force_04_05#aco"; enablenpc "force_05start#pri"; end; -Onreset_05: +OnReset_05: enablenpc "force_05_06#aco"; enablenpc "force_06start#pri"; end; -Onreset_06: +OnReset_06: enablenpc "force_06_07#aco"; enablenpc "force_07start#pri"; end; -Onreset_07: +OnReset_07: enablenpc "force_07_08#aco"; enablenpc "force_08start#pri"; end; -Onreset_08: +OnReset_08: enablenpc "force_08_09#aco"; enablenpc "force_09start#pri"; end; -Onreset_09: +OnReset_09: enablenpc "force_exit#aco"; } @@ -557,49 +558,49 @@ OnTimer4000: OnTimer60000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 7 Minutes",bc_map|bc_npc; end; OnTimer120000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 6 Minutes",bc_map|bc_npc; end; OnTimer180000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 5 Minutes",bc_map|bc_npc; end; OnTimer240000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 4 Minutes",bc_map|bc_npc; end; OnTimer300000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 3 Minutes",bc_map|bc_npc; end; OnTimer360000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 2 Minutes",bc_map|bc_npc; end; OnTimer420000: if (getmapusers("force_5-1") == 0) { - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; } mapannounce "force_5-1","Time left: 1 Minute",bc_map|bc_npc; end; @@ -623,85 +624,85 @@ OnTimer494000: OnTimer495000: mapwarp "force_5-1","prt_are_in",177,86; - donpcevent "Trocco#aco2::Onfailclearstage"; + donpcevent "Trocco#aco2::OnFailClearStage"; end; -Ontimeroff: +OnTimerOff: stopnpctimer; end; -Onfailclearstage: +OnFailClearStage: mapwarp "force_5-1","prt_are_in",177,86; - donpcevent "Trocco#aco2::Ontimeroff"; - donpcevent "arena_aco2::Onreset"; + donpcevent "Trocco#aco2::OnTimerOff"; + //donpcevent "arena_aco2::OnReset"; donpcevent "Acolyte Waiting Room::OnStart"; end; -On01_start: +On01_Start: mapannounce "force_5-1","Objective: Kill all Zombies!",bc_map|bc_npc; end; -On01_end: +On01_End: mapannounce "force_5-1","The North Exit has opened!",bc_map|bc_npc; end; -On02_start: +On02_Start: mapannounce "force_5-1","Objective: Defeat all monsters!",bc_map|bc_npc; end; -On02_end: +On02_End: mapannounce "force_5-1","The North Exit has opened!",bc_map|bc_npc; end; -On03_start: +On03_Start: mapannounce "force_5-1","Objective: Destroy all Red Plants!",bc_map|bc_npc; end; -On03_end: +On03_End: mapannounce "force_5-1","The East Exit has opened!",bc_map|bc_npc; end; -On04_start: +On04_Start: mapannounce "force_5-1","Objective: Obliterate every monster!",bc_map|bc_npc; end; -On04_end: +On04_End: mapannounce "force_5-1","The East Exit has opened!",bc_map|bc_npc; end; -On05_start: +On05_Start: mapannounce "force_5-1","Objective: Defeat Gargoyle!",bc_map|bc_npc; end; -On05_end: +On05_End: mapannounce "force_5-1","The South Exit has opened!",bc_map|bc_npc; end; -On06_start: +On06_Start: mapannounce "force_5-1","Objective: Kill all Khalitzburgs!",bc_map|bc_npc; end; -On06_end: +On06_End: mapannounce "force_5-1","The South Exit has opened!",bc_map|bc_npc; end; -On07_start: +On07_Start: mapannounce "force_5-1","Objective: Kill 1 Ancient Mummy!",bc_map|bc_npc; end; -On07_end: +On07_End: mapannounce "force_5-1","The West Exit has opened!",bc_map|bc_npc; end; -On08_start: +On08_Start: mapannounce "force_5-1","The time has come for the Boss Battle. Please move north into the next room...",bc_map|bc_npc; end; -On09_start: +On09_Start: mapannounce "force_5-1","Objective: Defeat the Boss Monster!",bc_map|bc_npc; end; -On09_end: +On09_End: mapannounce "force_5-1","Boss Cleared! The North Exit has opened! Thank you.",bc_map|bc_npc; end; } @@ -715,18 +716,18 @@ OnTouch: - script force_01mob#pri -1,{ OnEnable: - donpcevent "Trocco#aco2::On01_start"; + donpcevent "Trocco#aco2::On01_Start"; areamonster "force_5-1",13,9,38,41,"Zombie",1394,10,"force_01mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_01mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_01mob#pri::OnMyMobDead") < 1) { - donpcevent "Trocco#aco2::On01_end"; - donpcevent "arena_aco2::Onreset_01"; + donpcevent "Trocco#aco2::On01_End"; + donpcevent "arena_aco2::OnReset_01"; } end; } @@ -745,23 +746,23 @@ OnTouch: - script force_02mob#pri -1,{ OnOn1: - donpcevent "Trocco#aco2::On02_start"; + donpcevent "Trocco#aco2::On02_Start"; areamonster "force_5-1",22,69,29,130,"Orc Skeleton",1462,5,"force_02mob#pri::OnMyMobDead"; end; OnOn2: - donpcevent "Trocco#aco2::On02_start"; + donpcevent "Trocco#aco2::On02_Start"; areamonster "force_5-1",22,69,29,130,"Ghoul",1423,5,"force_02mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_02mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_02mob#pri::OnMyMobDead") < 1) { - donpcevent "Trocco#aco2::On02_end"; - donpcevent "arena_aco2::Onreset_02"; + donpcevent "Trocco#aco2::On02_End"; + donpcevent "arena_aco2::OnReset_02"; } end; } @@ -775,18 +776,18 @@ OnTouch: - script force_03mob#pri -1,{ OnEnable: - donpcevent "Trocco#aco2::On03_start"; + donpcevent "Trocco#aco2::On03_Start"; areamonster "force_5-1",14,163,37,185,"Red Plant",1078,5,"force_03mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_03mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_03mob#pri::OnMyMobDead") < 1) { - donpcevent "Trocco#aco2::On03_end"; - donpcevent "arena_aco2::Onreset_03"; + donpcevent "Trocco#aco2::On03_End"; + donpcevent "arena_aco2::OnReset_03"; } end; } @@ -805,7 +806,7 @@ OnTouch: - script force_04mob#pri -1,{ OnOn1: - donpcevent "Trocco#aco2::On04_start"; + donpcevent "Trocco#aco2::On04_Start"; monster "force_5-1",rand(71,130),rand(170,178),"Evil Druid",1435,1,"force_04mob#pri::OnMyMobDead"; monster "force_5-1",rand(71,130),rand(170,178),"Wrath",1475,1,"force_04mob#pri::OnMyMobDead"; monster "force_5-1",rand(71,130),rand(170,178),"Zombie Prisoner",1480,1,"force_04mob#pri::OnMyMobDead"; @@ -813,21 +814,21 @@ OnOn1: end; OnOn2: - donpcevent "Trocco#aco2::On04_start"; + donpcevent "Trocco#aco2::On04_Start"; areamonster "force_5-1",71,170,130,178,"Evil Druid",1435,2,"force_04mob#pri::OnMyMobDead"; areamonster "force_5-1",71,170,130,178,"Wrath",1475,2,"force_04mob#pri::OnMyMobDead"; areamonster "force_5-1",71,170,130,178,"Zombie Prisoner",1480,2,"force_04mob#pri::OnMyMobDead"; monster "force_5-1",rand(71,130),rand(170,178),"Skel Prisoner",1479,1,"force_04mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_04mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_04mob#pri::OnMyMobDead") < 1) { - donpcevent "Trocco#aco2::On04_end"; - donpcevent "arena_aco2::Onreset_04"; + donpcevent "Trocco#aco2::On04_End"; + donpcevent "arena_aco2::OnReset_04"; } end; } @@ -854,7 +855,7 @@ OnOn2: areamonster "force_5-1",161,159,187,190,"Penomena",1441,10,"force_05ex#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_05ex#pri::OnMyMobDead"; end; @@ -864,19 +865,19 @@ OnMyMobDead: - script force_05mob#pri -1,{ OnEnable: - donpcevent "Trocco#aco2::On05_start"; + donpcevent "Trocco#aco2::On05_Start"; areamonster "force_5-1",161,159,187,190,"Gargoyle",1597,4,"force_05mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_05mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_05mob#pri::OnMyMobDead") < 1) { - donpcevent "force_05ex#pri::Onreset"; - donpcevent "Trocco#aco2::On05_end"; - donpcevent "arena_aco2::Onreset_05"; + donpcevent "force_05ex#pri::OnReset"; + donpcevent "Trocco#aco2::On05_End"; + donpcevent "arena_aco2::OnReset_05"; } end; } @@ -902,7 +903,7 @@ OnEnable: areamonster "force_5-1",170,67,178,131,"Permeter",1314,5,"force_06ex#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_06ex#pri::OnMyMobDead"; end; @@ -912,29 +913,29 @@ OnMyMobDead: - script force_06mob#pri -1,{ OnOn1: - donpcevent "Trocco#aco2::On06_start"; + donpcevent "Trocco#aco2::On06_Start"; monster "force_5-1",rand(170,178),rand(67,131),"Khalitzburg",1438,1,"force_06mob#pri::OnMyMobDead"; end; OnOn2: - donpcevent "Trocco#aco2::On06_start"; + donpcevent "Trocco#aco2::On06_Start"; areamonster "force_5-1",170,67,178,131,"Khalitzburg",1438,2,"force_06mob#pri::OnMyMobDead"; end; OnOn3: - donpcevent "Trocco#aco2::On06_start"; + donpcevent "Trocco#aco2::On06_Start"; areamonster "force_5-1",170,67,178,131,"Khalitzburg",1438,4,"force_06mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_06mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_06mob#pri::OnMyMobDead") < 1) { - donpcevent "force_06ex#pri::Onreset"; - donpcevent "Trocco#aco2::On06_end"; - donpcevent "arena_aco2::Onreset_06"; + donpcevent "force_06ex#pri::OnReset"; + donpcevent "Trocco#aco2::On06_End"; + donpcevent "arena_aco2::OnReset_06"; } end; } @@ -948,33 +949,33 @@ OnTouch: - script force_07mob#pri -1,{ OnEnable: - donpcevent "Trocco#aco2::On07_start"; + donpcevent "Trocco#aco2::On07_Start"; monster "force_5-1",rand(160,188),rand(9,42),"Ancient Mummy",1522,1,"force_07mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_07mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_07mob#pri::OnMyMobDead") < 1) { - donpcevent "Trocco#aco2::On07_end"; - donpcevent "arena_aco2::Onreset_07"; + donpcevent "Trocco#aco2::On07_End"; + donpcevent "arena_aco2::OnReset_07"; } end; } force_5-1,132,26,0 script force_08start#pri -1,1,1,{ OnTouch: - donpcevent "Trocco#aco2::On08_start"; - donpcevent "arena_aco2::Onreset_08"; + donpcevent "Trocco#aco2::On08_Start"; + donpcevent "arena_aco2::OnReset_08"; disablenpc "force_08start#pri"; end; } force_5-1,99,82,0 script force_09start#pri -1,1,1,{ OnTouch: - donpcevent "Trocco#aco2::On09_start"; + donpcevent "Trocco#aco2::On09_Start"; if (BaseLevel < 70) { donpcevent "force_09mob#pri::OnOn4"; } @@ -1010,15 +1011,15 @@ OnOn4: areamonster "force_5-1",88,89,111,110,"Zombie",1394,4,"force_09mob#pri::OnMyMobDead"; end; -Onreset: +OnReset: killmonster "force_5-1","force_09mob#pri::OnMyMobDead"; end; OnMyMobDead: if (mobcount("force_5-1","force_09mob#pri::OnMyMobDead") < 1) { - donpcevent "Trocco#aco2::On09_end"; + donpcevent "Trocco#aco2::On09_End"; set $@arn_2,gettimetick(2); - donpcevent "arena_aco2::Onreset_09"; + donpcevent "arena_aco2::OnReset_09"; } end; } @@ -1026,7 +1027,7 @@ OnMyMobDead: force_5-1,62,26,0 script force_08_01#aco 45,1,1,{ OnTouch: warp "force_5-1",40,26; - if (basejob == job_acolyte) { + if (BaseJob == Job_Acolyte) { enablenpc "force_01start#aco"; } else { @@ -1035,68 +1036,9 @@ OnTouch: end; } -/* -force_5-1,25,44,0 warp force_01_02#aco 1,1,force_5-1,25,69 -force_5-1,25,134,0 warp force_02_03#aco 1,1,force_5-1,25,159 -force_5-1,44,174,0 warp force_03_04#aco 1,1,force_5-1,69,174 -force_5-1,134,174,0 warp force_04_05#aco 1,1,force_5-1,159,174 -force_5-1,174,155,0 warp force_05_06#aco 1,1,force_5-1,174,130 -force_5-1,174,65,0 warp force_06_07#aco 1,1,force_5-1,174,40 -force_5-1,155,26,0 warp force_07_08#aco 1,1,force_5-1,132,26 -force_5-1,99,54,0 warp force_08_09#aco 1,1,force_5-1,99,82 -*/ - -force_5-1,25,44,0 script force_01_02#aco 45,1,1,{ -OnTouch: - warp "force_5-1",25,69; - end; -} - -force_5-1,25,134,0 script force_02_03#aco 45,1,1,{ -OnTouch: - warp "force_5-1",25,159; - end; -} - -force_5-1,44,174,0 script force_03_04#aco 45,1,1,{ -OnTouch: - warp "force_5-1",69,174; - end; -} - -force_5-1,134,174,0 script force_04_05#aco 45,1,1,{ -OnTouch: - warp "force_5-1",159,174; - end; -} - -force_5-1,174,155,0 script force_05_06#aco 45,1,1,{ -OnTouch: - warp "force_5-1",174,130; - end; -} - -force_5-1,174,65,0 script force_06_07#aco 45,1,1,{ -OnTouch: - warp "force_5-1",174,40; - end; -} - -force_5-1,155,26,0 script force_07_08#aco 45,1,1,{ -OnTouch: - warp "force_5-1",132,26; - end; -} - -force_5-1,99,54,0 script force_08_09#aco 45,1,1,{ -OnTouch: - warp "force_5-1",99,82; - end; -} - force_5-1,99,124,0 script force_exit#aco 45,1,1,{ OnTouch: - donpcevent "Trocco#aco1::Ontimeroff"; + donpcevent "Trocco#aco1::OnTimerOff"; donpcevent "#arn_timer_aco::OnEnable"; mapwarp "force_5-1","prt_are_in",21,35; end; @@ -1186,18 +1128,18 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ if (arena_point < 29981) { set arena_point,arena_point+20; warp "arena_room",100,75; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "#arn_timer_aco::OnStop"; donpcevent "Acolyte Waiting Room::OnStart"; } else { warp "arena_room",100,75; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "#arn_timer_aco::OnStop"; donpcevent "Acolyte Waiting Room::OnStart"; } end; } else { - if (basejob == job_acolyte) { + if (BaseJob == Job_Acolyte) { set .@acotop_t,$arn_acotop; set .@acotop_n$,$arn_acotopn$; } @@ -1253,10 +1195,10 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ mes "name will now be listed"; mes "under the Time Force Battle"; mes "Arena - Acolyte Class Record!"; - if (basejob == job_acolyte) { + if (BaseJob == Job_Acolyte) { set $arn_acotop,.@record_timeaco; set $arn_acotopn$, strcharinfo(0); - donpcevent "Vendigos::Onlinerec_aco"; + donpcevent "Vendigos::OnLineRec_aco"; } else { if (BaseLevel < 70) { @@ -1275,7 +1217,7 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ set $arn_pritop90,.@record_timeaco; set $arn_pritopn90$, strcharinfo(0); } - donpcevent "Vendigos::Onlinerec_pri"; + donpcevent "Vendigos::OnLineRec_pri"; } next; if (arena_point == 30000) { @@ -1330,7 +1272,7 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ } specialeffect2 EF_EXIT; warp "arena_room",100,75; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "#arn_timer_aco::OnStop"; donpcevent "allkill#aco::OnEnable"; donpcevent "Acolyte Waiting Room::OnStart"; end; @@ -1394,7 +1336,7 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ } specialeffect2 EF_EXIT; warp "arena_room",100,75; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "#arn_timer_aco::OnStop"; donpcevent "allkill#aco::OnEnable"; donpcevent "Acolyte Waiting Room::OnStart"; end; @@ -1412,31 +1354,31 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ mes "the Time Force Battle Arena"; mes "Acolyte Class Records."; mes "Congratulations~"; - if (basejob == job_acolyte) { + if (BaseJob == Job_Acolyte) { set $arn_acotop,.@record_timeaco; set $arn_acotopn$, strcharinfo(0); - donpcevent "#Vendigos::Onlinerec_aco"; + donpcevent "#Vendigos::OnLineRec_aco"; } else { if (BaseLevel < 70) { set $arn_pritop60,.@record_timeaco; set $arn_pritopn60$, strcharinfo(0); - donpcevent "#Vendigos::Onlinerec_pri60"; + donpcevent "#Vendigos::OnLineRec_pri60"; } else if (BaseLevel < 80) { set $arn_pritop70,.@record_timeaco; set $arn_pritopn70$, strcharinfo(0); - donpcevent "#Vendigos::Onlinerec_pri70"; + donpcevent "#Vendigos::OnLineRec_pri70"; } else if (BaseLevel < 90) { set $arn_pritop80,.@record_timeaco; set $arn_pritopn80$, strcharinfo(0); - donpcevent "#Vendigos::Onlinerec_pri80"; + donpcevent "#Vendigos::OnLineRec_pri80"; } else { set $arn_pritop90,.@record_timeaco; set $arn_pritopn90$, strcharinfo(0); - donpcevent "#Vendigos::Onlinerec_pri90"; + donpcevent "#Vendigos::OnLineRec_pri90"; } } next; @@ -1492,11 +1434,11 @@ prt_are_in,25,31,3 script Staff#aco-2 67,{ } specialeffect2 EF_EXIT; warp "arena_room",100,75; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "#arn_timer_aco::OnStop"; donpcevent "allkill#aco::OnEnable"; donpcevent "Acolyte Waiting Room::OnStart"; } - close; + end; } } @@ -1518,13 +1460,13 @@ OnTimer4000: end; OnTimer60000: - donpcevent "arn_warp_aco::Onout"; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "arn_warp_aco::OnOut"; + donpcevent "#arn_timer_aco::OnStop"; //donpcevent "alloff#aco::OnEnable"; donpcevent "Acolyte Waiting Room::OnStart"; end; -Onstop: +OnStop: stopnpctimer; end; } @@ -1534,17 +1476,17 @@ OnInit: disablenpc "arn_warp_aco"; end; -Onout: +OnOut: enablenpc "arn_warp_aco"; end; -Onhide: +OnHide: disablenpc "arn_warp_aco"; end; OnTouch: warp "arena_room",100,75; - donpcevent "arn_warp_aco::Onhide"; + donpcevent "arn_warp_aco::OnHide"; end; } @@ -1553,29 +1495,29 @@ OnEnable: initnpctimer; end; -Onstop: +OnStop: stopnpctimer; end; } - script allkill#aco -1,{ OnEnable: - donpcevent "force_01mob#aco::Onreset"; - donpcevent "force_02mob#aco::Onreset"; - donpcevent "force_03mob#aco::Onreset"; - donpcevent "force_05mob#aco::Onreset"; - donpcevent "force_06mob#aco::Onreset"; - donpcevent "force_07mob#aco::Onreset"; - donpcevent "force_09mob#aco::Onreset"; - donpcevent "force_01mob#pri::Onreset"; - donpcevent "force_02mob#pri::Onreset"; - donpcevent "force_03mob#pri::Onreset"; - donpcevent "force_04mob#pri::Onreset"; - donpcevent "force_05mob#pri::Onreset"; - donpcevent "force_06mob#pri::Onreset"; - donpcevent "force_07mob#pri::Onreset"; - donpcevent "force_09mob#pri::Onreset"; - donpcevent "force_05ex#pri::Onreset"; + donpcevent "force_01mob#aco::OnReset"; + donpcevent "force_02mob#aco::OnReset"; + donpcevent "force_03mob#aco::OnReset"; + donpcevent "force_05mob#aco::OnReset"; + donpcevent "force_06mob#aco::OnReset"; + donpcevent "force_07mob#aco::OnReset"; + donpcevent "force_09mob#aco::OnReset"; + donpcevent "force_01mob#pri::OnReset"; + donpcevent "force_02mob#pri::OnReset"; + donpcevent "force_03mob#pri::OnReset"; + donpcevent "force_04mob#pri::OnReset"; + donpcevent "force_05mob#pri::OnReset"; + donpcevent "force_06mob#pri::OnReset"; + donpcevent "force_07mob#pri::OnReset"; + donpcevent "force_09mob#pri::OnReset"; + donpcevent "force_05ex#pri::OnReset"; disablenpc "force_01start#aco"; disablenpc "force_02start#aco"; disablenpc "force_03start#aco"; @@ -1604,9 +1546,9 @@ OnEnable: disablenpc "force_08_09#aco"; disablenpc "force_exit#aco"; disablenpc "arn_warp_aco"; //050630 - donpcevent "Trocco#aco1::Onstop"; - donpcevent "Trocco#aco2::Onstop"; - donpcevent "#arn_timer_aco::Onstop"; + donpcevent "Trocco#aco1::OnTimerOff"; + donpcevent "Trocco#aco2::OnTimerOff"; + donpcevent "#arn_timer_aco::OnStop"; end; } @@ -1626,7 +1568,7 @@ arena_room,94,82,7 script Arena Record Staff#aco 79,{ mes "Class Arena Challenges?"; mes "Please choose from the menu."; next; - switch(select("Acolyte Mode:Priest - Level 70 or lower:Priest - Level 80 or lower:Priest - Level 90 or lower:Priest - Level 91 ~ 99")) { + switch(select("Acolyte Mode:Priest - Level 70 or lower:Priest - Level 80 or lower:Priest - Level 90 or lower:Priest - Level 91 ~ "+(checkre(0)?"160":"99"))) { case 1: set .@acotop_t,$arn_acotop; set .@acotop_n$,$arn_acotopn$; @@ -1685,24 +1627,24 @@ OnInit: } - script #Vendigos -1,{ -Onlinerec_aco: +OnLineRec_aco: mapannounce "arena_room","Vendigos: "+$arn_acotopn$+" has made a new record in the Arena Time Force Battle - Acolyte Mode. Congratulations!",bc_map,"0xFFFF00"; end; -Onlinerec_pri60: +OnLineRec_pri60: mapannounce "arena_room","Vendigos: "+$arn_pritopn60$+" has made a new record in the Arena Time Force Battle - Priest: Level 70 or lower. Congratulations!",bc_map,"0xFFFF00"; end; -Onlinerec_pri70: +OnLineRec_pri70: mapannounce "arena_room","Vendigos: "+$arn_pritopn70$+" has made a new record in the Arena Time Force Battle - Priest: Level 80 or lower. Congratulations!",bc_map,"0xFFFF00"; end; -Onlinerec_pri80: +OnLineRec_pri80: mapannounce "arena_room","Vendigos: "+$arn_pritopn80$+" has made a new record in the Arena Time Force Battle - Priest: Level 90 or lower. Congratulations!",bc_map,"0xFFFF00"; end; -Onlinerec_pri90: - mapannounce "arena_room","Vendigos: "+$arn_pritopn90$+" has made a new record in the Arena Time Force Battle - Priest: Level 91~99. Congratulations!",bc_map,"0xFFFF00"; +OnLineRec_pri90: + mapannounce "arena_room","Vendigos: "+$arn_pritopn90$+" has made a new record in the Arena Time Force Battle - Priest: Level 91~"+(checkre(0)?"160":"99")+". Congratulations!",bc_map,"0xFFFF00"; end; } @@ -1749,7 +1691,7 @@ arena_room,140,136,3 script Guide Alias 729,{ mes "entire stage, you will be"; mes "warped to the ^3131DDFinale Waiting"; mes "Room^000000 where you'll be rewarded"; - mes "with Arena Points. But you must^FFFFFFaaaa^000000 get your points within 1 minute."; + mes "with Arena Points. But you must get your points within 1 minute."; next; mes "[Alias]"; mes "Once you're automatically"; @@ -1766,21 +1708,21 @@ arena_room,140,136,3 script Guide Alias 729,{ close; } -/* arena_room,195,5,3 script log-on-aco#arena 802,{ - input .@input; //,0,2000; - if (.@input == 0) { + set .@i, callfunc("F_GM_NPC",1357,0); + if (.@i == -1) { mes "^3355FFIncorrect Password.^000000"; close; - } - else if (.@input == 1357) { + } else if (.@i == 0) { + end; + } else { mes "[!!CAUTION!!]"; mes "^3355FFThe following menu"; mes "the record for that"; mes "particular mode in the"; mes "Arena Acolyte Class Mode.^000000"; next; - switch(select("Cancel:Acolyte:~level 70:~level 80:~level 90:~level 99")) { + switch(select("Cancel:Acolyte:~level 70:~level 80:~level 90:~level "+(checkre(0)?"160":"99"))) { case 1: mes "^3355FFCommand has"; mes "been canceled.^000000"; @@ -1811,13 +1753,14 @@ arena_room,195,5,3 script log-on-aco#arena 802,{ } arena_room,195,10,3 script acolink#arena 802,{ - input .@input; //,0,2000; - if (.@input == 0) { + set .@i, callfunc("F_GM_NPC",1357,0); + if (.@i == -1) { mes "Command has"; mes "been canceled."; close; - } - else if (.@input == 1357) { + } else if (.@i == 0) { + end; + } else { mes "This NPC opens and"; mes "closes the Warp Portal"; mes "to the Arena's Acolyte"; @@ -1842,4 +1785,3 @@ arena_room,195,10,3 script acolink#arena 802,{ } } } -*/ |