summaryrefslogtreecommitdiff
path: root/npc/woe-se/agit_start_se.txt
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-06-04 15:45:12 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-06-05 18:59:16 +0530
commit37e47973a81957469be3c73d49a928188160747e (patch)
tree6b450f6c8f5125d8f73e2959a91525ebd3802229 /npc/woe-se/agit_start_se.txt
parent4c469ea8b9e419535dfcc4c2cbe45623b95e2fd0 (diff)
downloadhercules-37e47973a81957469be3c73d49a928188160747e.tar.gz
hercules-37e47973a81957469be3c73d49a928188160747e.tar.bz2
hercules-37e47973a81957469be3c73d49a928188160747e.tar.xz
hercules-37e47973a81957469be3c73d49a928188160747e.zip
Renamed guild and guild2 folder to woe-fe and woe-se
Diffstat (limited to 'npc/woe-se/agit_start_se.txt')
-rw-r--r--npc/woe-se/agit_start_se.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/npc/woe-se/agit_start_se.txt b/npc/woe-se/agit_start_se.txt
new file mode 100644
index 000000000..74f03cb28
--- /dev/null
+++ b/npc/woe-se/agit_start_se.txt
@@ -0,0 +1,49 @@
+//===== Hercules Script ======================================
+//= War of Emperium SE - Auto-Start
+//===== By: ==================================================
+//= L0ne_W0lf
+//===== Current Version: =====================================
+//= 1.0
+//===== 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;
+}