diff options
Diffstat (limited to 'npc/battleground/tierra/tierra02.txt')
-rw-r--r-- | npc/battleground/tierra/tierra02.txt | 161 |
1 files changed, 81 insertions, 80 deletions
diff --git a/npc/battleground/tierra/tierra02.txt b/npc/battleground/tierra/tierra02.txt index aa5f09215..0e7cc773d 100644 --- a/npc/battleground/tierra/tierra02.txt +++ b/npc/battleground/tierra/tierra02.txt @@ -1,23 +1,25 @@ //===== Hercules Script ====================================== // BattleGround System - Tierra Gorge 2 -//===== By: ================================================== +//===== By: ================================================== //= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= [AEGIS Conversion] +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= [Official Conversion] //= Second Tierra Gorge Battleground. //= - Winning Team: 3 badges //= - Losing Team: 1 badge -//===== Additional Comments: ================================= +//===== Additional Comments: ================================= //= 1.0 First Version. //= 1.1 Updated 'waitingroom' to support required zeny/lvl. [Kisuka] //= 1.2 Removed MaxLvl check in waitingrooms. +//= 1.3 Label standardization. [Euphy] +//= 1.4 Added GM management function. [Euphy] //============================================================ // Waiting Room NPCs //============================================================ -bat_room,114,227,5 script Lieutenant Rundel 418,{ +bat_room,114,227,5 script Lieutenant Rundel 4_M_KY_KNT,{ end; OnInit: @@ -29,7 +31,7 @@ OnEnterBG: end; } -bat_room,114,204,1 script Lieutenant Guerrit 414,{ +bat_room,114,204,1 script Lieutenant Guerrit 4_M_CRU_KNT,{ end; OnInit: @@ -41,10 +43,10 @@ OnEnterBG: end; } -bat_room,1,151,3 script #bat_a02_timer 844,{ +bat_room,1,151,3 script #bat_a02_timer CLEAR_NPC,{ end; -onInit: +OnInit: OnEnable: initnpctimer; end; @@ -89,24 +91,24 @@ bat_room,113,211,0 warp back_bgrooma02b 1,1,bat_room,154,150 // Tierra Gorge Battleground Engine //============================================================ -bat_a02,15,15,3 script start#bat_a02 844,{ +bat_a02,15,15,3 script start#bat_a02 CLEAR_NPC,{ OnInit: mapwarp "bat_a02","bat_room",154,150; end; OnEnable: - donpcevent "OBJ#bat_a02_a::Onkill"; + donpcevent "OBJ#bat_a02_a::OnKill"; donpcevent "OBJ#bat_a02_a::OnEnable"; - donpcevent "OBJ#bat_a02_b::Onkill"; + donpcevent "OBJ#bat_a02_b::OnKill"; donpcevent "OBJ#bat_a02_b::OnEnable"; - donpcevent "barricade#bat_a02_a::Onkill"; + donpcevent "barricade#bat_a02_a::OnKill"; donpcevent "barricade#bat_a02_a::OnEnable"; - donpcevent "barricade#bat_a02_b::Onkill"; + donpcevent "barricade#bat_a02_b::OnKill"; donpcevent "barricade#bat_a02_b::OnEnable"; - donpcevent "OBJ#bat_a02_n::Onkill"; + donpcevent "OBJ#bat_a02_n::OnKill"; donpcevent "OBJ#bat_a02_n::OnEnable"; - donpcevent "NOBJ_mob#bat_a02_a::Onkill"; - donpcevent "NOBJ_mob#bat_a02_b::Onkill"; + donpcevent "NOBJ_mob#bat_a02_a::OnKill"; + donpcevent "NOBJ_mob#bat_a02_b::OnKill"; donpcevent "Battle Therapist#a02_a::OnEnable"; donpcevent "Battle Therapist#a02_b::OnEnable"; donpcevent "countdown#bat_a02::OnEnable"; @@ -135,7 +137,7 @@ OnReadyCheck: set $@TierraBG2,1; donpcevent "Lieutenant Rundel::OnEnterBG"; donpcevent "Lieutenant Guerrit::OnEnterBG"; - donpcevent "start#bat_a02::onEnable"; + donpcevent "start#bat_a02::OnEnable"; bg_warp $@TierraBG2_id1,"bat_a02",352,342; bg_warp $@TierraBG2_id2,"bat_a02",353,52; initnpctimer; @@ -147,12 +149,12 @@ OnTimer10000: end; } -bat_a02,15,16,3 script OBJ#bat_a02_a 844,{ +bat_a02,15,16,3 script OBJ#bat_a02_a CLEAR_NPC,{ OnEnable: bg_monster $@TierraBG2_id1,"bat_a02",177,345,"Food Storage",1909,"OBJ#bat_a02_a::OnMyMobDead"; end; -Onkill: +OnKill: killmonster "bat_a02","OBJ#bat_a02_a::OnMyMobDead"; end; @@ -170,12 +172,12 @@ OnMyMobDead: end; } -bat_a02,15,17,3 script OBJ#bat_a02_b 844,{ +bat_a02,15,17,3 script OBJ#bat_a02_b CLEAR_NPC,{ OnEnable: bg_monster $@TierraBG2_id2,"bat_a02",167,50,"Food Depot",1910,"OBJ#bat_a02_b::OnMyMobDead"; end; -Onkill: +OnKill: killmonster "bat_a02","OBJ#bat_a02_b::OnMyMobDead"; end; @@ -193,14 +195,14 @@ OnMyMobDead: end; } -bat_a02,15,18,3 script barricade#bat_a02_a 844,{ +bat_a02,15,18,3 script barricade#bat_a02_a CLEAR_NPC,{ OnEnable: for( set .@i,185; .@i < 202; set .@i,.@i+1 ) bg_monster $@TierraBG2_id1,"bat_a02",.@i,266,"Barricade",1906,"barricade#bat_a02_a::OnMyMobDead"; setwall "bat_a02",186,266,16,6,1,"bat_a02_c1"; end; -Onkill: +OnKill: killmonster "bat_a02","barricade#bat_a02_a::OnMyMobDead"; delwall "bat_a02_c1"; end; @@ -215,14 +217,14 @@ OnMyMobDead: end; } -bat_a02,15,19,3 script barricade#bat_a02_b 844,{ +bat_a02,15,19,3 script barricade#bat_a02_b CLEAR_NPC,{ OnEnable: for( set .@i,169; .@i < 186; set .@i,.@i+1 ) bg_monster $@TierraBG2_id2,"bat_a02",.@i,129,"Barricade",1906,"barricade#bat_a02_b::OnMyMobDead"; setwall "bat_a02",170,129,16,6,1,"bat_a02_g1"; end; -Onkill: +OnKill: killmonster "bat_a02","barricade#bat_a02_b::OnMyMobDead"; delwall "bat_a02_g1"; end; @@ -237,12 +239,12 @@ OnMyMobDead: end; } -bat_a02,15,20,3 script OBJ#bat_a02_n 844,{ +bat_a02,15,20,3 script OBJ#bat_a02_n CLEAR_NPC,{ OnEnable: monster "bat_a02",273,203,"Neutrality Flag",1911,1,"OBJ#bat_a02_n::OnMyMobDead"; end; -Onkill: +OnKill: killmonster "bat_a02","OBJ#bat_a02_n::OnMyMobDead"; end; @@ -261,15 +263,15 @@ OnMyMobDead: end; } -bat_a02,15,21,3 script NOBJ_mob#bat_a02_a 844,{ +bat_a02,15,21,3 script NOBJ_mob#bat_a02_a CLEAR_NPC,{ OnEnable: - donpcevent "NOBJ_mob#bat_a02_b::Onkill"; + donpcevent "NOBJ_mob#bat_a02_b::OnKill"; bg_monster $@TierraBG2_id1,"bat_a02",272,204,"Guillaume Camp Guardian",1949,"NOBJ_mob#bat_a02_a::OnMyMobDead"; bg_monster $@TierraBG2_id1,"bat_a02",272,213,"Guillaume Camp Guardian",1949,"NOBJ_mob#bat_a02_a::OnMyMobDead"; bg_monster $@TierraBG2_id1,"bat_a02",273,197,"Guillaume Camp Guardian",1950,"NOBJ_mob#bat_a02_a::OnMyMobDead"; end; -Onkill: +OnKill: killmonster "bat_a02","NOBJ_mob#bat_a02_a::OnMyMobDead"; end; @@ -277,15 +279,15 @@ OnMyMobDead: end; } -bat_a02,15,22,3 script NOBJ_mob#bat_a02_b 844,{ +bat_a02,15,22,3 script NOBJ_mob#bat_a02_b CLEAR_NPC,{ OnEnable: - donpcevent "NOBJ_mob#bat_a02_a::Onkill"; + donpcevent "NOBJ_mob#bat_a02_a::OnKill"; bg_monster $@TierraBG2_id2,"bat_a02",272,204,"Croix Camp Guardian",1949,"NOBJ_mob#bat_a02_a::OnMyMobDead"; bg_monster $@TierraBG2_id2,"bat_a02",272,213,"Croix Camp Guardian",1949,"NOBJ_mob#bat_a02_a::OnMyMobDead"; bg_monster $@TierraBG2_id2,"bat_a02",273,197,"Croix Camp Guardian",1950,"NOBJ_mob#bat_a02_a::OnMyMobDead"; end; -Onkill: +OnKill: killmonster "bat_a02","NOBJ_mob#bat_a02_b::OnMyMobDead"; end; @@ -293,7 +295,7 @@ OnMyMobDead: end; } -bat_a02,185,270,1 script Guillaume Blacksmith#a02 851,{ +bat_a02,185,270,1 script Guillaume Blacksmith#a02 4_M_REPAIR,{ if (getcharid(4) == $@TierraBG2_id1) { mes "[Guillaume Blacksmith]"; mes "We are in urgency! The Barricade has been destroyed!"; @@ -377,7 +379,7 @@ OnInit: end; } -bat_a02,170,121,5 script Croix Blacksmith#bat_a02 851,{ +bat_a02,170,121,5 script Croix Blacksmith#bat_a02 4_M_REPAIR,{ if (getcharid(4) == $@TierraBG2_id2) { mes "[Croix Blacksmith]"; mes "We are in urgency! The Barricade has been destroyed!"; @@ -461,7 +463,7 @@ OnInit: end; } -bat_a02,53,377,3 script Battle Therapist#a02_a 95,{ +bat_a02,53,377,3 script Battle Therapist#a02_a 4_F_SISTER,{ specialeffect2 EF_HEAL; mes "[Battle Therapist]"; mes "Just close your eyes,"; @@ -480,7 +482,7 @@ OnEnable: enablenpc "Battle Therapist#a02_a"; end; -Onstop: +OnStop: disablenpc "bat_a02_rp1_a_warp"; disablenpc "Battle Therapist#a02_a"; stopnpctimer; @@ -511,7 +513,7 @@ OnTouch_: end; } -bat_a02,45,19,3 script Battle Therapist#a02_b 95,{ +bat_a02,45,19,3 script Battle Therapist#a02_b 4_F_SISTER,{ specialeffect2 EF_HEAL; mes "[Battle Therapist]"; mes "Just close your eyes,"; @@ -530,7 +532,7 @@ OnEnable: enablenpc "Battle Therapist#a02_b"; end; -Onstop: +OnStop: disablenpc "bat_a02_rp1_b_warp"; disablenpc "Battle Therapist#a02_b"; stopnpctimer; @@ -561,7 +563,7 @@ OnTouch: end; } -bat_a02,60,216,3 script Valley Ghost#bat_a02_n 950,{ +bat_a02,60,216,3 script Valley Ghost#bat_a02_n 4_GHOSTRING,{ specialeffect2 EF_HEAL; mes "[Valley Ghost]"; mes "Boo...Boo..."; @@ -610,7 +612,7 @@ OnTouch: bat_a02,194,265,0 script barri_warp_down#bat_a02a -1,7,0,{ OnTouch: - if (getcharid(4) == $@TierraBG2_id1) + if (getcharid(4) == $@TierraBG2_id1) warp "bat_a02",194,270; end; } @@ -645,39 +647,39 @@ OnTouch: end; } -bat_a02,169,227,0 script underladd#bat_a02_1 45,1,1,{ +bat_a02,169,227,0 script underladd#bat_a02_1 WARPNPC,1,1,{ OnTouch_: warp "bat_a02",178,228; end; } -bat_a02,208,164,0 script underladd#bat_a02_2 45,1,1,{ +bat_a02,208,164,0 script underladd#bat_a02_2 WARPNPC,1,1,{ OnTouch_: warp "bat_a02",200,171; end; } -bat_a02,171,309,3 script Guillaume Camp#flag11 973,{ end; } -bat_a02,149,310,3 script Guillaume Camp#flag12 973,{ end; } -bat_a02,119,336,3 script Guillaume Camp#flag13 973,{ end; } -bat_a02,118,357,3 script Guillaume Camp#flag14 973,{ end; } -bat_a02,150,380,3 script Guillaume Camp#flag15 973,{ end; } -bat_a02,173,380,3 script Guillaume Camp#flag16 973,{ end; } -bat_a02,210,344,3 script Guillaume Camp#flag17 973,{ end; } -bat_a02,350,325,3 script Guillaume Camp#flag18 973,{ end; } -bat_a02,358,325,3 script Guillaume Camp#flag19 973,{ end; } - -bat_a02,138,12,3 script Croix Camp#flag11 974,{ end; } -bat_a02,108,36,3 script Croix Camp#flag12 974,{ end; } -bat_a02,108,63,3 script Croix Camp#flag13 974,{ end; } -bat_a02,136,87,3 script Croix Camp#flag14 974,{ end; } -bat_a02,167,86,3 script Croix Camp#flag15 974,{ end; } -bat_a02,199,49,3 script Croix Camp#flag16 974,{ end; } -bat_a02,168,16,3 script Croix Camp#flag17 974,{ end; } -bat_a02,357,74,3 script Croix Camp#flag18 974,{ end; } -bat_a02,348,74,3 script Croix Camp#flag19 974,{ end; } - -bat_a02,53,377,3 script Guillaume Vintenar#a02_a 419,{ +bat_a02,171,309,3 script Guillaume Camp#flag11 1_FLAG_LION,{ end; } +bat_a02,149,310,3 script Guillaume Camp#flag12 1_FLAG_LION,{ end; } +bat_a02,119,336,3 script Guillaume Camp#flag13 1_FLAG_LION,{ end; } +bat_a02,118,357,3 script Guillaume Camp#flag14 1_FLAG_LION,{ end; } +bat_a02,150,380,3 script Guillaume Camp#flag15 1_FLAG_LION,{ end; } +bat_a02,173,380,3 script Guillaume Camp#flag16 1_FLAG_LION,{ end; } +bat_a02,210,344,3 script Guillaume Camp#flag17 1_FLAG_LION,{ end; } +bat_a02,350,325,3 script Guillaume Camp#flag18 1_FLAG_LION,{ end; } +bat_a02,358,325,3 script Guillaume Camp#flag19 1_FLAG_LION,{ end; } + +bat_a02,138,12,3 script Croix Camp#flag11 1_FLAG_EAGLE,{ end; } +bat_a02,108,36,3 script Croix Camp#flag12 1_FLAG_EAGLE,{ end; } +bat_a02,108,63,3 script Croix Camp#flag13 1_FLAG_EAGLE,{ end; } +bat_a02,136,87,3 script Croix Camp#flag14 1_FLAG_EAGLE,{ end; } +bat_a02,167,86,3 script Croix Camp#flag15 1_FLAG_EAGLE,{ end; } +bat_a02,199,49,3 script Croix Camp#flag16 1_FLAG_EAGLE,{ end; } +bat_a02,168,16,3 script Croix Camp#flag17 1_FLAG_EAGLE,{ end; } +bat_a02,357,74,3 script Croix Camp#flag18 1_FLAG_EAGLE,{ end; } +bat_a02,348,74,3 script Croix Camp#flag19 1_FLAG_EAGLE,{ end; } + +bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ if (getcharid(4) == $@TierraBG2_id1) { if ($@TierraBG2_Victory == 1) { set .@your_medal,countitem(7828); @@ -771,7 +773,7 @@ OnInit: end; } -bat_a02,45,19,3 script Croix Vintenar#a02_b 415,{ +bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ if (getcharid(4) == $@TierraBG2_id2) { if ($@TierraBG2_Victory == 2) { set .@your_medal,countitem(7828); @@ -865,12 +867,12 @@ OnInit: end; } -bat_a02,1,5,3 script countdown#bat_a02 844,{ +bat_a02,1,5,3 script countdown#bat_a02 CLEAR_NPC,{ OnEnable: initnpctimer; end; -Onstop: +OnStop: stopnpctimer; end; @@ -904,30 +906,30 @@ OnTimer1825000: OnTimer1830000: mapwarp "bat_a02","bat_room",154,150; - donpcevent "countdown#bat_a02::Onstop"; + donpcevent "countdown#bat_a02::OnStop"; end; } /* -bat_a02,351,75,3 script Croix Camp Soldier#bat_a02_guide 934,{ +bat_a02,351,75,3 script Croix Camp Soldier#bat_a02_guide 4_M_RASWORD,{ mes "Loading..."; close; } -bat_a02,356,326,3 script Guillaume Camp Soldier#bat_a02_guide 934,{ +bat_a02,356,326,3 script Guillaume Camp Soldier#bat_a02_guide 4_M_RASWORD,{ mes "Loading..."; close; } */ -/* -bat_a02,1,1,3 script Release all#a02 81,{ - input .@input,0,2000; - if (.@input == 0) { +bat_a02,1,1,3 script Release all#a02 4_DOG01,{ + set .@i, callfunc("F_GM_NPC",1854,0); + if (.@i == -1) { mes "Cancelled."; close; - } - else if (.@input == 1854) { + } else if (.@i == 0) { + end; + } else { mes "May I help you?"; next; switch(select("Release all.:Cancel.")) { @@ -938,8 +940,7 @@ bat_a02,1,1,3 script Release all#a02 81,{ end; case 2: mes "Cancelled."; + close; } } } -*/ - |