summaryrefslogtreecommitdiff
path: root/npc/woe-se/agit_main_se.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/woe-se/agit_main_se.txt')
-rw-r--r--npc/woe-se/agit_main_se.txt90
1 files changed, 48 insertions, 42 deletions
diff --git a/npc/woe-se/agit_main_se.txt b/npc/woe-se/agit_main_se.txt
index 4fe109ccc..5941e171a 100644
--- a/npc/woe-se/agit_main_se.txt
+++ b/npc/woe-se/agit_main_se.txt
@@ -1,24 +1,42 @@
-//===== Hercules Script ======================================
+//================= Hercules Script =======================================
+//= _ _ _
+//= | | | | | |
+//= | |_| | ___ _ __ ___ _ _| | ___ ___
+//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
+//= | | | | __/ | | (__| |_| | | __/\__ \
+//= \_| |_/\___|_| \___|\__,_|_|\___||___/
+//================= License ===============================================
+//= This file is part of Hercules.
+//= http://herc.ws - http://github.com/HerculesWS/Hercules
+//=
+//= Copyright (C) 2012-2015 Hercules Dev Team
+//= Copyright (C) Cookie
+//= Copyright (C) Euphy
+//= Copyright (C) Brian
+//= Copyright (C) Zephyrus
+//= Copyright (C) L0ne_W0lf
+//=
+//= Hercules is free software: you can redistribute it and/or modify
+//= it under the terms of the GNU General Public License as published by
+//= the Free Software Foundation, either version 3 of the License, or
+//= (at your option) any later version.
+//=
+//= This program is distributed in the hope that it will be useful,
+//= but WITHOUT ANY WARRANTY; without even the implied warranty of
+//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+//= GNU General Public License for more details.
+//=
+//= You should have received a copy of the GNU General Public License
+//= along with this program. If not, see <http://www.gnu.org/licenses/>.
+//=========================================================================
//= War of Emperium SE - Template File
-//===== By: ==================================================
-//= Euphy
-//===== Current Version: =====================================
+//================= Description ===========================================
+//= Like agit_main, this file is required for SE castles to function.
+//================= Current Version =======================================
//= 1.4a
-//===== Description: =========================================
-//= Like agit_main, this file is required
-//= for SE castles to function.
-//===== Additional Comments: =================================
-//= 0.x Previous authors: L0ne_W0lf, Zephyrus, Brian.
-//= 1.0 If anything breaks, blame Maki. [Euphy]
-//= 1.1 Fixed an incorrect label execution. [Euphy]
-//= 1.2 Hopefully fixed a processing error. [Euphy]
-//= 1.3 Fixed barricade issue in schg_cas02. [Cookie]
-//= 1.4 Added OnGuildBreak event and a spawn check. [Euphy]
-//= 1.4a Fixed Guardian Stone respawns. [Euphy]
-//============================================================
+//=========================================================================
-// Core, triggers all other events
-//============================================================
+//== Core, triggers all other events =======================
- script Manager#template -1,{
OnAgitInit2:
OnRecvCastle2:
@@ -200,8 +218,7 @@ OnTreasureDied:
end;
}
-// Guild Manager
-//============================================================
+//== Guild Manager =========================================
- script Steward#template -1,{
.@GID = getcastledata(strnpcinfo(4),1);
if (!.@GID) {
@@ -634,8 +651,7 @@ OnStartArena:
end;
}
-// Castle Guardians
-//============================================================
+//== Castle Guardians ======================================
- script Guardian#template -1,{
.@GID = getcastledata(strnpcinfo(4),1);
.@n$ = "["+strnpcinfo(1)+"]";
@@ -834,8 +850,7 @@ OnInit:
end;
}
-// Guild Kafras
-//============================================================
+//== Guild Kafras ==========================================
- script Kafra#template -1,{
cutin "kafra_01",2;
.@GID = getcastledata(strnpcinfo(4),1);
@@ -947,8 +962,7 @@ OnInit:
}
}
-// Guardian Stones (2)
-//============================================================
+//== Guardian Stones (2) ===================================
- script Guardian Stone#template -1,{
.@GID = getcastledata(strnpcinfo(4),1);
.@num = atoi(charat(strnpcinfo(1),0));
@@ -1101,8 +1115,7 @@ OnEnable:
end;
}
-// Control Devices (3)
-//============================================================
+//== Control Devices (3) ===================================
- script Control#template -1,{
.@GID = getcastledata(strnpcinfo(4),1);
.@num = atoi(charat(strnpcinfo(1),15));
@@ -1344,8 +1357,7 @@ OnEnable:
end;
}
-// Guardian Summoners (2)
-//============================================================
+//== Guardian Summoners (2) ================================
- script gard#template -1,{
OnEnable:
// .@x[i],.@y[i]: Normal coordinates, #0-21.
@@ -1466,8 +1478,7 @@ OnReset:
end;
}
-// Guardian Stone Summoners (2)
-//============================================================
+//== Guardian Stone Summoners (2) ==========================
- script df#template -1,{
OnEnable:
if (compare(strnpcinfo(2),"arug")) {
@@ -1519,8 +1530,7 @@ OnTimer300000:
end;
}
-// Barrier Summoners (4)
-//============================================================
+//== Barrier Summoners (4) =================================
- script RL#template -1,{
OnEnable:
.@num = atoi(charat(strnpcinfo(1),2));
@@ -1695,8 +1705,7 @@ OnDisable:
end;
}
-// Link Flags (function)
-//============================================================
+//== Link Flags (function) =================================
function script LinkFlag {
if (!getcharid(2) || getcharid(2) != getcastledata(strnpcinfo(4),1)) end;
if (getarg(0) == "Convenience Facility") {
@@ -1731,8 +1740,7 @@ function script LinkFlag {
close;
}
-// Return Flags (function)
-//============================================================
+//== Return Flags (function) ===============================
function script ReturnFlag {
.@str$ = (compare(strnpcinfo(4),"aru"))?"Arunafeltz":"Schwaltzvalt";
.@GID = getcastledata(getarg(0),1);
@@ -1783,8 +1791,7 @@ function script ReturnFlag {
close;
}
-// Treasure Room Switches
-//============================================================
+//== Treasure Room Switches ================================
- script Switch#template -1,{
mes " ";
mes "^3355FFWill you pull";
@@ -1805,8 +1812,7 @@ function script ReturnFlag {
close;
}
-// Guild Dungeon Warps
-//============================================================
+//== Guild Dungeon Warps ===================================
- script Sunflower#template -1,{
if (getcharid(2) == getcastledata(strnpcinfo(4),1)) {
mes "- It's an amazingly huge sunflower; as big as a human! ... You feel something mysterious emanating from the flower. -";