diff options
author | kobra_k88 <kobra_k88@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-19 09:13:13 +0000 |
---|---|---|
committer | kobra_k88 <kobra_k88@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-19 09:13:13 +0000 |
commit | f92ec182fdd55f2851167c7bd8c90866b357d637 (patch) | |
tree | 9ac9dd9141ed0f52a427facdcecd765442f117c4 /npc/guild | |
parent | d43fec3b2d32ebca58ebc8157ed330146f93bc2e (diff) | |
download | hercules-f92ec182fdd55f2851167c7bd8c90866b357d637.tar.gz hercules-f92ec182fdd55f2851167c7bd8c90866b357d637.tar.bz2 hercules-f92ec182fdd55f2851167c7bd8c90866b357d637.tar.xz hercules-f92ec182fdd55f2851167c7bd8c90866b357d637.zip |
Implemented Shadowlady's idea to allow for different woe start/stop times on different days.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@257 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild')
-rw-r--r-- | npc/guild/ev_agit_event.txt | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/npc/guild/ev_agit_event.txt b/npc/guild/ev_agit_event.txt index 211075560..cf31057a3 100644 --- a/npc/guild/ev_agit_event.txt +++ b/npc/guild/ev_agit_event.txt @@ -11,13 +11,14 @@ //= 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. +//= gettime(4): Gets day of week 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] //= v1.3 Moved treasure spawn time here.[kobra_k88] +//= v1.3a Implemented Shadowlady's idea to allow for different +//= start/stop times on different days.[kobra_k88] //============================================================ // WoE Start/Stop times @@ -25,21 +26,24 @@ - script Agit_Event -1,{ end; +OnClock2100: //start time for Tues(2), Thurs(4) +OnClock2300: //end time for Tues(2), Thurs(4) +OnClock1600: //start time for Sat(6) +OnClock1800: //end time for Sat(6) OnAgitInit: - if(gettime(3) >= 17 || gettime(3) < 10) goto L_Stop; + if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<23)) goto L_Start; + if((gettime(4)==4) && (gettime(3)>=21 && gettime(3)<23)) goto L_Start; + if((gettime(4)==6) && (gettime(3)>=16 && gettime(3)<18)) goto L_Start; + if(gettime(4)!=2 || gettime(4)!=4 || gettime(4)!=6) end; //stops script on non woe day -OnClock1000: -// if(gettime(4)!=1 || gettime(4)!=3 || gettime(4)!=6) end; - Announce "The War Of Emperium has begun!",8; - AgitStart; - Break; - -OnClock1700: -L_Stop: -// if(gettime(4)!=1 || gettime(4)!=3 || gettime(4)!=6) end; Announce "The War Of Emperium is over!",8; AgitEnd; Break; + +L_Start: + Announce "The War Of Emperium has begun!",8; + AgitStart; + Break; } // Treasure Spawn Time |