summaryrefslogtreecommitdiff
path: root/npc/guild2/agit_start_se.txt
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-09 17:33:10 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-09 17:33:10 +0000
commite02e0c5cba6e83986da6fdce9c69a9201f9a271f (patch)
tree2cefad3c969bea2a2c5d25e3c220eafc2451301a /npc/guild2/agit_start_se.txt
parent45e089c554e673f7dc017c45bdfa68663713cda9 (diff)
downloadhercules-e02e0c5cba6e83986da6fdce9c69a9201f9a271f.tar.gz
hercules-e02e0c5cba6e83986da6fdce9c69a9201f9a271f.tar.bz2
hercules-e02e0c5cba6e83986da6fdce9c69a9201f9a271f.tar.xz
hercules-e02e0c5cba6e83986da6fdce9c69a9201f9a271f.zip
Enabled WoE SE to be run independently of WoE. Let's see how long it is before something blows up, or Ultramage pulls out his hair while cursing my existence.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13202 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild2/agit_start_se.txt')
-rw-r--r--npc/guild2/agit_start_se.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/npc/guild2/agit_start_se.txt b/npc/guild2/agit_start_se.txt
new file mode 100644
index 000000000..744f3dea0
--- /dev/null
+++ b/npc/guild2/agit_start_se.txt
@@ -0,0 +1,51 @@
+//===== eAthena Script =======================================
+//= War of Emperium SE - Auto-Start
+//===== By: ==================================================
+//= L0ne_W0lf
+//===== Current Version: =====================================
+//= 1.0
+//===== Compatible With: =====================================
+//= eAthena SVN; RO Episode 11.3
+//===== Description: =========================================
+//= Auto Start for War of Emperium
+//= To know how to set up WoE times, go to doc\woe_time_explanation.txt
+//=============================================
+//= gettime(3): Gets hour (24 hour time)
+//= gettime(4): Gets day of week 1=Monday, 2=Tuesday,
+//= 3=Wednesday, 4=Thursday, etc.
+//===== Additional Comments: =================================
+//= 1.0 Copy/Paste of the original setter.
+//============================================================
+
+// WoE Start/Stop times
+//============================================================
+- script Agit2_Event -1,{
+ end;
+
+OnClock1800: //start time for Tues(2), Thurs(4)
+OnClock2000: //end time for Tues(2), Thurs(4)
+OnClock2100: //start time for Sat(6)
+OnClock2300: //end time for Sat(6)
+
+OnAgitInit2:
+ // starting time checks
+ if((gettime(4)==2) && (gettime(3)>=18 && gettime(3)<21) ||
+ (gettime(4)==4) && (gettime(3)>=18 && gettime(3)<21) ||
+ (gettime(4)==6) && (gettime(3)>=22 && gettime(3)<23)) {
+ if (!agitcheck2()) {
+ AgitStart2;
+ }
+ end;
+ }
+
+ // end time checks
+ if ((gettime(4)==2) && (gettime(3)==21) ||
+ (gettime(4)==4) && (gettime(3)==21) ||
+ (gettime(4)==6) && (gettime(3)==23)) {
+ if (agitcheck2()) {
+ AgitEnd2;
+ }
+ end;
+ }
+ end;
+}