diff options
author | daegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-01 04:29:56 +0000 |
---|---|---|
committer | daegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-01 04:29:56 +0000 |
commit | 8832adba3ec9df0f7f890154f69f0993b8d1d8e5 (patch) | |
tree | 0e73afe6a780abf29fe035301f1354f24762da7a /npc/re/guild/agit_controller.txt | |
parent | fa533907d49c7e288be33efb55fcb094f8e48591 (diff) | |
download | hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.gz hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.bz2 hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.tar.xz hercules-8832adba3ec9df0f7f890154f69f0993b8d1d8e5.zip |
Full npc folder reorganization. (I hope I didn't break anything D:)
-Now common scripts goes to the main npc folder, and pre-re-only/re-only ones goes to their respective folders.
-NPCs with practically the same script but little differences have been left in the main folder and uses the command checkre() for the differences.
-For those NPCs with different coordinates but same script, the script has been left in the main folder but the NPCs splitted as duplicates.
-All pre-renewal files has been reverted back to their pre-renewal behavior.
TODO:
-Correct pre-re quest rewards.
-Check for pre-re/re differences in mapflags.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16545 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/re/guild/agit_controller.txt')
-rw-r--r-- | npc/re/guild/agit_controller.txt | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/npc/re/guild/agit_controller.txt b/npc/re/guild/agit_controller.txt deleted file mode 100644 index 27376df86..000000000 --- a/npc/re/guild/agit_controller.txt +++ /dev/null @@ -1,84 +0,0 @@ -//===== rAthena Script ======================================= -//= War of Emperium - WoE Auto-Start -//===== By: ================================================== -//= kalen (1.0) -//= 1.1 by Akaru and ho|yAnge| -//===== Current Version: ===================================== -//= 2.0 -//===== Compatible With: ===================================== -//= rAthena SVN; RO Episode 4+ -//===== Description: ========================================= -//= Auto Start for War of Emperium -//============================================= -//= gettime(3): Gets hour (24 hour time) -//= 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] -//= 1.4 Fixed treasure chests spawn! We had to unroll some loops -//= Now they appear in castles from 00:01 to 00:24. [Lupus] -//= 1.5 Fixed WOE end messages on non-WOE days, by Avaj -//= 1.5a missing tabs [KarLaeda] -//= 1.6 Corrected multiple "WoE has begun" announces [ultramage] -//= 1.7 Commented out the WoE start and end announces. [L0ne_W0lf] -//= 1.8 Castle owners displayed when WoE starts and finished. [L0ne_W0lf] -//= 1.8a Will now report unoccupied castles at start/end. [L0ne_W0lf] -//= 1.8b Whoops. Fixed a mistake :D [L0ne_W0lf] -//= 1.9 Rearranged the time-checks so they no longer use goto. [L0ne_W0lf] -//= Removed treasure spawning function calls. (No longer needed) -//= 2.0 Added WoE Battle Log support for broadcasts. [L0ne_W0lf] -//============================================================ -//| To know how to set up WoE times, go to doc\woe_time_explanation.txt -// WoE Start/Stop times -//====================================== -- 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: - // starting time checks - if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<23) || - (gettime(4)==4) && (gettime(3)>=21 && gettime(3)<23) || - (gettime(4)==6) && (gettime(3)>=16 && gettime(3)<18)) { - if (!agitcheck()) { - AgitStart; - callsub S_DisplayOwners; - } - end; - } - - // end time checks - if ((gettime(4)==2) && (gettime(3)==23) || - (gettime(4)==4) && (gettime(3)==23) || - (gettime(4)==6) && (gettime(3)==18)) { - if (agitcheck()) { - AgitEnd; - callsub S_DisplayOwners; - } - end; - } - end; - -S_DisplayOwners: - setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05"; - setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05"; - setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05"; - setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; - for( set .@i, 0; .@i <= 19; set .@i, .@i+1 ) { - if (GetCastleData(.@maps$[.@i],1)) { - Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle has been conquered by the [" + GetGuildName(GetCastleData(.@maps$[.@i],1)) + "] guild.",bc_all|bc_woe; - } - else { - Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle is currently unoccupied.",bc_all|bc_woe; - } - } - end; -} |