summaryrefslogtreecommitdiff
path: root/npc/guild/ev_agit_event.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild/ev_agit_event.txt')
-rw-r--r--npc/guild/ev_agit_event.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/npc/guild/ev_agit_event.txt b/npc/guild/ev_agit_event.txt
new file mode 100644
index 000000000..49946d92d
--- /dev/null
+++ b/npc/guild/ev_agit_event.txt
@@ -0,0 +1,41 @@
+//===== eAthena Script =======================================
+//= War of Emperium - WoE Auto-Start
+//===== By: ==================================================
+//= kalen (1.0)
+//= 1.1 by Akaru and ho|yAnge|
+//===== Current Version: =====================================
+//= 1.2
+//===== Compatible With: =====================================
+//= eAthena 0.1+; RO Episode 4+
+//===== Description: =========================================
+//= Auto Start for War of Emperium
+//=============================================
+//= gettime(3): Gets hour (24 hour time)
+//= gettime(4): Use it if you only want to have WoE start on
+//= certain days.
+//= 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, etc.
+//===== Additional Comments: =================================
+//= v1.1a changed OnInit to OnAgitInit.[kobra_k88]
+//= v1.2 added gettime checks. removed $AgitStarted var.[kobra_k88]
+//============================================================
+
+// Auto Start Agit NPC
+- script Agit_Event -1,{
+ end;
+
+OnAgitInit:
+ if(gettime(3) >= 21 || gettime(3) < 11) goto L_Stop;
+
+OnClock1100:
+// if(gettime(4)!=1 || gettime(4)!=3 || gettime(4)!=6) end;
+ Announce "The War Of Emperium has begun!",8;
+ AgitStart;
+ Break;
+
+OnClock2100:
+L_Stop:
+// if(gettime(4)!=1 || gettime(4)!=3 || gettime(4)!=6) end;
+ Announce "The War Of Emperium is over!",8;
+ AgitEnd;
+ Break;
+}