summaryrefslogtreecommitdiff
path: root/npc/battleground/flavius/flavius01.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/battleground/flavius/flavius01.txt')
-rw-r--r--npc/battleground/flavius/flavius01.txt181
1 files changed, 91 insertions, 90 deletions
diff --git a/npc/battleground/flavius/flavius01.txt b/npc/battleground/flavius/flavius01.txt
index 42c230ff3..18f153d87 100644
--- a/npc/battleground/flavius/flavius01.txt
+++ b/npc/battleground/flavius/flavius01.txt
@@ -1,24 +1,26 @@
//===== Hercules Script ======================================
// BattleGround System - Flavius
-//===== By: ==================================================
+//===== By: ==================================================
//= L0ne_W0lf
-//===== Current Version: =====================================
-//= 1.3
-//===== Description: =========================================
-//= [AEGIS Conversion]
+//===== Current Version: =====================================
+//= 1.5
+//===== Description: =========================================
+//= [Official Conversion]
//= Flavius Battleground.
//= - Winning Team: 9 badges
//= - Losing Team: 3 badge
-//===== Additional Comments: =================================
+//===== Additional Comments: =================================
//= 1.0 First Version.
//= 1.1 Fixed pink crystal spawning as blue. [L0ne_W0lf]
//= 1.2 Updated 'waitingroom' to support required zeny/lvl. [Kisuka]
//= 1.3 Removed MaxLvl check in waitingrooms. Replaced setwall with setcell.
+//= 1.4 Label standardization. [Euphy]
+//= 1.5 Added GM management function. [Euphy]
//============================================================
// Waiting Room NPCs
//============================================================
-bat_room,86,227,4 script Lieutenant Ator 418,{
+bat_room,86,227,4 script Lieutenant Ator 4_M_KY_KNT,{
end;
OnInit:
waitingroom "Battle Station",11,"start#bat_b01::OnReadyCheck",1,0,80;
@@ -28,7 +30,7 @@ OnEnterBG:
end;
}
-bat_room,85,204,0 script Lieutenant Thelokus 414,{
+bat_room,85,204,0 script Lieutenant Thelokus 4_M_CRU_KNT,{
end;
OnInit:
waitingroom "Battle Station",11,"start#bat_b01::OnReadyCheck",1,0,80;
@@ -41,7 +43,7 @@ OnEnterBG:
bat_room,85,220,0 warp back_bgroomb01a 1,1,bat_room,154,150
bat_room,85,211,0 warp back_bgroomb01b 1,1,bat_room,154,150
-bat_room,2,151,3 script #bat_b01_timer 844,{
+bat_room,2,151,3 script #bat_b01_timer CLEAR_NPC,{
end;
OnInit:
@@ -69,7 +71,7 @@ OnTimer1000:
// Flavius Battleground Engine
//============================================================
-bat_b01,15,15,3 script start#bat_b01 844,{
+bat_b01,15,15,3 script start#bat_b01 CLEAR_NPC,{
OnInit:
mapwarp "bat_b01","bat_room",154,150;
end;
@@ -93,16 +95,16 @@ OnReadyCheck:
donpcevent "Lieutenant Ator::OnEnterBG";
donpcevent "Lieutenant Thelokus::OnEnterBG";
- donpcevent "OBJ#bat_b01_a::Onkill";
+ donpcevent "OBJ#bat_b01_a::OnKill";
donpcevent "OBJ#bat_b01_a::OnEnable";
- donpcevent "OBJ#bat_b01_b::Onkill";
+ donpcevent "OBJ#bat_b01_b::OnKill";
donpcevent "OBJ#bat_b01_b::OnEnable";
- donpcevent "guardian#bat_b01_a::Onkill";
- donpcevent "guardian#bat_b01_b::Onkill";
+ donpcevent "guardian#bat_b01_a::OnKill";
+ donpcevent "guardian#bat_b01_b::OnKill";
donpcevent "guardian#bat_b01_a::OnEnable";
donpcevent "guardian#bat_b01_b::OnEnable";
- donpcevent "cell#bat_b01_a::Onred";
- donpcevent "cell#bat_b01_b::Onred";
+ donpcevent "cell#bat_b01_a::OnRed";
+ donpcevent "cell#bat_b01_b::OnRed";
donpcevent "time#bat_b01::OnEnable";
disablenpc "Guillaume Vintenar#b01_a";
disablenpc "Croix Vintenar#b01_b";
@@ -115,16 +117,16 @@ OnReadyCheck:
end;
OnReset:
- donpcevent "OBJ#bat_b01_a::Onkill";
+ donpcevent "OBJ#bat_b01_a::OnKill";
donpcevent "OBJ#bat_b01_a::OnEnable";
- donpcevent "OBJ#bat_b01_b::Onkill";
+ donpcevent "OBJ#bat_b01_b::OnKill";
donpcevent "OBJ#bat_b01_b::OnEnable";
- donpcevent "guardian#bat_b01_a::Onkill";
- donpcevent "guardian#bat_b01_b::Onkill";
+ donpcevent "guardian#bat_b01_a::OnKill";
+ donpcevent "guardian#bat_b01_b::OnKill";
donpcevent "guardian#bat_b01_a::OnEnable";
donpcevent "guardian#bat_b01_b::OnEnable";
- donpcevent "cell#bat_b01_a::Onred";
- donpcevent "cell#bat_b01_b::Onred";
+ donpcevent "cell#bat_b01_a::OnRed";
+ donpcevent "cell#bat_b01_b::OnRed";
donpcevent "time#bat_b01::OnEnable";
disablenpc "Guillaume Vintenar#b01_a";
disablenpc "Croix Vintenar#b01_b";
@@ -145,12 +147,12 @@ OnTimer10000:
end;
}
-bat_b01,1,1,3 script OBJ#bat_b01_a 844,{
+bat_b01,1,1,3 script OBJ#bat_b01_a CLEAR_NPC,{
OnEnable:
bg_monster $@FlaviusBG1_id1,"bat_b01",61,150,"Pink Crystal",1915,"OBJ#bat_b01_a::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","OBJ#bat_b01_a::OnMyMobDead";
end;
@@ -162,12 +164,12 @@ OnMyMobDead:
set $@Croix_ScoreBG1,$@Croix_ScoreBG1+1;
enablenpc "Guillaume Vintenar#b01_a";
enablenpc "Croix Vintenar#b01_b";
- donpcevent "time#bat_b01::Onstop";
+ donpcevent "time#bat_b01::OnStop";
}
else {
set $@Croix_ScoreBG1,1;
donpcevent "time#bat_b01::OnEnable";
- donpcevent "start#bat_b01::onReset";
+ donpcevent "start#bat_b01::OnReset";
}
donpcevent "#bat_b01_timer::OnStop";
bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
@@ -178,12 +180,12 @@ OnMyMobDead:
end;
}
-bat_b01,1,2,3 script OBJ#bat_b01_b 844,{
+bat_b01,1,2,3 script OBJ#bat_b01_b CLEAR_NPC,{
OnEnable:
bg_monster $@FlaviusBG1_id2,"bat_b01",328,150,"Blue Crystal",1914,"OBJ#bat_b01_b::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","OBJ#bat_b01_b::OnMyMobDead";
end;
@@ -195,12 +197,12 @@ OnMyMobDead:
set $@Guill_ScoreBG1,$@Guill_ScoreBG1+1;
enablenpc "Guillaume Vintenar#b01_a";
enablenpc "Croix Vintenar#b01_b";
- donpcevent "time#bat_b01::Onstop";
+ donpcevent "time#bat_b01::OnStop";
}
else {
set $@Guill_ScoreBG1,1;
donpcevent "time#bat_b01::OnEnable";
- donpcevent "start#bat_b01::onReset";
+ donpcevent "start#bat_b01::OnReset";
}
donpcevent "#bat_b01_timer::OnStop";
bg_updatescore "bat_b01",$@Guill_ScoreBG1,$@Croix_ScoreBG1;
@@ -211,79 +213,79 @@ OnMyMobDead:
end;
}
-bat_b01,1,3,3 script guardian#bat_b01_a 844,{
+bat_b01,1,3,3 script guardian#bat_b01_a CLEAR_NPC,{
OnEnable:
bg_monster $@FlaviusBG1_id1,"bat_b01",108,159,"Guillaume Camp Guardian",1949,"guardian#bat_b01_a::OnMyMobDead";
bg_monster $@FlaviusBG1_id1,"bat_b01",108,141,"Guillaume Camp Guardian",1949,"guardian#bat_b01_a::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","guardian#bat_b01_a::OnMyMobDead";
end;
OnMyMobDead:
if (mobcount("bat_b01","guardian#bat_b01_a::OnMyMobDead") < 1) {
- donpcevent "cell#bat_b01_a::Ongreen";
+ donpcevent "cell#bat_b01_a::OnGreen";
mapannounce "bat_b01", "The Guardian protecting Guillaume's Crystal has been slain.",bc_map,"0xFFCE00";
}
end;
}
-bat_b01,1,3,3 script guardian#bat_b01_b 844,{
+bat_b01,1,3,3 script guardian#bat_b01_b CLEAR_NPC,{
OnEnable:
bg_monster $@FlaviusBG1_id2,"bat_b01",307,160,"Croix Camp Guardian",1949,"guardian#bat_b01_b::OnMyMobDead";
bg_monster $@FlaviusBG1_id2,"bat_b01",307,138,"Croix Camp Guardian",1949,"guardian#bat_b01_b::OnMyMobDead";
end;
-Onkill:
+OnKill:
killmonster "bat_b01","guardian#bat_b01_b::OnMyMobDead";
end;
OnMyMobDead:
if (mobcount("bat_b01","guardian#bat_b01_b::OnMyMobDead") < 1) {
- donpcevent "cell#bat_b01_b::Ongreen";
+ donpcevent "cell#bat_b01_b::OnGreen";
mapannounce "bat_b01", "The Guardian protecting Croix's Crystal has been slain.",bc_map,"0xFFCE00";
}
end;
}
-bat_b01,1,4,3 script cell#bat_b01_a 844,{
-Onred:
+bat_b01,1,4,3 script cell#bat_b01_a CLEAR_NPC,{
+OnRed:
setcell "bat_b01",62,149,60,151,cell_basilica,1;
setcell "bat_b01",62,149,60,151,cell_walkable,0;
end;
-Ongreen:
+OnGreen:
setcell "bat_b01",62,149,60,151,cell_basilica,0;
setcell "bat_b01",62,149,60,151,cell_walkable,1;
end;
}
-bat_b01,1,5,3 script cell#bat_b01_b 844,{
-Onred:
+bat_b01,1,5,3 script cell#bat_b01_b CLEAR_NPC,{
+OnRed:
setcell "bat_b01",327,151,329,149,cell_basilica,1;
setcell "bat_b01",327,151,329,149,cell_walkable,0;
end;
-Ongreen:
+OnGreen:
setcell "bat_b01",327,151,329,149,cell_basilica,0;
setcell "bat_b01",327,151,329,149,cell_walkable,1;
end;
}
-bat_b01,1,6,1 script time#bat_b01 844,{
+bat_b01,1,6,1 script time#bat_b01 CLEAR_NPC,{
OnEnable:
donpcevent "Battle Therapist#b01_a::OnEnable";
donpcevent "Battle Therapist#b01_b::OnEnable";
end;
-Onstop:
+OnStop:
donpcevent "Battle Therapist#b01_a::OnStop";
donpcevent "Battle Therapist#b01_b::OnStop";
end;
}
-bat_b01,10,294,3 script Battle Therapist#b01_a 95,{
+bat_b01,10,294,3 script Battle Therapist#b01_a 4_F_SISTER,{
specialeffect2 EF_HEAL;
mes "[Battle Therapist]";
mes "Just close your eyes,";
@@ -302,7 +304,7 @@ OnTimer26000:
OnTimer26500:
stopnpctimer;
- donpcevent "Battle Therapist#b01_a::onEnable";
+ donpcevent "Battle Therapist#b01_a::OnEnable";
end;
OnEnable:
@@ -310,14 +312,14 @@ OnEnable:
enablenpc "Battle Therapist#b01_a";
end;
-Onstop:
+OnStop:
disablenpc "bat_b01_rp1_a_warp";
disablenpc "Battle Therapist#b01_a";
stopnpctimer;
end;
}
-bat_b01,10,290,0 script bat_b01_rp1_a_warp 45,10,10,{
+bat_b01,10,290,0 script bat_b01_rp1_a_warp WARPNPC,10,10,{
OnInit:
disablenpc "bat_b01_rp1_a_warp";
end;
@@ -328,7 +330,7 @@ OnTouch:
end;
}
-bat_b01,389,14,3 script Battle Therapist#b01_b 95,{
+bat_b01,389,14,3 script Battle Therapist#b01_b 4_F_SISTER,{
specialeffect2 EF_HEAL;
mes "[Battle Therapist]";
mes "Just close your eyes,";
@@ -355,14 +357,14 @@ OnEnable:
enablenpc "Battle Therapist#b01_b";
end;
-Onstop:
+OnStop:
disablenpc "bat_b01_rp1_b_warp";
disablenpc "Battle Therapist#b01_b";
stopnpctimer;
end;
}
-bat_b01,389,10,0 script bat_b01_rp1_b_warp 45,9,9,{
+bat_b01,389,10,0 script bat_b01_rp1_b_warp WARPNPC,9,9,{
OnInit:
disablenpc "bat_b01_rp1_a_warp";
end;
@@ -387,7 +389,7 @@ OnTouch:
end;
}
-bat_b01,10,294,3 script Guillaume Vintenar#b01_a 934,{
+bat_b01,10,294,3 script Guillaume Vintenar#b01_a 4_M_RASWORD,{
if ($@FlaviusBG1_id1 == getcharid(4)) {
if ($@FlaviusBG1_Victory == 1) {
set .@your_medal,countitem(7829);
@@ -439,7 +441,7 @@ OnInit:
end;
}
-bat_b01,389,14,3 script Croix Vintenar#b01_b 934,{
+bat_b01,389,14,3 script Croix Vintenar#b01_b 4_M_RASWORD,{
if ($@FlaviusBG1_id2 == getcharid(4)) {
if ($@FlaviusBG1_Victory == 2) {
set .@your_medal,countitem(7829);
@@ -491,7 +493,7 @@ OnInit:
end;
}
-bat_b01,1,5,3 script countdown#bat_b01 844,{
+bat_b01,1,5,3 script countdown#bat_b01 CLEAR_NPC,{
OnInit:
stopnpctimer;
end;
@@ -501,7 +503,7 @@ OnEnable:
initnpctimer;
end;
-Onstop:
+OnStop:
stopnpctimer;
end;
@@ -534,7 +536,7 @@ OnTimer1825000:
end;
OnTimer1830000:
- donpcevent "time#bat_b01::Onstop";
+ donpcevent "time#bat_b01::OnStop";
bg_warp $@FlaviusBG1_id1,"bat_b01",10,290;
bg_warp $@FlaviusBG1_id2,"bat_b01",390,10;
enablenpc "Vintenar#bat_b01_aover";
@@ -543,35 +545,35 @@ OnTimer1830000:
OnTimer1900000:
mapwarp "bat_b01","bat_room",154,150;
- donpcevent "countdown#bat_b01::Onstop";
+ donpcevent "countdown#bat_b01::OnStop";
end;
}
-bat_b01,81,83,3 script Guillaume Camp#flag21 973,{ end; }
-bat_b01,94,83,3 script Guillaume Camp#flag22 973,{ end; }
-bat_b01,81,66,3 script Guillaume Camp#flag23 973,{ end; }
-bat_b01,94,66,3 script Guillaume Camp#flag24 973,{ end; }
-bat_b01,139,142,3 script Guillaume Camp#flag25 973,{ end; }
-bat_b01,139,158,3 script Guillaume Camp#flag26 973,{ end; }
-bat_b01,110,161,3 script Guillaume Camp#flag27 973,{ end; }
-bat_b01,110,137,3 script Guillaume Camp#flag28 973,{ end; }
-bat_b01,63,135,3 script Guillaume Camp#flag29 973,{ end; }
-bat_b01,63,165,3 script Guillaume Camp#flag30 973,{ end; }
-bat_b01,10,296,3 script Guillaume Camp#flag31 973,{ end; }
-
-bat_b01,306,233,3 script Croix Camp#flag21 974,{ end; }
-bat_b01,317,233,3 script Croix Camp#flag22 974,{ end; }
-bat_b01,306,216,3 script Croix Camp#flag23 974,{ end; }
-bat_b01,317,216,3 script Croix Camp#flag24 974,{ end; }
-bat_b01,257,158,3 script Croix Camp#flag25 974,{ end; }
-bat_b01,257,141,3 script Croix Camp#flag26 974,{ end; }
-bat_b01,297,164,3 script Croix Camp#flag27 974,{ end; }
-bat_b01,297,136,3 script Croix Camp#flag28 974,{ end; }
-bat_b01,336,161,3 script Croix Camp#flag29 974,{ end; }
-bat_b01,336,139,3 script Croix Camp#flag30 974,{ end; }
-bat_b01,389,16,3 script Croix Camp#flag31 974,{ end; }
-
-bat_b01,10,294,3 script Vintenar#bat_b01_aover 419,{
+bat_b01,81,83,3 script Guillaume Camp#flag21 1_FLAG_LION,{ end; }
+bat_b01,94,83,3 script Guillaume Camp#flag22 1_FLAG_LION,{ end; }
+bat_b01,81,66,3 script Guillaume Camp#flag23 1_FLAG_LION,{ end; }
+bat_b01,94,66,3 script Guillaume Camp#flag24 1_FLAG_LION,{ end; }
+bat_b01,139,142,3 script Guillaume Camp#flag25 1_FLAG_LION,{ end; }
+bat_b01,139,158,3 script Guillaume Camp#flag26 1_FLAG_LION,{ end; }
+bat_b01,110,161,3 script Guillaume Camp#flag27 1_FLAG_LION,{ end; }
+bat_b01,110,137,3 script Guillaume Camp#flag28 1_FLAG_LION,{ end; }
+bat_b01,63,135,3 script Guillaume Camp#flag29 1_FLAG_LION,{ end; }
+bat_b01,63,165,3 script Guillaume Camp#flag30 1_FLAG_LION,{ end; }
+bat_b01,10,296,3 script Guillaume Camp#flag31 1_FLAG_LION,{ end; }
+
+bat_b01,306,233,3 script Croix Camp#flag21 1_FLAG_EAGLE,{ end; }
+bat_b01,317,233,3 script Croix Camp#flag22 1_FLAG_EAGLE,{ end; }
+bat_b01,306,216,3 script Croix Camp#flag23 1_FLAG_EAGLE,{ end; }
+bat_b01,317,216,3 script Croix Camp#flag24 1_FLAG_EAGLE,{ end; }
+bat_b01,257,158,3 script Croix Camp#flag25 1_FLAG_EAGLE,{ end; }
+bat_b01,257,141,3 script Croix Camp#flag26 1_FLAG_EAGLE,{ end; }
+bat_b01,297,164,3 script Croix Camp#flag27 1_FLAG_EAGLE,{ end; }
+bat_b01,297,136,3 script Croix Camp#flag28 1_FLAG_EAGLE,{ end; }
+bat_b01,336,161,3 script Croix Camp#flag29 1_FLAG_EAGLE,{ end; }
+bat_b01,336,139,3 script Croix Camp#flag30 1_FLAG_EAGLE,{ end; }
+bat_b01,389,16,3 script Croix Camp#flag31 1_FLAG_EAGLE,{ end; }
+
+bat_b01,10,294,3 script Vintenar#bat_b01_aover 4_M_KY_HEAD,{
set .@A_B_gap,$@Guill_ScoreBG1 - $@Croix_ScoreBG1;
if ($@FlaviusBG1_id1 == getcharid(4)) {
if (.@A_B_gap > 0) {
@@ -649,7 +651,7 @@ OnInit:
end;
}
-bat_b01,389,14,3 script Vintenar#bat_b01_bover 415,{
+bat_b01,389,14,3 script Vintenar#bat_b01_bover 4_M_CRU_HEAD,{
set .@A_B_gap,$@Guill_ScoreBG1 - $@Croix_ScoreBG1;
if ($@FlaviusBG1_id2 == getcharid(4)) {
if (.@A_B_gap > 0) {
@@ -727,14 +729,14 @@ OnInit:
end;
}
-/*
-bat_b01,1,10,3 script Release all#b01 81,{
- input .@input,0,2000;
- if (.@input == 0) {
+bat_b01,1,10,3 script Release all#b01 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.")) {
@@ -749,4 +751,3 @@ bat_b01,1,10,3 script Release all#b01 81,{
}
}
}
-*/