From 37e47973a81957469be3c73d49a928188160747e Mon Sep 17 00:00:00 2001 From: Dastgir Date: Thu, 4 Jun 2015 15:45:12 +0530 Subject: Renamed guild and guild2 folder to woe-fe and woe-se --- npc/custom/woe_controller.txt | 4 +- npc/guild/agit_controller.txt | 81 -- npc/guild/agit_main.txt | 1350 ----------------------------- npc/guild/aldeg_cas01.txt | 142 ---- npc/guild/aldeg_cas02.txt | 136 --- npc/guild/aldeg_cas03.txt | 139 --- npc/guild/aldeg_cas04.txt | 139 --- npc/guild/aldeg_cas05.txt | 138 --- npc/guild/gefg_cas01.txt | 130 --- npc/guild/gefg_cas02.txt | 131 --- npc/guild/gefg_cas03.txt | 134 --- npc/guild/gefg_cas04.txt | 130 --- npc/guild/gefg_cas05.txt | 130 --- npc/guild/payg_cas01.txt | 133 --- npc/guild/payg_cas02.txt | 134 --- npc/guild/payg_cas03.txt | 133 --- npc/guild/payg_cas04.txt | 134 --- npc/guild/payg_cas05.txt | 133 --- npc/guild/prtg_cas01.txt | 136 --- npc/guild/prtg_cas02.txt | 138 --- npc/guild/prtg_cas03.txt | 136 --- npc/guild/prtg_cas04.txt | 136 --- npc/guild/prtg_cas05.txt | 134 --- npc/guild/trs_rp.txt | 55 -- npc/guild2/agit_main_se.txt | 1834 ---------------------------------------- npc/guild2/agit_start_se.txt | 49 -- npc/guild2/arug_cas01.txt | 75 -- npc/guild2/arug_cas02.txt | 80 -- npc/guild2/arug_cas03.txt | 72 -- npc/guild2/arug_cas04.txt | 81 -- npc/guild2/arug_cas05.txt | 81 -- npc/guild2/guild_flags.txt | 103 --- npc/guild2/schg_cas01.txt | 72 -- npc/guild2/schg_cas02.txt | 64 -- npc/guild2/schg_cas03.txt | 72 -- npc/guild2/schg_cas04.txt | 72 -- npc/guild2/schg_cas05.txt | 74 -- npc/pre-re/scripts_main.conf | 2 +- npc/re/guild/invest_main.txt | 1676 ------------------------------------ npc/re/guild/invest_npc.txt | 65 -- npc/re/scripts_guild.conf | 8 - npc/re/scripts_main.conf | 4 +- npc/re/scripts_woe.conf | 8 + npc/re/woe-fe/invest_main.txt | 1676 ++++++++++++++++++++++++++++++++++++ npc/re/woe-fe/invest_npc.txt | 65 ++ npc/scripts_guild.conf | 55 -- npc/scripts_woe.conf | 55 ++ npc/woe-fe/agit_controller.txt | 81 ++ npc/woe-fe/agit_main.txt | 1350 +++++++++++++++++++++++++++++ npc/woe-fe/aldeg_cas01.txt | 142 ++++ npc/woe-fe/aldeg_cas02.txt | 136 +++ npc/woe-fe/aldeg_cas03.txt | 139 +++ npc/woe-fe/aldeg_cas04.txt | 139 +++ npc/woe-fe/aldeg_cas05.txt | 138 +++ npc/woe-fe/gefg_cas01.txt | 130 +++ npc/woe-fe/gefg_cas02.txt | 131 +++ npc/woe-fe/gefg_cas03.txt | 134 +++ npc/woe-fe/gefg_cas04.txt | 130 +++ npc/woe-fe/gefg_cas05.txt | 130 +++ npc/woe-fe/payg_cas01.txt | 133 +++ npc/woe-fe/payg_cas02.txt | 134 +++ npc/woe-fe/payg_cas03.txt | 133 +++ npc/woe-fe/payg_cas04.txt | 134 +++ npc/woe-fe/payg_cas05.txt | 133 +++ npc/woe-fe/prtg_cas01.txt | 136 +++ npc/woe-fe/prtg_cas02.txt | 138 +++ npc/woe-fe/prtg_cas03.txt | 136 +++ npc/woe-fe/prtg_cas04.txt | 136 +++ npc/woe-fe/prtg_cas05.txt | 134 +++ npc/woe-fe/trs_rp.txt | 55 ++ npc/woe-se/agit_main_se.txt | 1834 ++++++++++++++++++++++++++++++++++++++++ npc/woe-se/agit_start_se.txt | 49 ++ npc/woe-se/arug_cas01.txt | 75 ++ npc/woe-se/arug_cas02.txt | 80 ++ npc/woe-se/arug_cas03.txt | 72 ++ npc/woe-se/arug_cas04.txt | 81 ++ npc/woe-se/arug_cas05.txt | 81 ++ npc/woe-se/guild_flags.txt | 103 +++ npc/woe-se/schg_cas01.txt | 72 ++ npc/woe-se/schg_cas02.txt | 64 ++ npc/woe-se/schg_cas03.txt | 72 ++ npc/woe-se/schg_cas04.txt | 72 ++ npc/woe-se/schg_cas05.txt | 74 ++ 83 files changed, 8720 insertions(+), 8720 deletions(-) delete mode 100644 npc/guild/agit_controller.txt delete mode 100644 npc/guild/agit_main.txt delete mode 100644 npc/guild/aldeg_cas01.txt delete mode 100644 npc/guild/aldeg_cas02.txt delete mode 100644 npc/guild/aldeg_cas03.txt delete mode 100644 npc/guild/aldeg_cas04.txt delete mode 100644 npc/guild/aldeg_cas05.txt delete mode 100644 npc/guild/gefg_cas01.txt delete mode 100644 npc/guild/gefg_cas02.txt delete mode 100644 npc/guild/gefg_cas03.txt delete mode 100644 npc/guild/gefg_cas04.txt delete mode 100644 npc/guild/gefg_cas05.txt delete mode 100644 npc/guild/payg_cas01.txt delete mode 100644 npc/guild/payg_cas02.txt delete mode 100644 npc/guild/payg_cas03.txt delete mode 100644 npc/guild/payg_cas04.txt delete mode 100644 npc/guild/payg_cas05.txt delete mode 100644 npc/guild/prtg_cas01.txt delete mode 100644 npc/guild/prtg_cas02.txt delete mode 100644 npc/guild/prtg_cas03.txt delete mode 100644 npc/guild/prtg_cas04.txt delete mode 100644 npc/guild/prtg_cas05.txt delete mode 100644 npc/guild/trs_rp.txt delete mode 100644 npc/guild2/agit_main_se.txt delete mode 100644 npc/guild2/agit_start_se.txt delete mode 100644 npc/guild2/arug_cas01.txt delete mode 100644 npc/guild2/arug_cas02.txt delete mode 100644 npc/guild2/arug_cas03.txt delete mode 100644 npc/guild2/arug_cas04.txt delete mode 100644 npc/guild2/arug_cas05.txt delete mode 100644 npc/guild2/guild_flags.txt delete mode 100644 npc/guild2/schg_cas01.txt delete mode 100644 npc/guild2/schg_cas02.txt delete mode 100644 npc/guild2/schg_cas03.txt delete mode 100644 npc/guild2/schg_cas04.txt delete mode 100644 npc/guild2/schg_cas05.txt delete mode 100644 npc/re/guild/invest_main.txt delete mode 100644 npc/re/guild/invest_npc.txt delete mode 100644 npc/re/scripts_guild.conf create mode 100644 npc/re/scripts_woe.conf create mode 100644 npc/re/woe-fe/invest_main.txt create mode 100644 npc/re/woe-fe/invest_npc.txt delete mode 100644 npc/scripts_guild.conf create mode 100644 npc/scripts_woe.conf create mode 100644 npc/woe-fe/agit_controller.txt create mode 100644 npc/woe-fe/agit_main.txt create mode 100644 npc/woe-fe/aldeg_cas01.txt create mode 100644 npc/woe-fe/aldeg_cas02.txt create mode 100644 npc/woe-fe/aldeg_cas03.txt create mode 100644 npc/woe-fe/aldeg_cas04.txt create mode 100644 npc/woe-fe/aldeg_cas05.txt create mode 100644 npc/woe-fe/gefg_cas01.txt create mode 100644 npc/woe-fe/gefg_cas02.txt create mode 100644 npc/woe-fe/gefg_cas03.txt create mode 100644 npc/woe-fe/gefg_cas04.txt create mode 100644 npc/woe-fe/gefg_cas05.txt create mode 100644 npc/woe-fe/payg_cas01.txt create mode 100644 npc/woe-fe/payg_cas02.txt create mode 100644 npc/woe-fe/payg_cas03.txt create mode 100644 npc/woe-fe/payg_cas04.txt create mode 100644 npc/woe-fe/payg_cas05.txt create mode 100644 npc/woe-fe/prtg_cas01.txt create mode 100644 npc/woe-fe/prtg_cas02.txt create mode 100644 npc/woe-fe/prtg_cas03.txt create mode 100644 npc/woe-fe/prtg_cas04.txt create mode 100644 npc/woe-fe/prtg_cas05.txt create mode 100644 npc/woe-fe/trs_rp.txt create mode 100644 npc/woe-se/agit_main_se.txt create mode 100644 npc/woe-se/agit_start_se.txt create mode 100644 npc/woe-se/arug_cas01.txt create mode 100644 npc/woe-se/arug_cas02.txt create mode 100644 npc/woe-se/arug_cas03.txt create mode 100644 npc/woe-se/arug_cas04.txt create mode 100644 npc/woe-se/arug_cas05.txt create mode 100644 npc/woe-se/guild_flags.txt create mode 100644 npc/woe-se/schg_cas01.txt create mode 100644 npc/woe-se/schg_cas02.txt create mode 100644 npc/woe-se/schg_cas03.txt create mode 100644 npc/woe-se/schg_cas04.txt create mode 100644 npc/woe-se/schg_cas05.txt (limited to 'npc') diff --git a/npc/custom/woe_controller.txt b/npc/custom/woe_controller.txt index 824fa4a4f..ec5bb3d81 100644 --- a/npc/custom/woe_controller.txt +++ b/npc/custom/woe_controller.txt @@ -11,8 +11,8 @@ //= and "rewards" function originally by Goddameit. //===== Additional Comments: ================================= //= Be sure to disable the default agit controllers! -//== npc\guild\agit_controller.txt -//== npc\guild2\agit_start_se.txt +//== npc\woe-fe\agit_controller.txt +//== npc\woe-se\agit_start_se.txt //============================================================ // Information NPC diff --git a/npc/guild/agit_controller.txt b/npc/guild/agit_controller.txt deleted file mode 100644 index 8d038c322..000000000 --- a/npc/guild/agit_controller.txt +++ /dev/null @@ -1,81 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium - WoE Auto-Start -//===== By: ================================================== -//= kalen (1.0) -//= 1.1 by Akaru and ho|yAnge| -//===== Current Version: ===================================== -//= 2.0a -//===== 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] -//= 2.0a Removed some brackets -//============================================================ -//| 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 (.@i = 0; .@i <= 19; ++.@i) { - 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; -} diff --git a/npc/guild/agit_main.txt b/npc/guild/agit_main.txt deleted file mode 100644 index 527bebce4..000000000 --- a/npc/guild/agit_main.txt +++ /dev/null @@ -1,1350 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium Guild Template File -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 2.0 -//===== Description: ========================================= -//= [ Aegis Conversion] -//= ---------------------------------------------------------- -//= - THIS FILE IS REQUIRED FOR GUILD CASTLES TO FUNCTION. -//= ---------------------------------------------------------- -//= - Enables AGIT Manager inside Guild Strongholds. -//= Visible Name required: Agit -//= Manages the various functions used in and out of WoE. -//= -//= - Enables Stewards inside Guild Strongholds which let's -//= the guild master invest in Defense and Economy, and -//= to summon guardians, a Kafra, and enter master's room. -//= -//= - Guardian Spawning Template -//= Visible Name required: Guardian -//= Spawn guardians when guild castle data is recieved. -//= -//= - Enables Kafra Services inside Guild Strongholds. -//= Visible Name required: Kafra Employee -//= Storage, Guild Storage, Teleport Service, Cart rental. -//= -//= - Treasure Chest spawning. -//= Chests will NOT be saved anymore in the event of crashes. -//= Treasures will NOT spawn on a location that already has -//= treasure chest spawned. -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Daily investment will now be reset. [L0ne_W0lf] -//= Template will no longer try to spawn chests. -//= 1.2 Fixed Eco Invest option charging twice. [L0ne_W0lf] -//= 1.3 Fixed a loading flag emblem for Payon 1. [L0ne_W0lf] -//= Fixed two typos regarding Guild Steward name. -//= 1.4 Fixed a typo in defense investment. [L0ne_W0lf] -//= 1.5 Fixed spawn point of the emperium in Payon 1. [L0ne_W0lf] -//= Double-investing doubles the price now. -//= 1.6 Corrected Zeny check when summoning guardians. [L0ne_W0lf] -//= Corrected cost for investing, thanks to Ai4rei. -//= Second invest is now quadruple the value of the first -//= Investing now happens at the turn of the day. -//= 1.6a Corrected conditions in the new investing blocks. [L0ne_W0lf] -//= 1.6b Moved where investments are added to eco/def. [L0ne_W0lf] -//= 1.7 Updated Agitbreak announcements, added bc_woe [L0ne_W0lf] -//= and added extended announcement format for mapannounce. -//= 1.8 Fixed a possible exploit in guild castle investment. [Brian] -//= 1.9 Partially rewrote Script. [Masao] -//= 1.9a Fixed incorrect setcastledata parameter. [Euphy] -//= 2.0 Fixed an issue where Castle Manager couldn't be fired. [Joseph] -//============================================================ - -// WoE : Main Functions -//============================================================ -- script Gld_Agit_Manager::Gld_Agit_Manager -1,{ - end; - -// War of Emperium has started. -OnAgitStart: - if (strnpcinfo(0) == "Gld_Agit_Manager") end; - maprespawnguildid strnpcinfo(2),getcastledata(strnpcinfo(2),1),6; - gvgon strnpcinfo(2); - -// Spawn (fall through), or respawn the Emperium once it has been broken. -OnStartArena: - // OnAgitStart will fall through and spawn the Emperium. - if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } - else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } - else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } - else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } - else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } - else if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } - else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } - else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } - else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } - else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } - else if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } - else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } - else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],269,265; } - else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } - else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } - else if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } - else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } - else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } - else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } - else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } - // Add custom Guild Castles here. - else { - end; - } - if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; - } - end; - -// The Emperium has been broken. -OnAgitBreak: - .@GID = getcharid(2); - // Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen) - if (.@GID <= 0) { - .@notice$ = "Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(2)+" while guildless. No data will be saved and Emperium respawned."; - logmes .@notice$; debugmes .@notice$; - donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; - end; - } - // Adjust Economy Invest Level for Castle - .@Economy = getcastledata(strnpcinfo(2),2) - 5; - if (.@Economy < 0) .@Economy = 0; - setcastledata strnpcinfo(2), 2, .@Economy; - // Adjust Defense Invest Level for Castle - .@defence = getcastledata(strnpcinfo(2),3) - 5; - if (.@defence < 0) .@defence = 0; - setcastledata strnpcinfo(2), 3, .@defence; - - // Set new Castle Occupant - setcastledata strnpcinfo(2),1, .@GID; - - // Announce that the Emperium is destroyed, and respawn all but new castle-occupants. - mapannounce strnpcinfo(2),"The emperium has been destroyed.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12; - maprespawnguildid strnpcinfo(2),.@GID,6; - - // Refresh castle data, disable Kafra and reset Invest information. - donpcevent strnpcinfo(0)+"::OnRecvCastle"; - disablenpc "Kafra Staff#"+strnpcinfo(2); - for (.@i = 4; .@i <= 9; ++.@i) { - setcastledata strnpcinfo(2), .@i, 0; - } - // Erase Guardian Database information if the new owners do not have Guardian Research. - if( getgdskilllv(.@GID,10002) == 0 ) { - for (.@i = 10; .@i <= 17; ++.@i) { - setcastledata strnpcinfo(2), .@i, 0; - } - } - // Respawn the Emperium, and display new owners. - sleep 500; // Slow down script execution slightly. - if( agitcheck() ) - donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; - sleep 7000; - announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildname(.@GID) + "] guild.",bc_all|bc_woe; - end; - -// War of Emperium has ended. -OnAgitEnd: - if (strnpcinfo(0) == "Gld_Agit_Manager") end; - gvgoff strnpcinfo(2); - // If the castle has no owner at the end of WoE, do not kill Emperium. - if (getcastledata(strnpcinfo(2),1)) { - killmonster strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; - } - end; - -// Occupying Guild has been disbanded. -OnGuildBreak: - if (strnpcinfo(0) == "Gld_Agit_Manager") end; - // Kill guardians, disable the Kafra, and set owner to 0. - killmonster strnpcinfo(2),"Guardian#"+strnpcinfo(2)+"::OnGuardianDied"; - disablenpc "Kafra Staff#"+strnpcinfo(2); - setcastledata strnpcinfo(2),1,0; - // Wait before refreshing guild information. - sleep 7000; - announce "Guild Base [" + getcastlename(strnpcinfo(2)) + "] has been abandoned.",0; - donpcevent strnpcinfo(0)+"::OnRecvCastle"; - end; - -OnAgitInit: -OnRecvCastle: - if (strnpcinfo(0) == "Gld_Agit_Manager") end; - // Spawn Monsters if the castle is empty. - .@GID = getcastledata(strnpcinfo(2),1); - if (.@GID == 0) { - killmonsterall strnpcinfo(2); - if (compare(strnpcinfo(2),"aldeg")) { - // Normal Spawns - monster strnpcinfo(2),0,0,"Evil Druid",1117,10; - monster strnpcinfo(2),0,0,"Khalitzburg",1132,4; - monster strnpcinfo(2),0,0,"Abysmal Knight",1219,2; - monster strnpcinfo(2),0,0,"Executioner",1205,1; - monster strnpcinfo(2),0,0,"Penomena",1216,10; - monster strnpcinfo(2),0,0,"Alarm",1193,18; - monster strnpcinfo(2),0,0,"Clock",1269,9; - monster strnpcinfo(2),0,0,"Raydric Archer",1276,7; - monster strnpcinfo(2),0,0,"Wanderer",1208,3; - monster strnpcinfo(2),0,0,"Alice",1275,1; - monster strnpcinfo(2),0,0,"Bloody Knight",1268,1; - monster strnpcinfo(2),0,0,"Dark Lord",1272,1; - // Set Emperium room spawn coordinates and spawn monsters. - if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } - else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } - else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } - else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } - else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Dark Lord",1272,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Tower Keeper",1270,4; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Bloody Knight",1268,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Abysmal Knight",1219,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; - } - else if (compare(strnpcinfo(2),"gefg")) { - // Normal Spawns - monster strnpcinfo(2),0,0,"Evil Druid",1117,10; - monster strnpcinfo(2),0,0,"Wind Ghost",1263,11; - monster strnpcinfo(2),0,0,"Bathory",1102,10; - monster strnpcinfo(2),0,0,"Jakk",1130,10; - monster strnpcinfo(2),0,0,"Marduk",1140,20; - monster strnpcinfo(2),0,0,"Raydric",1163,9; - monster strnpcinfo(2),0,0,"Alice",1275,1; - monster strnpcinfo(2),0,0,"Abysmal Knight",1219,1; - monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1; - monster strnpcinfo(2),0,0,"Phreeoni",1159,1; - // Set Emperium room spawn coordinates and spawn monsters. - if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } - else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } - else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } - else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } - else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Mysteltainn",1203,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Hero",1087,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"High Orc",1213,10; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Archer",1189,10; - } - else if (compare(strnpcinfo(2),"payg")) { - // Normal Spawns - monster strnpcinfo(2),0,0,"Greatest General",1277,9; - monster strnpcinfo(2),0,0,"Wanderer",1208,10; - monster strnpcinfo(2),0,0,"Mutant Dragonoid",1262,5; - monster strnpcinfo(2),0,0,"Bathory",1102,5; - monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1; - monster strnpcinfo(2),0,0,"Eddga",1115,1; - monster strnpcinfo(2),0,0,"Horong",1129,11; - monster strnpcinfo(2),0,0,"Raydric Archer",1276,5; - monster strnpcinfo(2),0,0,"Kobold Archer",1282,4; - monster strnpcinfo(2),0,0,"Gargoyle",1253,5; - // Set Emperium room spawn coordinates and spawn monsters. - if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } - else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } - else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],269,265; } - else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } - else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Moonlight Flower",1150,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Eddga",1115,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Wanderer",1208,6; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; - } - else if (compare(strnpcinfo(2),"prtg")) { - // Normal Spawns - monster strnpcinfo(2),0,0,"Raydric",1163,1; - monster strnpcinfo(2),0,0,"Khalitzburg",1132,10; - monster strnpcinfo(2),0,0,"Abysmal Knight",1219,5; - monster strnpcinfo(2),0,0,"Bloody Knight",1268,5; - monster strnpcinfo(2),0,0,"Stormy Knight",1251,1; - monster strnpcinfo(2),0,0,"Hatii",1252,1; - monster strnpcinfo(2),0,0,"Raydric Archer",1276,5; - monster strnpcinfo(2),0,0,"Gryphon",1259,2; - monster strnpcinfo(2),0,0,"Chimera",1283,3; - monster strnpcinfo(2),0,0,"Alice",1275,1; - monster strnpcinfo(2),0,0,"Zealotus",1200,1; - // Set Emperium room spawn coordinates and spawn monsters. - if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } - else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } - else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } - else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } - else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1268,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Master",1251,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Hatii",1252,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1219,1; - monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; - } - // Add custom Guild Castles here. - else { - end; - } - donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; - // Disable Kafra Staff... - disablenpc "Kafra Staff#"+strnpcinfo(2); - end; - } - else { - // Otherwise place the guild emblem on flags. - if (strnpcinfo(2) == "aldeg_cas01") { donpcevent "::OnRecvCastleA01"; } - else if (strnpcinfo(2) == "aldeg_cas02") { donpcevent "::OnRecvCastleA02"; } - else if (strnpcinfo(2) == "aldeg_cas03") { donpcevent "::OnRecvCastleA03"; } - else if (strnpcinfo(2) == "aldeg_cas04") { donpcevent "::OnRecvCastleA04"; } - else if (strnpcinfo(2) == "aldeg_cas05") { donpcevent "::OnRecvCastleA05"; } - else if (strnpcinfo(2) == "gefg_cas01") { donpcevent "::OnRecvCastleG01"; } - else if (strnpcinfo(2) == "gefg_cas02") { donpcevent "::OnRecvCastleG02"; } - else if (strnpcinfo(2) == "gefg_cas03") { donpcevent "::OnRecvCastleG03"; } - else if (strnpcinfo(2) == "gefg_cas04") { donpcevent "::OnRecvCastleG04"; } - else if (strnpcinfo(2) == "gefg_cas05") { donpcevent "::OnRecvCastleG05"; } - else if (strnpcinfo(2) == "payg_cas01") { donpcevent "::OnRecvCastlePy01"; } - else if (strnpcinfo(2) == "payg_cas02") { donpcevent "::OnRecvCastlePy02"; } - else if (strnpcinfo(2) == "payg_cas03") { donpcevent "::OnRecvCastlePy03"; } - else if (strnpcinfo(2) == "payg_cas04") { donpcevent "::OnRecvCastlePy04"; } - else if (strnpcinfo(2) == "payg_cas05") { donpcevent "::OnRecvCastlePy05"; } - else if (strnpcinfo(2) == "prtg_cas01") { donpcevent "::OnRecvCastlePt01"; } - else if (strnpcinfo(2) == "prtg_cas02") { donpcevent "::OnRecvCastlePt02"; } - else if (strnpcinfo(2) == "prtg_cas03") { donpcevent "::OnRecvCastlePt03"; } - else if (strnpcinfo(2) == "prtg_cas04") { donpcevent "::OnRecvCastlePt04"; } - else if (strnpcinfo(2) == "prtg_cas05") { donpcevent "::OnRecvCastlePt05"; } - // Add custom Guild Castles here. - else { - end; - } - // And load purchased Guardian in castles. - donpcevent "Guardian#"+strnpcinfo(2)+"::OnSpawnGuardians"; - // And display Kafra if purchased. - if (getcastledata(strnpcinfo(2),9) < 1) disablenpc "Kafra Staff#"+strnpcinfo(2); - } - end; -} - -// WoE : Guild Kafras -//============================================================ -- script Kafra Staff#woe::guildkafra -1,{ - - .@GID = getcastledata(strnpcinfo(2),1); - - if (compare(strnpcinfo(2),"aldeg")) { - setarray .@destination$[0],"Al De Baran","aldebaran"; - setarray .@coordinates[0],132,103; - } - else if (compare(strnpcinfo(2),"gefg")) { - setarray .@destination$[0],"Geffen","geffen"; - setarray .@coordinates[0],120,39; - } - else if (compare(strnpcinfo(2),"payg")) { - setarray .@destination$[0],"Payon","payon"; - setarray .@coordinates[0],70,100; - } - else if (compare(strnpcinfo(2),"prtg")) { - setarray .@destination$[0],"Prontera","prontera"; - setarray .@coordinates[0],278,211; - } - // Add custom Guild Castles here. - else { - end; - } - - cutin "kafra_01",2; - if (getcharid(2) == .@GID) { - mes "[Kafra Employee]"; - mes "Welcome. ^ff0000" + getguildname(.@GID) + "^000000 Member."; - mes "The Kafra Corporation will stay with you wherever you go."; - next; - switch (select("Use Storage:Use Teleport Service:Rent a Pushcart:Cancel")) { - case 1: - if (getskilllv("NV_BASIC") < 6) { - mes "[Kafra Employee]"; - mes "I'm sorry, but you"; - mes "need the Novice's"; - mes "Basic Skill Level 6 to"; - mes "use the Storage Service."; - close2; - cutin "",255; - end; - } - mes "[Kafra Employee]"; - mes "Here, let me open"; - mes "your Storage for you."; - mes "Thank you for using"; - mes "the Kafra Service."; - close2; - cutin "",255; - openstorage; - end; - case 2: - mes "[Kafra Employee]"; - mes "Please choose"; - mes "your destination."; - next; - switch (select(.@destination$+" -> 200z:Cancel")) { - case 1: - if (Zeny < 200) { - mes "[Kafra Employee]"; - mes "I'm sorry, but you don't have"; - mes "enough zeny for the Teleport"; - mes "Service. The fee to teleport"; - mes "to "+.@destination$+" is 200 zeny."; - close2; - cutin "",255; - end; - } - Zeny -= 200; - RESRVPTS += 2; - close2; - warp .@destination$[1],.@coordinates[0],.@coordinates[1]; - end; - case 2: - close2; - cutin "",255; - end; - } - case 3: - if (BaseClass != Job_Merchant) { - mes "[Kafra Employee]"; - mes "I'm sorry, but the"; - mes "Pushcart rental service"; - mes "is only available to Merchants,"; - mes "Blacksmiths, Master Smiths,"; - mes "Alchemists, Biochemists,"; - mes "Mechanics and Geneticists."; - close2; - cutin "",255; - end; - } - if (checkcart()) { - mes "[Kafra Employee]"; - mes "You already have"; - mes "a Pushcart equipped."; - mes "Unfortunately, we can't"; - mes "rent more than one to"; - mes "each customer at a time."; - close2; - cutin "",255; - end; - } - mes "[Kafra Employee]"; - mes "The Pushcart rental"; - mes "fee is 800 zeny. Would"; - mes "you like to rent a Pushcart?"; - next; - switch (select("Rent a Pushcart.:Cancel")) { - case 1: - if (Zeny < 800) { - mes "[Kafra Employee]"; - mes "I'm sorry, but you"; - mes "don't have enough"; - mes "zeny to pay the Pushcart"; - mes "rental fee of 800 zeny."; - close2; - cutin "",255; - end; - } - RESRVPTS += 8; - Zeny -= 800; - setcart; - close2; - cutin "",255; - end; - case 2: - close2; - cutin "",255; - end; - } - case 4: - mes "[Kafra Employee]"; - mes "We, here at Kafra Corporation,"; - mes "are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence."; - close2; - cutin "",255; - end; - } - } - mes "[Kafra Employee]"; - mes "I am instructed to only offer my services to the ^ff0000"+getguildname(.@GID)+"^000000 Guild. Please try another Kafra Employee around here. Sorry for the inconvenience."; - close2; - cutin "",255; - end; -} - -// WoE : Castle Managers -//============================================================ -- script Castle Manager#cm::cm -1,{ - - .@GID = getcastledata(strnpcinfo(2),1); - - // .@guardiantype = Defines the types of guardians per castle basis. - // 1 - Soldier Guardian, 2 - Archer Guardian, 3 - Knight Guardian - // .@guardianposx = Define the x spawn point for each uardian. - // [0] = 1st guardian's x spawn point. - // .@guardianposy = Define the y spawn point for each guardian. - // [0] = 1st guardian's y spawn point. - // .@masterroom = Defines the coordinates of the Treasure Room. - if (strnpcinfo(2) == "aldeg_cas01") { - setarray .@guardiantype[0],1,2,2,2,2,3,3,3; - setarray .@guardianposx[0],17,39,38,45,21,218,213,73; - setarray .@guardianposy[0],218,208,196,228,194,24,24,70; - setarray .@masterroom[0],113,223; - } - else if (strnpcinfo(2) == "aldeg_cas02") { - setarray .@guardiantype[0],3,3,3,1,1,2,2,2; - setarray .@guardianposx[0],27,88,117,60,51,21,36,210; - setarray .@guardianposy[0],184,43,46,202,183,177,183,7; - setarray .@masterroom[0],134,225; - } - else if (strnpcinfo(2) == "aldeg_cas03") { - setarray .@guardiantype[0],3,3,1,1,1,2,2,2; - setarray .@guardianposx[0],90,116,86,116,64,212,195,110; - setarray .@guardianposy[0],112,112,120,76,103,160,151,217; - setarray .@masterroom[0],229,267; - } - else if (strnpcinfo(2) == "aldeg_cas04") { - setarray .@guardiantype[0],2,2,2,1,1,1,3,3; - setarray .@guardianposx[0],187,192,148,145,169,198,48,55; - setarray .@guardianposy[0],100,42,88,209,53,77,72,88; - setarray .@masterroom[0],83,17; - } - else if (strnpcinfo(2) == "aldeg_cas05") { - setarray .@guardiantype[0],2,2,1,1,3,3,3,3; - setarray .@guardianposx[0],51,188,157,157,27,145,156,41; - setarray .@guardianposy[0],202,79,192,74,221,78,73,112; - setarray .@masterroom[0],64,8; - } - // Geffen (Britoniah) Castles - else if (strnpcinfo(2) == "gefg_cas01") { - setarray .@guardiantype[0],1,1,1,2,2,3,3,3; - setarray .@guardianposx[0],67,184,62,36,50,50,189,200; - setarray .@guardianposy[0],179,20,41,186,186,67,41,167; - setarray .@masterroom[0],152,117; - } - else if (strnpcinfo(2) == "gefg_cas02") { - setarray .@guardiantype[0],1,1,1,2,2,3,3,3; - setarray .@guardianposx[0],64,56,166,35,20,19,166,159; - setarray .@guardianposy[0],168,41,25,148,150,41,42,188; - setarray .@masterroom[0],145,115; - } - else if (strnpcinfo(2) == "gefg_cas03") { - setarray .@guardiantype[0],2,2,1,1,1,3,3,3; - setarray .@guardianposx[0],48,113,48,157,243,157,234,238; - setarray .@guardianposy[0],176,214,207,62,41,45,25,160; - setarray .@masterroom[0],275,289; - } - else if (strnpcinfo(2) == "gefg_cas04") { - setarray .@guardiantype[0],2,2,1,1,1,3,3,3; - setarray .@guardianposx[0],53,31,49,29,147,57,160,148; - setarray .@guardianposy[0],191,178,220,46,65,46,50,189; - setarray .@masterroom[0],116,123; - } - else if (strnpcinfo(2) == "gefg_cas05") { - setarray .@guardiantype[0],2,2,1,1,1,3,3,3; - setarray .@guardianposx[0],45,71,72,66,177,66,177,193; - setarray .@guardianposy[0],149,163,142,47,50,17,35,166; - setarray .@masterroom[0],149,106; - } - // Payon (Baulder) Castles - else if (strnpcinfo(2) == "payg_cas01") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],229,225,222,99,65,36,51,138; - setarray .@guardianposy[0],92,80,111,45,31,127,144,133; - setarray .@masterroom[0],295,8; - } - else if (strnpcinfo(2) == "payg_cas02") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],237,228,210,57,42,287,264,27; - setarray .@guardianposy[0],54,72,41,241,241,257,272,20; - setarray .@masterroom[0],141,149; - } - else if (strnpcinfo(2) == "payg_cas03") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],245,269,36,41,39,19,37,268; - setarray .@guardianposy[0],37,51,39,39,65,276,277,244; - setarray .@masterroom[0],163,167; - } - else if (strnpcinfo(2) == "payg_cas04") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],251,232,231,32,32,35,36,270; - setarray .@guardianposy[0],212,212,175,287,232,45,17,41; - setarray .@masterroom[0],151,47; - } - else if (strnpcinfo(2) == "payg_cas05") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],19,33,266,266,263,263,250,36; - setarray .@guardianposy[0],279,260,234,279,37,21,22,36; - setarray .@masterroom[0],153,137; - } - // Prontera (Valkyrie Realms) Castles - else if (strnpcinfo(2) == "prtg_cas01") { - setarray .@guardiantype[0],1,1,1,2,2,3,3,3; - setarray .@guardianposx[0],182,182,153,59,50,184,196,107; - setarray .@guardianposy[0],62,116,86,28,36,183,189,179; - setarray .@masterroom[0],15,209; - } - else if (strnpcinfo(2) == "prtg_cas02") { - setarray .@guardiantype[0],3,3,3,1,1,2,2,2; - setarray .@guardianposx[0],161,153,178,71,49,64,7,75; - setarray .@guardianposy[0],161,161,44,75,28,186,196,175; - setarray .@masterroom[0],207,229; - } - else if (strnpcinfo(2) == "prtg_cas03") { - setarray .@guardiantype[0],3,3,3,1,1,2,2,2; - setarray .@guardianposx[0],191,137,45,50,41,191,179,191; - setarray .@guardianposy[0],190,190,99,87,87,42,43,72; - setarray .@masterroom[0],190,130; - } - else if (strnpcinfo(2) == "prtg_cas04") { - setarray .@guardiantype[0],3,3,3,1,1,1,2,2; - setarray .@guardianposx[0],276,274,246,38,29,33,78,36; - setarray .@guardianposy[0],14,35,246,240,240,258,48,61; - setarray .@masterroom[0],275,160; - } - else if (strnpcinfo(2) == "prtg_cas05") { - setarray .@guardiantype[0],3,3,3,1,1,1,2,2; - setarray .@guardianposx[0],266,287,245,236,251,278,32,44; - setarray .@guardianposy[0],262,280,250,63,63,253,253,248; - setarray .@masterroom[0],281,176; - } - // Add custom Guild Castles here. - else { - end; - } - - if (.@GID == 0) { - mes "["+strnpcinfo(1)+"]"; - mes "I have been waiting for a master to fulfill my destiny."; - mes "Brave soul... fate will guide you towards your future..."; - close; - } - if (getguildmaster(.@GID) != strcharinfo(0)) { - mes "["+strnpcinfo(1)+"]"; - mes "No matter how much you pester me, I'll still follow my master ^ff0000"+getguildmaster(.@GID)+"^000000. Where are the Guardians?! Send these ruffians away right now!"; - close; - } - mes "["+strnpcinfo(1)+"]"; - mes "Welcome. My honorable master, ^ff0000"+strcharinfo(0)+"^000000..."; - mes "Your humble servent, "+strnpcinfo(1)+", is here to serve you."; - next; - switch (select("Castle briefing:Invest in commercial growth:Invest in Castle Defenses:Summon Guardian:Hire / Fire a Kafra Employee:Go into Master's room")) { - case 1: - mes "["+strnpcinfo(1)+"]"; - mes "I will report the Castle briefing, Master."; - mes " "; - mes "^0000ffNow, the commercial growth level is "+getcastledata(strnpcinfo(2),2)+"."; - if (getcastledata(strnpcinfo(2),4)) { - mes " You invested "+getcastledata(strnpcinfo(2),4)+" times in past 1 day."; - } - mes " Now, the Castle Defense level is "+getcastledata(strnpcinfo(2),3)+".^000000"; - if (getcastledata(strnpcinfo(2),5)) { - mes " ^0000ff- You invested "+getcastledata(strnpcinfo(2),5)+" times in past 1 day.^000000"; - } - mes " "; - mes "That's all I have to report, Master."; - close; - case 2: - .@Economy = getcastledata(strnpcinfo(2),2); - if (.@Economy < 6) { .@eco_invest = 5000; } - else if ((.@Economy >= 6) && (.@Economy <= 10)) { .@eco_invest = 10000; } - else if ((.@Economy >= 11) && (.@Economy <= 15)) { .@eco_invest = 20000; } - else if ((.@Economy >= 16) && (.@Economy <= 20)) { .@eco_invest = 35000; } - else if ((.@Economy >= 21) && (.@Economy <= 25)) { .@eco_invest = 55000; } - else if ((.@Economy >= 26) && (.@Economy <= 30)) { .@eco_invest = 80000; } - else if ((.@Economy >= 31) && (.@Economy <= 35)) { .@eco_invest = 110000; } - else if ((.@Economy >= 36) && (.@Economy <= 40)) { .@eco_invest = 145000; } - else if ((.@Economy >= 41) && (.@Economy <= 45)) { .@eco_invest = 185000; } - else if ((.@Economy >= 46) && (.@Economy <= 50)) { .@eco_invest = 230000; } - else if ((.@Economy >= 51) && (.@Economy <= 55)) { .@eco_invest = 280000; } - else if ((.@Economy >= 56) && (.@Economy <= 60)) { .@eco_invest = 335000; } - else if ((.@Economy >= 61) && (.@Economy <= 65)) { .@eco_invest = 395000; } - else if ((.@Economy >= 66) && (.@Economy <= 70)) { .@eco_invest = 460000; } - else if ((.@Economy >= 71) && (.@Economy <= 75)) { .@eco_invest = 530000; } - else if ((.@Economy >= 76) && (.@Economy <= 80)) { .@eco_invest = 605000; } - else if ((.@Economy >= 81) && (.@Economy <= 85)) { .@eco_invest = 685000; } - else if ((.@Economy >= 86) && (.@Economy <= 90)) { .@eco_invest = 770000; } - else if ((.@Economy >= 91) && (.@Economy <= 95)) { .@eco_invest = 860000; } - else if ((.@Economy >= 96) && (.@Economy <= 100)) { .@eco_invest = 955000; } - //Quadruple the cost of investing if you've already invested once. - if (getcastledata(strnpcinfo(2),4)) { - .@eco_invest *= 4; - } - mes "["+strnpcinfo(1)+"]"; - mes "If you invest in commercial growth, the quantity of goods made by the guild will increase. Therfore, if you consider our future, investments will be a necessity."; - mes " "; - mes "Initially, you are able to invest just once but if you pay more money, you will be able to invest twice."; - if (.@Economy >= 100) { - mes " "; - mes "^ff0000The commercial growth level of our Castle is at it's highest, 100%. No more investments are needed. Just as I have expected from a great economist like you, Master.^000000"; - close; - } - if (getcastledata(strnpcinfo(2),4) >= 2) { - mes " "; - mes "^ff0000You have already invested twice today. You cannot invest any more.^000000 I expect riches of the guild to grow at a high rate."; - close; - } - if (getcastledata(strnpcinfo(2),4) == 0) { - mes " "; - mes "The current investment amount required is ^ff0000"+.@eco_invest+"^000000 zeny. Will you invest?"; - } - else { - mes " "; - mes "You've invested once today... if you wish to invest once more, ^ff0000"+.@eco_invest+"^000000 more zeny will be needed."; - } - next; - switch (select("Invest in commercial growth:Cancel")) { - case 1: - if (Zeny < .@eco_invest) { - mes "["+strnpcinfo(1)+"]"; - mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master."; - close; - } - Zeny -= .@eco_invest; - setcastledata strnpcinfo(2),4,getcastledata(strnpcinfo(2),4)+1; - mes "[ "+strnpcinfo(1)+"]"; - mes "We finished the investment safely. I expect that our growth level will be increased by tomorrow."; - close; - case 2: - mes "["+strnpcinfo(1)+"]"; - mes "I'll do as you bid, my master... There is no hurry. We will do our best."; - close; - } - case 3: - .@defence = getcastledata(strnpcinfo(2),3); - if (.@defence < 6) { .@def_invest = 10000; } - else if ((.@defence >= 6) && (.@defence <= 10)) { .@def_invest = 20000; } - else if ((.@defence >= 11) && (.@defence <= 15)) { .@def_invest = 40000; } - else if ((.@defence >= 16) && (.@defence <= 20)) { .@def_invest = 70000; } - else if ((.@defence >= 21) && (.@defence <= 25)) { .@def_invest = 110000; } - else if ((.@defence >= 26) && (.@defence <= 30)) { .@def_invest = 160000; } - else if ((.@defence >= 31) && (.@defence <= 35)) { .@def_invest = 220000; } - else if ((.@defence >= 36) && (.@defence <= 40)) { .@def_invest = 290000; } - else if ((.@defence >= 41) && (.@defence <= 45)) { .@def_invest = 370000; } - else if ((.@defence >= 46) && (.@defence <= 50)) { .@def_invest = 460000; } - else if ((.@defence >= 51) && (.@defence <= 55)) { .@def_invest = 560000; } - else if ((.@defence >= 56) && (.@defence <= 60)) { .@def_invest = 670000; } - else if ((.@defence >= 61) && (.@defence <= 65)) { .@def_invest = 790000; } - else if ((.@defence >= 66) && (.@defence <= 70)) { .@def_invest = 920000; } - else if ((.@defence >= 71) && (.@defence <= 75)) { .@def_invest = 1060000; } - else if ((.@defence >= 76) && (.@defence <= 80)) { .@def_invest = 1210000; } - else if ((.@defence >= 81) && (.@defence <= 85)) { .@def_invest = 1370000; } - else if ((.@defence >= 86) && (.@defence <= 90)) { .@def_invest = 1540000; } - else if ((.@defence >= 91) && (.@defence <= 95)) { .@def_invest = 1720000; } - else if ((.@defence >= 96) && (.@defence <= 100)) { .@def_invest = 1910000; } - //Quadruple the cost of investing if you've already invested once. - if (getcastledata(strnpcinfo(2),5)) { - .@def_invest *= 4; - } - mes "["+strnpcinfo(1)+"]"; - mes "If you raise Castle Defenses, the durability of Guardians and the Emperium will increase. Therefore, if you consider our coming battles, some investment in this area will be required."; - mes " "; - mes "Originally you can invest just once but if you pay more money, you can invest twice."; - if (.@defence >= 100) { - mes " "; - mes "^ff0000But the Castle Defense level of our Castle is at it's highest, 100%. No more investments are needed. Just as I have expected from a great strategist like you, Master.^000000"; - close; - } - if (getcastledata(strnpcinfo(2),5) >= 2) { - mes " "; - mes "^ff0000You have already invested twice today. You cannot invest any more.^000000 I expect the Defenses of the guild to grow at a high rate."; - close; - } - if (getcastledata(strnpcinfo(2),5) == 0) { - mes " "; - mes "The current investment amount required is ^ff0000"+.@def_invest+"^000000 zeny. Will you invest?"; - } - else { - mes " "; - mes "You've invested once today... if you wish to invest once more, ^ff0000"+.@def_invest+"^000000 more zeny will be needed."; - } - next; - switch (select("Invest in Castle Defenses.:Cancel")) { - case 1: - if (Zeny < .@def_invest) { - mes "["+strnpcinfo(1)+"]"; - mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master."; - close; - } - Zeny -= .@def_invest; - setcastledata strnpcinfo(2),5,getcastledata(strnpcinfo(2),5)+1; - mes "[ "+strnpcinfo(1)+"]"; - mes "We finished the investment safely. I expect that our Castle Defense level will be increased by tomorrow."; - close; - case 2: - mes "["+strnpcinfo(1)+"]"; - mes "I'll do as you bid, my master... There is no hurry. We will do our best."; - close; - } - case 4: - mes "["+strnpcinfo(1)+"]"; - mes "Will you summon a Guardian? It'll be a protector to defend us loyally."; - mes "Please select a guardian to defend us."; - next; - for (.@i = 0; .@i <= 7; ++.@i) { - if (.@guardiantype[.@i] == 1) { .@type$ = "Guardian Soldier"; } - else if (.@guardiantype[.@i] == 2) { .@type$ = "Guardian Archer"; } - else { .@type$ = "Guardian Knight"; } - if (guardianinfo(strnpcinfo(2),.@i,0)) { - setarray .@gname$[.@i], .@type$ + " - Implemented (" + guardianinfo(strnpcinfo(2),.@i,2) + "/" + guardianinfo(strnpcinfo(2),.@i,1) + ")"; - } - else { - setarray .@gname$[.@i], .@type$ + " - Not Implemented"; - } - } - .@menu$ = .@gname$[0]+":"+.@gname$[1]+":"+.@gname$[2]+":"+.@gname$[3]+":"+.@gname$[4]+":"+.@gname$[5]+":"+.@gname$[6]+":"+.@gname$[7]; - .@GDnum = select(.@menu$)+9; - mes "["+strnpcinfo(1)+"]"; - mes "Will you summon the chosen guardian? 10,000 zeny are required to summon a Guardian."; - next; - switch (select("Summon:Cancel")) { - case 1: - if (getgdskilllv(.@GID,10002) == 0) { - mes "["+strnpcinfo(1)+"]"; - mes "Master, we have not the resources to Summon the Guardian. If you want to accumulate them, you have to learn the Guild skill. We failed to summon the Guardian."; - close; - } - if (getcastledata(strnpcinfo(2),.@GDnum) == 1) { - mes "["+strnpcinfo(1)+"]"; - mes "Master, you already have summoned that Guardian. We cannot summon another."; - close; - } - if (Zeny < 10000) { - mes "["+strnpcinfo(1)+"]"; - mes "Well... I'm sorry but we don't have funds to summon the Guardian. We failed to summon the Guardian."; - close; - } - Zeny -= 10000; - setcastledata strnpcinfo(2),.@GDnum,1; // mark as 'installed' - .@UseGID = .@GDnum - 10; - if (.@guardiantype[.@UseGID] == 1) { .@type = 1287; } - else if (.@guardiantype[.@UseGID] == 2) { .@type = 1285; } - else { .@type = 1286; } - guardian strnpcinfo(2),.@guardianposx[.@UseGID],.@guardianposy[.@UseGID],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(2)+"::OnGuardianDied",.@UseGID; - mes "["+strnpcinfo(1)+"]"; - mes "We completed the summoning of the Guardian. Our defenses are now increased with it in place."; - close; - case 2: - mes "["+strnpcinfo(1)+"]"; - mes "I did as you ordered. But please remember if you the have money to spare, it'll be better to set it up."; - close; - } - case 5: - if (getcastledata(strnpcinfo(2),9) == 1) { - mes "["+strnpcinfo(1)+"]"; - mes "We are currently hiring a Kafra Employee... Do you want to fire the Kafra Employee?"; - next; - switch (select("Fire:Cancel")) { - case 1: - cutin "kafra_01",2; - mes "[ Hired Kafra Employee ]"; - mes "I worked so hard... How can you do that, Master?... Please... Please reconsider... Check it again, Master... Please..."; - next; - switch (select("Fire:Cancel")) { - case 1: - mes "[ Hired Kafra Employee ]"; - mes "Oh, my goodness! This is nonsense!"; - next; - cutin "",255; - break; - case 2: - mes "[ Hired Kafra Employee ]"; - mes "I'll work hard for you... Thank you!"; - close; - } - break; - case 2: - mes "["+strnpcinfo(1)+"]"; - mes "She worked hard in my opinion. It was a good decision to keep her."; - close; - } - disablenpc "Kafra Staff#"+strnpcinfo(2); - setcastledata strnpcinfo(2),9,0; - mes "["+strnpcinfo(1)+"]"; - mes "...."; - mes "I have discharged the Kafra Employee... But... are you unsatisfied with something?"; - close; - } - mes "["+strnpcinfo(1)+"]"; - mes "Will you contact the kafra Main Office and Hire a Employee for our Castle?"; - mes "^ff0000 10,000 zeny is required for their services. "; - next; - switch (select("Hire.:Cancel")) { - case 1: - if (getgdskilllv(.@GID,10001) == 0) { - mes "["+strnpcinfo(1)+"]"; - mes "Master, we can't hire a Kafra Employee because we don't have a contract with the Kafra Main Office. If you want to obtain a contract with the Kafra Main Office, you will need to learn the Guild skill first."; - close; - } - if (Zeny < 10000) { - mes "["+strnpcinfo(1)+"]"; - mes "Well... I'm sorry but we don't have enough funds to hire a Kafra Employee."; - close; - } - Zeny -= 10000; - enablenpc "Kafra Staff#"+strnpcinfo(2); - setcastledata strnpcinfo(2),9,1; - mes "["+strnpcinfo(1)+"]"; - mes "We obtained a contract with the kafra Main Office, and hired a Kafra Employee."; - next; - cutin "kafra_01",2; - mes "[ Hired Kafra Employee ]"; - mes "How do you do? I was dispatched from the Main Office."; - mes "I'll do my best to not tarnish the reputation of the Guild."; - next; - cutin "",255; - mes "["+strnpcinfo(1)+"]"; - mes "The Contract terms of the hired Kafra Employee are for 1 month and after this term, you will need to to pay an additional fee."; - mes "It will be useful for our members."; - close; - case 2: - mes "["+strnpcinfo(1)+"]"; - mes "I did as you ordered, but some of our members will be unhappy. It will be better to hire a Kafra Employee quickly."; - close; - } - case 6: - mes "["+strnpcinfo(1)+"]"; - mes "Do you want to visit the room where our valuables are stored?"; - mes "That room is restricted to you... you are the only one with access to it."; - next; - switch (select("Go into Master's room.:Cancel")) { - case 1: - mes "["+strnpcinfo(1)+"]"; - mes "I'll show you the secret path. Follow me...please."; - mes "When you want to return here, please press the secret switch."; - close2; - warp strnpcinfo(2),.@masterroom[0],.@masterroom[1]; - end; - case 2: - mes "["+strnpcinfo(1)+"]"; - mes "Goods are produced once a day... if you don't remove them in time, they will not be produced anymore."; - mes "Therefore, it will be better if you check up on them from time to time."; - close; - } - } -} - -// WoE : Guild Dungeon Entrances -//============================================================ -- script Lever#gd::gdlever -1,{ - - .@GID = getcastledata(strnpcinfo(2),1); - - if (.@GID == 0) { - mes "[Ringing Voice]"; - mes "'Those who overcome an ordeal shows a great deal of bravery... and will find their way to another ordeal.'"; - close; - } - - if (compare(strnpcinfo(2),"aldeg")) { - .@destination$ = "gld_dun02"; - if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],32,122; - else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],79,30; - else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],165,38; - else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],160,148; - else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],103,169; - } - else if (compare(strnpcinfo(2),"gefg")) { - .@destination$ = "gld_dun04"; - if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],39,258; - else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],125,270; - else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],268,251; - else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],268,108; - else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],230,35; - } - else if (compare(strnpcinfo(2),"payg")) { - .@destination$ = "gld_dun01"; - if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],186,165; - else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],54,165; - else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],54,39; - else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],186,39; - else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],223,202; - } - else if (compare(strnpcinfo(2),"prtg")) { - .@destination$ = "gld_dun03"; - if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],28,251; - else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],164,268; - else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],164,179; - else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],268,203; - else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],199,28; - } - // Add custom Guild Castles here. - else { - end; - } - - mes "[Ringing Voice]"; - mes "'Only the truly brave can take the test.'"; - next; - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Don't pull.") == 1) { - if (getcharid(2) == .@GID) { - close2; - warp .@destination$,.@coordinates[0],.@coordinates[1]; - end; - } - mes " "; - mes "Nothing happened."; - close; - } - close; -} - -// Guardian Spawner Template -//============================================================ -- script Gld_Guard_Template::Gld_Guard_Template -1,{ -// Spawn Guardians in castles -// When adding new castles, ensure that the coordinates coincide -// with the coordinates defined in the Guild Steward template. -OnSpawnGuardians: - // Define the types of guardians on a per castle basis. - // 1 - Soldier Guardian; 2 - Archer Guardian; 3 - Knight Guardian - // Define the x spawn point for each uardian. - // [0] = 1st guardian's x spawn point. - // Define the y spawn point for each uardian. - // [0] = 1st guardian's y spawn point. - // Aldebaran (Luina) Castles - if (strnpcinfo(2) == "aldeg_cas01") { - setarray .@guardiantype[0],1,2,2,2,2,3,3,3; - setarray .@guardianposx[0],17,39,38,45,21,218,213,73; - setarray .@guardianposy[0],218,208,196,228,194,24,24,70; - } - else if (strnpcinfo(2) == "aldeg_cas02") { - setarray .@guardiantype[0],3,3,3,1,1,2,2,2; - setarray .@guardianposx[0],27,88,117,60,51,21,36,210; - setarray .@guardianposy[0],184,43,46,202,183,177,183,7; - } - else if (strnpcinfo(2) == "aldeg_cas03") { - setarray .@guardiantype[0],3,3,1,1,1,2,2,2; - setarray .@guardianposx[0],90,116,86,116,64,212,195,110; - setarray .@guardianposy[0],112,112,120,76,103,160,151,217; - } - else if (strnpcinfo(2) == "aldeg_cas04") { - setarray .@guardiantype[0],2,2,2,1,1,1,3,3; - setarray .@guardianposx[0],187,192,148,145,169,198,48,55; - setarray .@guardianposy[0],100,42,88,209,53,77,72,88; - } - else if (strnpcinfo(2) == "aldeg_cas05") { - setarray .@guardiantype[0],2,2,1,1,3,3,3,3; - setarray .@guardianposx[0],51,188,157,157,27,145,156,41; - setarray .@guardianposy[0],202,79,192,74,221,78,73,112; - } - // Geffen (Britoniah) Castles - else if (strnpcinfo(2) == "gefg_cas01") { - setarray .@guardiantype[0],1,1,1,2,2,3,3,3; - setarray .@guardianposx[0],67,184,62,36,50,50,189,200; - setarray .@guardianposy[0],179,20,41,186,186,67,41,167; - } - else if (strnpcinfo(2) == "gefg_cas02") { - setarray .@guardiantype[0],1,1,1,2,2,3,3,3; - setarray .@guardianposx[0],64,56,166,35,20,19,166,159; - setarray .@guardianposy[0],168,41,25,148,150,41,42,188; - } - else if (strnpcinfo(2) == "gefg_cas03") { - setarray .@guardiantype[0],2,2,1,1,1,3,3,3; - setarray .@guardianposx[0],48,113,48,157,243,157,234,238; - setarray .@guardianposy[0],176,214,207,62,41,45,25,160; - } - else if (strnpcinfo(2) == "gefg_cas04") { - setarray .@guardiantype[0],2,2,1,1,1,3,3,3; - setarray .@guardianposx[0],53,31,49,29,147,57,160,148; - setarray .@guardianposy[0],191,178,220,46,65,46,50,189; - } - else if (strnpcinfo(2) == "gefg_cas05") { - setarray .@guardiantype[0],2,2,1,1,1,3,3,3; - setarray .@guardianposx[0],45,71,72,66,177,66,177,193; - setarray .@guardianposy[0],149,163,142,47,50,17,35,166; - } - // Payon (Baulder) Castles - else if (strnpcinfo(2) == "payg_cas01") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],229,225,222,99,65,36,51,138; - setarray .@guardianposy[0],92,80,111,45,31,127,144,133; - } - else if (strnpcinfo(2) == "payg_cas02") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],237,228,210,57,42,287,264,27; - setarray .@guardianposy[0],54,72,41,241,241,257,272,20; - } - else if (strnpcinfo(2) == "payg_cas03") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],245,269,36,41,39,19,37,268; - setarray .@guardianposy[0],37,51,39,39,65,276,277,244; - } - else if (strnpcinfo(2) == "payg_cas04") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],251,232,231,32,32,35,36,270; - setarray .@guardianposy[0],212,212,175,287,232,45,17,41; - } - else if (strnpcinfo(2) == "payg_cas05") { - setarray .@guardiantype[0],2,2,2,2,2,2,2,3; - setarray .@guardianposx[0],19,33,266,266,263,263,250,36; - setarray .@guardianposy[0],279,260,234,279,37,21,22,36; - } - // Prontera (Valkyrie Realms) Castles - else if (strnpcinfo(2) == "prtg_cas01") { - setarray .@guardiantype[0],1,1,1,2,2,3,3,3; - setarray .@guardianposx[0],182,182,153,59,50,184,196,107; - setarray .@guardianposy[0],62,116,86,28,36,183,189,179; - } - else if (strnpcinfo(2) == "prtg_cas02") { - setarray .@guardiantype[0],3,3,3,1,1,2,2,2; - setarray .@guardianposx[0],161,153,178,71,49,64,7,75; - setarray .@guardianposy[0],161,161,44,75,28,186,196,175; - } - else if (strnpcinfo(2) == "prtg_cas03") { - setarray .@guardiantype[0],3,3,3,1,1,2,2,2; - setarray .@guardianposx[0],191,137,45,50,41,191,179,191; - setarray .@guardianposy[0],190,190,99,87,87,42,43,72; - } - else if (strnpcinfo(2) == "prtg_cas04") { - setarray .@guardiantype[0],3,3,3,1,1,1,2,2; - setarray .@guardianposx[0],276,274,246,38,29,33,78,36; - setarray .@guardianposy[0],14,35,246,240,240,258,48,61; - } - else if (strnpcinfo(2) == "prtg_cas05") { - setarray .@guardiantype[0],3,3,3,1,1,1,2,2; - setarray .@guardianposx[0],266,287,245,236,251,278,32,44; - setarray .@guardianposy[0],262,280,250,63,63,253,253,248; - } - // Add custom Guild Castles here. - else { - end; - } - - // Kill all existing guardians before spawning new ones. - // This should prevent duplicating Guardians when char Server disconnects. - killmonster strnpcinfo(2),strnpcinfo(0)+"::OnGuardianDied"; - - for (.@i = 0; .@i <= 7; ++.@i) { - .@UseGID = .@i + 10; - if (.@guardiantype[.@i] == 1) { .@type = 1287; } - else if (.@guardiantype[.@i] == 2) { .@type = 1285; } - else { .@type = 1286; } - if (getcastledata(strnpcinfo(2),.@UseGID)) { - guardian strnpcinfo(2),.@guardianposx[.@i],.@guardianposy[.@i],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(2)+"::OnGuardianDied",.@i; - } - } - end; - -OnGuardianDied: - end; -} - -// Treasure Room Spawn Template -//============================================================ -- script Gld_Trea_Spawn::Gld_Trea_Spawn -1,{ - end; - -OnClock0001: - // Do nothing if this script is the template. - if (strnpcinfo(1) == "Gld_Trea_Spawn") end; - - .@GID = getcastledata(strnpcinfo(2),1); - - // If there is no owner, do nothing. - if (!.@GID) end; - - // Is there Economy in this castle? - .@Treasure = getcastledata(strnpcinfo(2),2)/5+4; - - // Set information - if (strnpcinfo(2) == "aldeg_cas01") { - .@treasurebox = 1324; - setarray .@treasurex[0],115,122,115,122,116,117,118,119,120,121,121,121,121,121,121,120,119,118,117,116,116,116,116,116; - setarray .@treasurey[0],226,226,219,219,225,225,225,225,225,225,224,223,222,221,220,220,220,220,220,220,221,222,223,224; - } - else if (strnpcinfo(2) == "aldeg_cas02") { - .@treasurebox = 1326; - setarray .@treasurex[0],134,135,135,134,132,133,134,135,136,137,137,137,137,137,137,136,135,134,133,132,132,132,132,132; - setarray .@treasurey[0],231,231,230,230,233,233,233,233,233,233,232,231,230,229,228,228,228,228,228,228,229,230,231,232; - } - else if (strnpcinfo(2) == "aldeg_cas03") { - .@treasurebox = 1328; - setarray .@treasurex[0],224,225,225,224,222,223,224,225,226,227,227,227,227,227,227,226,225,224,223,222,222,222,222,222; - setarray .@treasurey[0],269,269,268,268,271,271,271,271,271,271,270,269,268,267,266,266,266,266,266,266,267,268,269,270; - } - else if (strnpcinfo(2) == "aldeg_cas04") { - .@treasurebox = 1330; - setarray .@treasurex[0],84,85,85,84,82,83,84,85,86,87,87,87,87,87,87,86,85,84,83,82,82,82,82,82; - setarray .@treasurey[0],13,13,12,12,15,15,15,15,15,15,14,13,12,11,10,10,10,10,10,10,11,12,13,14; - } - else if (strnpcinfo(2) == "aldeg_cas05") { - .@treasurebox = 1332; - setarray .@treasurex[0],61,62,62,61,59,60,61,62,63,64,64,64,64,64,64,63,62,61,60,59,59,59,59,59; - setarray .@treasurey[0],12,12,11,11,14,14,14,14,14,14,13,12,11,10,9,9,9,9,9,9,10,11,12,13; - } - else if (strnpcinfo(2) == "gefg_cas01") { - .@treasurebox = 1334; - setarray .@treasurex[0],153,154,154,153,151,152,153,154,155,156,156,156,156,156,156,155,154,153,152,151,151,151,151,151; - setarray .@treasurey[0],113,113,112,112,115,115,115,115,115,115,114,113,112,111,110,110,110,110,110,110,111,112,113,114; - } - else if (strnpcinfo(2) == "gefg_cas02") { - .@treasurebox = 1336; - setarray .@treasurex[0],139,140,140,139,137,138,139,140,141,142,142,142,142,142,142,141,140,139,138,137,137,137,137,137; - setarray .@treasurey[0],115,115,114,114,117,117,117,117,117,117,116,115,114,113,112,112,112,112,112,112,113,114,115,116; - } - else if (strnpcinfo(2) == "gefg_cas03") { - .@treasurebox = 1338; - setarray .@treasurex[0],269,270,270,269,267,268,269,270,271,272,272,272,272,272,272,271,270,269,268,267,267,267,267,267; - setarray .@treasurey[0],291,291,290,290,293,293,293,293,293,293,292,291,290,289,288,288,288,288,288,288,289,290,291,292; - } - else if (strnpcinfo(2) == "gefg_cas04") { - .@treasurebox = 1340; - setarray .@treasurex[0],115,116,116,115,113,114,115,116,117,118,118,118,118,118,118,117,116,115,114,113,113,113,113,113; - setarray .@treasurey[0],119,119,118,118,121,121,121,121,121,121,120,119,118,117,116,116,116,116,116,116,117,118,119,120; - } - else if (strnpcinfo(2) == "gefg_cas05") { - .@treasurebox = 1342; - setarray .@treasurex[0],143,144,144,143,141,142,143,144,145,146,146,146,146,146,146,145,144,143,142,141,141,141,141,141; - setarray .@treasurey[0],110,110,109,109,112,112,112,112,112,112,111,110,109,108,107,107,107,107,107,107,108,109,110,111; - } - else if (strnpcinfo(2) == "payg_cas01") { - .@treasurebox = 1344; - setarray .@treasurex[0],289,292,292,289,288,289,290,291,292,293,293,293,293,293,293,292,291,290,289,288,288,288,288,288; - setarray .@treasurey[0],10,10,7,7,11,11,11,11,11,11,10,9,8,7,6,6,6,6,6,6,7,8,9,10; - } - else if (strnpcinfo(2) == "payg_cas02") { - .@treasurebox = 1346; - setarray .@treasurex[0],143,146,146,143,142,143,144,145,146,147,147,147,147,147,147,146,145,144,143,142,142,142,142,142; - setarray .@treasurey[0],146,146,143,143,147,147,147,147,147,147,146,145,144,143,142,142,142,142,142,142,143,144,145,146; - } - else if (strnpcinfo(2) == "payg_cas03") { - .@treasurebox = 1348; - setarray .@treasurex[0],158,159,159,158,156,157,158,159,160,161,161,161,161,161,161,160,159,158,157,156,156,156,156,156; - setarray .@treasurey[0],169,169,168,168,171,171,171,171,171,171,170,169,168,167,166,166,166,166,166,166,167,168,169,170; - } - else if (strnpcinfo(2) == "payg_cas04") { - .@treasurebox = 1350; - setarray .@treasurex[0],146,147,147,146,144,145,146,147,148,149,149,149,149,149,149,148,147,146,145,144,144,144,144,144; - setarray .@treasurey[0],48,48,47,47,50,50,50,50,50,50,49,48,47,46,45,45,45,45,45,45,46,47,48,49; - } - else if (strnpcinfo(2) == "payg_cas05") { - .@treasurebox = 1352; - setarray .@treasurex[0],155,158,158,155,154,155,156,157,158,159,159,159,159,159,159,158,157,156,155,154,154,154,154,154; - setarray .@treasurey[0],134,134,131,131,135,135,135,135,135,135,134,133,132,131,130,130,130,130,130,130,131,132,133,134; - } - else if (strnpcinfo(2) == "prtg_cas01") { - .@treasurebox = 1354; - setarray .@treasurex[0],10,11,11,10,8,9,10,11,12,13,13,13,13,13,13,12,11,10,9,8,8,8,8,8; - setarray .@treasurey[0],209,209,208,208,211,211,211,211,211,211,210,209,208,207,206,206,206,206,206,206,207,208,209,210; - } - else if (strnpcinfo(2) == "prtg_cas02") { - .@treasurebox = 1356; - setarray .@treasurex[0],201,202,202,201,199,200,201,202,203,204,204,204,204,204,204,203,202,201,200,199,199,199,199,199; - setarray .@treasurey[0],228,228,227,227,230,230,230,230,230,230,229,228,227,226,225,225,225,225,225,225,226,227,228,229; - } - else if (strnpcinfo(2) == "prtg_cas03") { - .@treasurebox = 1358; - setarray .@treasurex[0],187,188,188,187,185,186,187,188,189,190,190,190,190,190,190,189,188,187,186,185,185,185,185,185; - setarray .@treasurey[0],132,132,131,131,134,134,134,134,134,134,133,132,131,130,129,129,129,129,129,129,130,131,132,133; - } - else if (strnpcinfo(2) == "prtg_cas04") { - .@treasurebox = 1360; - setarray .@treasurex[0],269,270,270,269,267,268,269,270,271,272,272,272,272,272,272,271,270,269,268,267,267,267,267,267; - setarray .@treasurey[0],162,162,161,161,164,164,164,164,164,164,163,162,161,160,159,159,159,159,159,159,160,161,162,163; - } - else if (strnpcinfo(2) == "prtg_cas05") { - .@treasurebox = 1362; - setarray .@treasurex[0],275,276,276,275,273,274,275,276,277,278,278,278,278,278,278,277,276,275,274,273,273,273,273,273; - setarray .@treasurey[0],178,178,177,177,180,180,180,180,180,180,179,178,177,176,175,175,175,175,175,175,176,177,178,179; - } - // Add custom Guild Castles here. - else { - end; - } - - // Apply investment to Eco. and Def. Only happens if there were investments made. - // Permanent Development can only happen once per day. - if (getcastledata(strnpcinfo(2),4)) { - .@Economy = getcastledata(strnpcinfo(2),2); - setcastledata strnpcinfo(2),2,.@Economy + getcastledata(strnpcinfo(2),4) + (rand(2) && getgdskilllv(.@GID,10014)); - if (getcastledata(strnpcinfo(2),2) > 100) setcastledata strnpcinfo(2),2,100; - } - if (getcastledata(strnpcinfo(2),5)) { - .@defence = getcastledata(strnpcinfo(2),3); - setcastledata strnpcinfo(2),3,.@defence + getcastledata(strnpcinfo(2),5); - if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100; - } - // Reset daily investment limits. - setcastledata strnpcinfo(2),4,0; - setcastledata strnpcinfo(2),5,0; - - // Spawn boxes in proper order. - for (.@i = 0; .@i < .@Treasure ; ++.@i) { - // set treasure box ID - .@boxid = .@treasurebox + (.@i+2) % 2; - .@box = 1 << .@i; - // Spawn or do not spawn chests if one already exists. - if ((getd("$@"+strnpcinfo(2)+"_treasure") & .@box) == 0) { - monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",.@boxid,1,"Treasure#"+strnpcinfo(2)+"::OnTreasureDied"+.@i; - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") | .@box; - } - } - end; - -// Individual "You killed a chest" events to ensure proper spawning at the change of day. -OnTreasureDied0: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1; - end; -OnTreasureDied1: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2; - end; -OnTreasureDied2: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4; - end; -OnTreasureDied3: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8; - end; -OnTreasureDied4: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~16; - end; -OnTreasureDied5: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~32; - end; -OnTreasureDied6: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~64; - end; -OnTreasureDied7: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~128; - end; -OnTreasureDied8: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~256; - end; -OnTreasureDied9: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~512; - end; -OnTreasureDied10: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1024; - end; -OnTreasureDied11: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2048; - end; -OnTreasureDied12: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4096; - end; -OnTreasureDied13: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8192; - end; -OnTreasureDied14: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~16384; - end; -OnTreasureDied15: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~32768; - end; -OnTreasureDied16: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~65536; - end; -OnTreasureDied17: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~131072; - end; -OnTreasureDied18: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~262144; - end; -OnTreasureDied19: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~524288; - end; -OnTreasureDied20: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1048576; - end; -OnTreasureDied21: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2097152; - end; -OnTreasureDied22: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4194304; - end; -OnTreasureDied23: - setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8388608; - end; -} diff --git a/npc/guild/aldeg_cas01.txt b/npc/guild/aldeg_cas01.txt deleted file mode 100644 index e72b121c5..000000000 --- a/npc/guild/aldeg_cas01.txt +++ /dev/null @@ -1,142 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Al De Baran) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Al De Baran Guild Castle 1 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Neuschwanstein#1::OutsideFlagsA1 GUILD_FLAG,{ - - .@GID = getcastledata("aldeg_cas01",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("aldeg_cas01",1)) { - warp "aldeg_cas01",218,170; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleA01: - flagemblem getcastledata("aldeg_cas01",1); - end; -} - -alde_gld,61,87,6 duplicate(OutsideFlagsA1) Neuschwanstein#1-2 GUILD_FLAG -alde_gld,61,79,6 duplicate(OutsideFlagsA1) Neuschwanstein#2 GUILD_FLAG -alde_gld,45,87,8 duplicate(OutsideFlagsA1) Neuschwanstein#3 GUILD_FLAG -alde_gld,51,87,8 duplicate(OutsideFlagsA1) Neuschwanstein#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Neuschwanstein#5::InsideFlagsA1 GUILD_FLAG,{ - end; - -OnRecvCastleA01: - flagemblem getcastledata("aldeg_cas01",1); - end; -} - -aldeg_cas01,30,248,4 duplicate(InsideFlagsA1) Neuschwanstein#5-2 GUILD_FLAG -aldeg_cas01,30,248,4 duplicate(InsideFlagsA1) Neuschwanstein#6 GUILD_FLAG -aldeg_cas01,37,248,4 duplicate(InsideFlagsA1) Neuschwanstein#7 GUILD_FLAG -aldeg_cas01,37,246,4 duplicate(InsideFlagsA1) Neuschwanstein#8 GUILD_FLAG -aldeg_cas01,30,246,4 duplicate(InsideFlagsA1) Neuschwanstein#9 GUILD_FLAG -aldeg_cas01,95,80,2 duplicate(InsideFlagsA1) Neuschwanstein#10 GUILD_FLAG -aldeg_cas01,95,59,2 duplicate(InsideFlagsA1) Neuschwanstein#11 GUILD_FLAG -aldeg_cas01,62,75,2 duplicate(InsideFlagsA1) Neuschwanstein#12 GUILD_FLAG -aldeg_cas01,66,75,2 duplicate(InsideFlagsA1) Neuschwanstein#13 GUILD_FLAG -aldeg_cas01,70,75,2 duplicate(InsideFlagsA1) Neuschwanstein#14 GUILD_FLAG -aldeg_cas01,74,75,2 duplicate(InsideFlagsA1) Neuschwanstein#15 GUILD_FLAG -aldeg_cas01,62,64,2 duplicate(InsideFlagsA1) Neuschwanstein#16 GUILD_FLAG -aldeg_cas01,66,64,2 duplicate(InsideFlagsA1) Neuschwanstein#17 GUILD_FLAG -aldeg_cas01,70,64,2 duplicate(InsideFlagsA1) Neuschwanstein#18 GUILD_FLAG -aldeg_cas01,74,64,2 duplicate(InsideFlagsA1) Neuschwanstein#19 GUILD_FLAG -aldeg_cas01,74,64,2 duplicate(InsideFlagsA1) Neuschwanstein#20 GUILD_FLAG -aldeg_cas01,203,150,4 duplicate(InsideFlagsA1) Neuschwanstein#21 GUILD_FLAG -aldeg_cas01,210,150,4 duplicate(InsideFlagsA1) Neuschwanstein#22 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -aldebaran,152,97,4 duplicate(InsideFlagsA1) Neuschwanstein#23 GUILD_FLAG - -// Kafra Employee -//============================================================ -aldeg_cas01,218,170,0 duplicate(guildkafra) Kafra Staff#aldeg_cas01 4_F_KAFRA1 - -// Steward -//============================================================ -aldeg_cas01,218,175,0 duplicate(cm) Alfredo#aldeg_cas01 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -aldeg_cas01,123,223,0 script #lever_A01 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "aldeg_cas01",218,176; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -aldeg_cas01,211,181,0 duplicate(gdlever) #aldeg_cas01 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -aldeg_cas01,118,223,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas01 -1 - -// AGIT Manager -//============================================================ -aldeg_cas01,216,24,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas01 -1 - -// Guardians -//============================================================ -aldeg_cas01,218,175,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas01 -1 diff --git a/npc/guild/aldeg_cas02.txt b/npc/guild/aldeg_cas02.txt deleted file mode 100644 index 938e511da..000000000 --- a/npc/guild/aldeg_cas02.txt +++ /dev/null @@ -1,136 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Al De Baran) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Al De Baran Guild Castle 2 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Hohenschwangau#1::OutsideFlagsA2 GUILD_FLAG,{ - - .@GID = getcastledata("aldeg_cas02",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("aldeg_cas02",1)) { - warp "aldeg_cas02",220,190; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleA02: - flagemblem getcastledata("aldeg_cas02",1); - end; -} - -alde_gld,99,251,4 duplicate(OutsideFlagsA2) Hohenschwangau#1-2 GUILD_FLAG -alde_gld,99,244,4 duplicate(OutsideFlagsA2) Hohenschwangau#2 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Hohenschwangau#3::InsideFlagsA2 GUILD_FLAG,{ - end; - -OnRecvCastleA02: - flagemblem getcastledata("aldeg_cas02",1); - end; -} - -aldeg_cas02,82,71,2 duplicate(InsideFlagsA2) Hohenschwangau#3-2 GUILD_FLAG -aldeg_cas02,67,30,2 duplicate(InsideFlagsA2) Hohenschwangau#4 GUILD_FLAG -aldeg_cas02,183,140,2 duplicate(InsideFlagsA2) Hohenschwangau#5 GUILD_FLAG -aldeg_cas02,212,152,2 duplicate(InsideFlagsA2) Hohenschwangau#6 GUILD_FLAG -aldeg_cas02,108,39,2 duplicate(InsideFlagsA2) Hohenschwangau#7 GUILD_FLAG -aldeg_cas02,57,213,2 duplicate(InsideFlagsA2) Hohenschwangau#8 GUILD_FLAG -aldeg_cas02,103,53,2 duplicate(InsideFlagsA2) Hohenschwangau#9 GUILD_FLAG -aldeg_cas02,73,53,2 duplicate(InsideFlagsA2) Hohenschwangau#10 GUILD_FLAG -aldeg_cas02,63,41,2 duplicate(InsideFlagsA2) Hohenschwangau#11 GUILD_FLAG -aldeg_cas02,229,6,2 duplicate(InsideFlagsA2) Hohenschwangau#12 GUILD_FLAG -aldeg_cas02,230,40,2 duplicate(InsideFlagsA2) Hohenschwangau#13 GUILD_FLAG -aldeg_cas02,197,40,2 duplicate(InsideFlagsA2) Hohenschwangau#14 GUILD_FLAG -aldeg_cas02,32,213,2 duplicate(InsideFlagsA2) Hohenschwangau#15 GUILD_FLAG -aldeg_cas02,121,29,2 duplicate(InsideFlagsA2) Hohenschwangau#16 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -aldebaran,149,97,4 duplicate(InsideFlagsA2) Hohenschwangau#17 GUILD_FLAG - -// Kafra Employee -//============================================================ -aldeg_cas02,84,74,0 duplicate(guildkafra) Kafra Staff#aldeg_cas02 4_F_KAFRA1 - -// Steward -//============================================================ -aldeg_cas02,78,74,0 duplicate(cm) Chenchenlie#aldeg_cas02 1_M_JOBTESTER - -// Treasure Room Lever -//============================================================ -aldeg_cas02,139,234,0 script #lever_A02 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "aldeg_cas02",78,75; - end; - } - close; -} - -// Guild Dungeon Lever -//============================================================ -aldeg_cas02,194,136,0 duplicate(gdlever) #aldeg_cas02 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -aldeg_cas02,135,230,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas02 -1 - -// AGIT Manager -//============================================================ -aldeg_cas02,214,24,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas02 -1 - -// Guardians -//============================================================ -aldeg_cas02,78,74,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas02 -1 diff --git a/npc/guild/aldeg_cas03.txt b/npc/guild/aldeg_cas03.txt deleted file mode 100644 index c595a8681..000000000 --- a/npc/guild/aldeg_cas03.txt +++ /dev/null @@ -1,139 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Al De Baran) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Al De Baran Guild Castle 3 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Nuernberg#1::OutsideFlagsA3 GUILD_FLAG,{ - - .@GID = getcastledata("aldeg_cas03",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("aldeg_cas03",1)) { - warp "aldeg_cas03",205,186; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleA03: - flagemblem getcastledata("aldeg_cas03",1); - end; -} - -alde_gld,146,82,8 duplicate(OutsideFlagsA3) Nuernberg#1-2 GUILD_FLAG -alde_gld,138,82,8 duplicate(OutsideFlagsA3) Nuernberg#2 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Nuernberg#3::InsideFlagsA3 GUILD_FLAG,{ - end; - -OnRecvCastleA03: - flagemblem getcastledata("aldeg_cas03",1); - end; -} - -aldeg_cas03,176,175,2 duplicate(InsideFlagsA3) Nuernberg#3-2 GUILD_FLAG -aldeg_cas03,77,115,2 duplicate(InsideFlagsA3) Nuernberg#4 GUILD_FLAG -aldeg_cas03,77,215,2 duplicate(InsideFlagsA3) Nuernberg#5 GUILD_FLAG -aldeg_cas03,112,107,2 duplicate(InsideFlagsA3) Nuernberg#6 GUILD_FLAG -aldeg_cas03,112,117,2 duplicate(InsideFlagsA3) Nuernberg#7 GUILD_FLAG -aldeg_cas03,69,71,2 duplicate(InsideFlagsA3) Nuernberg#8 GUILD_FLAG -aldeg_cas03,91,69,2 duplicate(InsideFlagsA3) Nuernberg#9 GUILD_FLAG -aldeg_cas03,108,60,2 duplicate(InsideFlagsA3) Nuernberg#10 GUILD_FLAG -aldeg_cas03,121,73,2 duplicate(InsideFlagsA3) Nuernberg#11 GUILD_FLAG -aldeg_cas03,121,73,2 duplicate(InsideFlagsA3) Nuernberg#12 GUILD_FLAG -aldeg_cas03,75,102,2 duplicate(InsideFlagsA3) Nuernberg#13 GUILD_FLAG -aldeg_cas03,199,169,2 duplicate(InsideFlagsA3) Nuernberg#14 GUILD_FLAG -aldeg_cas03,181,179,2 duplicate(InsideFlagsA3) Nuernberg#15 GUILD_FLAG -aldeg_cas03,192,44,2 duplicate(InsideFlagsA3) Nuernberg#16 GUILD_FLAG -aldeg_cas03,208,145,2 duplicate(InsideFlagsA3) Nuernberg#17 GUILD_FLAG -aldeg_cas03,207,75,2 duplicate(InsideFlagsA3) Nuernberg#18 GUILD_FLAG -aldeg_cas03,96,62,2 duplicate(InsideFlagsA3) Nuernberg#19 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -aldebaran,134,97,4 duplicate(InsideFlagsA3) Nuernberg#20 GUILD_FLAG - -// Kafra Employee -//============================================================ -aldeg_cas03,118,76,0 duplicate(guildkafra) Kafra Staff#aldeg_cas03 4_F_KAFRA1 - -// Steward -//============================================================ -aldeg_cas03,110,118,0 duplicate(cm) Nahzarf#aldeg_cas03 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -aldeg_cas03,229,267,0 script #lever_A03 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "aldeg_cas03",110,119; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -aldeg_cas03,200,177,0 duplicate(gdlever) #aldeg_cas03 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -aldeg_cas03,225,269,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas03 -1 - -// AGIT Manager -//============================================================ -aldeg_cas03,206,32,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas03 -1 - -// Guardians -//============================================================ -aldeg_cas03,110,118,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas03 -1 diff --git a/npc/guild/aldeg_cas04.txt b/npc/guild/aldeg_cas04.txt deleted file mode 100644 index 6a6b9d7ec..000000000 --- a/npc/guild/aldeg_cas04.txt +++ /dev/null @@ -1,139 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Al De Baran) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Al De Baran Guild Castle 4 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Wuerzburg#1::OutsideFlagsA4 GUILD_FLAG,{ - - .@GID = getcastledata("aldeg_cas04",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("aldeg_cas04",1)) { - warp "aldeg_cas04",116,217; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleA04: - flagemblem getcastledata("aldeg_cas04",1); - end; -} - -alde_gld,239,246,2 duplicate(OutsideFlagsA4) Wuerzburg#1-2 GUILD_FLAG -alde_gld,239,239,2 duplicate(OutsideFlagsA4) Wuerzburg#2 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Wuerzburg#3::InsideFlagsA4 GUILD_FLAG,{ - end; - -OnRecvCastleA04: - flagemblem getcastledata("aldeg_cas04",1); - end; -} - -aldeg_cas04,167,61,2 duplicate(InsideFlagsA4) Wuerzburg#3-2 GUILD_FLAG -aldeg_cas04,164,90,2 duplicate(InsideFlagsA4) Wuerzburg#4 GUILD_FLAG -aldeg_cas04,129,193,2 duplicate(InsideFlagsA4) Wuerzburg#5 GUILD_FLAG -aldeg_cas04,112,206,2 duplicate(InsideFlagsA4) Wuerzburg#6 GUILD_FLAG -aldeg_cas04,113,212,2 duplicate(InsideFlagsA4) Wuerzburg#7 GUILD_FLAG -aldeg_cas04,77,117,2 duplicate(InsideFlagsA4) Wuerzburg#8 GUILD_FLAG -aldeg_cas04,186,42,2 duplicate(InsideFlagsA4) Wuerzburg#9 GUILD_FLAG -aldeg_cas04,30,69,2 duplicate(InsideFlagsA4) Wuerzburg#10 GUILD_FLAG -aldeg_cas04,55,97,2 duplicate(InsideFlagsA4) Wuerzburg#11 GUILD_FLAG -aldeg_cas04,45,98,2 duplicate(InsideFlagsA4) Wuerzburg#12 GUILD_FLAG -aldeg_cas04,33,116,2 duplicate(InsideFlagsA4) Wuerzburg#13 GUILD_FLAG -aldeg_cas04,130,180,2 duplicate(InsideFlagsA4) Wuerzburg#14 GUILD_FLAG -aldeg_cas04,129,193,2 duplicate(InsideFlagsA4) Wuerzburg#15 GUILD_FLAG -aldeg_cas04,33,107,2 duplicate(InsideFlagsA4) Wuerzburg#16 GUILD_FLAG -aldeg_cas04,133,220,2 duplicate(InsideFlagsA4) Wuerzburg#17 GUILD_FLAG -aldeg_cas04,169,22,2 duplicate(InsideFlagsA4) Wuerzburg#18 GUILD_FLAG -aldeg_cas04,169,15,2 duplicate(InsideFlagsA4) Wuerzburg#19 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -aldebaran,131,97,4 duplicate(InsideFlagsA4) Wuerzburg#20 GUILD_FLAG - -// Kafra Employee -//============================================================ -aldeg_cas04,45,88,0 duplicate(guildkafra) Kafra Staff#aldeg_cas04 4_F_KAFRA1 - -// Steward -//============================================================ -aldeg_cas04,67,116,0 duplicate(cm) Brymhensen#aldeg_cas04 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -aldeg_cas04,83,17,0 script #lever_A04 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "aldeg_cas04",67,117; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -aldeg_cas04,76,64,0 duplicate(gdlever) #aldeg_cas04 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -aldeg_cas04,84,13,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas04 -1 - -// AGIT Manager -//============================================================ -aldeg_cas04,36,218,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas04 -1 - -// Guardians -//============================================================ -aldeg_cas04,67,116,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas04 -1 diff --git a/npc/guild/aldeg_cas05.txt b/npc/guild/aldeg_cas05.txt deleted file mode 100644 index 93a78d7fb..000000000 --- a/npc/guild/aldeg_cas05.txt +++ /dev/null @@ -1,138 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Al De Baran) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Al De Baran Guild Castle 5 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Rothenburg#1::OutsideFlagsA5 GUILD_FLAG,{ - - .@GID = getcastledata("aldeg_cas05",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("aldeg_cas05",1)) { - warp "aldeg_cas05",167,225; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleA05: - flagemblem getcastledata("aldeg_cas05",1); - end; -} - -alde_gld,265,93,6 duplicate(OutsideFlagsA5) Rothenburg#1-2 GUILD_FLAG -alde_gld,265,87,6 duplicate(OutsideFlagsA5) Rothenburg#2 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Rothenburg#3::InsideFlagsA5 GUILD_FLAG,{ - end; - -OnRecvCastleA05: - flagemblem getcastledata("aldeg_cas05",1); - end; -} - -aldeg_cas05,170,85,2 duplicate(InsideFlagsA5) Rothenburg#3-2 GUILD_FLAG -aldeg_cas05,142,212,2 duplicate(InsideFlagsA5) Rothenburg#4 GUILD_FLAG -aldeg_cas05,149,196,2 duplicate(InsideFlagsA5) Rothenburg#5 GUILD_FLAG -aldeg_cas05,41,180,2 duplicate(InsideFlagsA5) Rothenburg#6 GUILD_FLAG -aldeg_cas05,38,201,2 duplicate(InsideFlagsA5) Rothenburg#7 GUILD_FLAG -aldeg_cas05,65,182,2 duplicate(InsideFlagsA5) Rothenburg#8 GUILD_FLAG -aldeg_cas05,65,205,2 duplicate(InsideFlagsA5) Rothenburg#9 GUILD_FLAG -aldeg_cas05,10,218,2 duplicate(InsideFlagsA5) Rothenburg#10 GUILD_FLAG -aldeg_cas05,10,218,2 duplicate(InsideFlagsA5) Rothenburg#11 GUILD_FLAG -aldeg_cas05,164,201,2 duplicate(InsideFlagsA5) Rothenburg#12 GUILD_FLAG -aldeg_cas05,14,117,2 duplicate(InsideFlagsA5) Rothenburg#13 GUILD_FLAG -aldeg_cas05,10,225,2 duplicate(InsideFlagsA5) Rothenburg#14 GUILD_FLAG -aldeg_cas05,187,59,2 duplicate(InsideFlagsA5) Rothenburg#15 GUILD_FLAG -aldeg_cas05,154,51,2 duplicate(InsideFlagsA5) Rothenburg#16 GUILD_FLAG -aldeg_cas05,22,211,2 duplicate(InsideFlagsA5) Rothenburg#17 GUILD_FLAG -aldeg_cas05,150,202,2 duplicate(InsideFlagsA5) Rothenburg#18 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -aldebaran,128,97,4 duplicate(InsideFlagsA5) Rothenburg#19 GUILD_FLAG - -// Kafra Employee -//============================================================ -aldeg_cas05,31,190,0 duplicate(guildkafra) Kafra Staff#aldeg_cas05 4_F_KAFRA1 - -// Steward -//============================================================ -aldeg_cas05,51,179,0 duplicate(cm) Esmarehk#aldeg_cas05 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -aldeg_cas05,64,8,0 script #lever_A05 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "aldeg_cas05",51,179; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -aldeg_cas05,22,205,0 duplicate(gdlever) #aldeg_cas05 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -aldeg_cas05,62,12,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas05 -1 - -// AGIT Manager -//============================================================ -aldeg_cas05,28,102,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas05 -1 - -// Guardians -//============================================================ -aldeg_cas05,52,179,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas05 -1 diff --git a/npc/guild/gefg_cas01.txt b/npc/guild/gefg_cas01.txt deleted file mode 100644 index 6127e62f9..000000000 --- a/npc/guild/gefg_cas01.txt +++ /dev/null @@ -1,130 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Geffen) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Geffen Guild Castle 1 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Repherion#1::OutsideFlagsG1 GUILD_FLAG,{ - - .@GID = getcastledata("gefg_cas01",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("gefg_cas01",1)) { - warp "gefg_cas01",197,36; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleG01: - flagemblem getcastledata("gefg_cas01",1); - end; -} - -gef_fild13,148,51,5 duplicate(OutsideFlagsG1) Repherion#1-2 GUILD_FLAG -gef_fild13,155,54,5 duplicate(OutsideFlagsG1) Repherion#2 GUILD_FLAG -gef_fild13,212,79,6 duplicate(OutsideFlagsG1) Repherion#3 GUILD_FLAG -gef_fild13,211,71,6 duplicate(OutsideFlagsG1) Repherion#4 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Repherion#5::InsideFlagsG1 GUILD_FLAG,{ - end; - -OnRecvCastleG01: - flagemblem getcastledata("gefg_cas01",1); - end; -} - -gefg_cas01,28,157,4 duplicate(InsideFlagsG1) Repherion#5-2 GUILD_FLAG -gefg_cas01,22,156,5 duplicate(InsideFlagsG1) Repherion#6 GUILD_FLAG -gefg_cas01,68,185,3 duplicate(InsideFlagsG1) Repherion#7 GUILD_FLAG -gefg_cas01,17,171,5 duplicate(InsideFlagsG1) Repherion#8 GUILD_FLAG -gefg_cas01,59,16,4 duplicate(InsideFlagsG1) Repherion#9 GUILD_FLAG -gefg_cas01,64,16,4 duplicate(InsideFlagsG1) Repherion#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -geffen,109,123,2 duplicate(InsideFlagsG1) Repherion#11 GUILD_FLAG - -// Kafra Employee -//============================================================ -gefg_cas01,83,47,3 duplicate(guildkafra) Kafra Staff#gefg_cas01 4_F_KAFRA1 - -// Steward -//============================================================ -gefg_cas01,40,48,5 duplicate(cm) Gnahcher#gefg_cas01 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -gefg_cas01,152,117,0 script #lever_G01 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "gefg_cas01",40,49; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -gefg_cas01,78,84,0 duplicate(gdlever) #gefg_cas01 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -gefg_cas01,154,112,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas01 -1 - -// AGIT Manager -//============================================================ -gefg_cas01,198,182,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas01 -1 - -// Guardians -//============================================================ -gefg_cas01,40,48,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas01 -1 diff --git a/npc/guild/gefg_cas02.txt b/npc/guild/gefg_cas02.txt deleted file mode 100644 index 45530849a..000000000 --- a/npc/guild/gefg_cas02.txt +++ /dev/null @@ -1,131 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Geffen) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Geffen Guild Castle 2 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Eeyorbriggar#1::OutsideFlagsG2 GUILD_FLAG,{ - - .@GID = getcastledata("gefg_cas02",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("gefg_cas02",1)) { - warp "gefg_cas02",178,43; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleG02: - flagemblem getcastledata("gefg_cas02",1); - end; -} - -gef_fild13,303,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#1-2 GUILD_FLAG -gef_fild13,312,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#2 GUILD_FLAG -gef_fild13,290,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#3 GUILD_FLAG -gef_fild13,324,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#4 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Eeyorbriggar#5::InsideFlagsG2 GUILD_FLAG,{ - end; - -OnRecvCastleG02: - flagemblem getcastledata("gefg_cas02",1); - end; -} - -gefg_cas02,65,130,5 duplicate(InsideFlagsG2) Eeyorbriggar#5-2 GUILD_FLAG -gefg_cas02,30,123,5 duplicate(InsideFlagsG2) Eeyorbriggar#6 GUILD_FLAG -gefg_cas02,65,139,6 duplicate(InsideFlagsG2) Eeyorbriggar#7 GUILD_FLAG -gefg_cas02,37,177,6 duplicate(InsideFlagsG2) Eeyorbriggar#8 GUILD_FLAG -gefg_cas02,37,168,6 duplicate(InsideFlagsG2) Eeyorbriggar#9 GUILD_FLAG -gefg_cas02,68,47,2 duplicate(InsideFlagsG2) Eeyorbriggar#10 GUILD_FLAG -gefg_cas02,68,36,2 duplicate(InsideFlagsG2) Eeyorbriggar#11 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -geffen,112,129,1 duplicate(InsideFlagsG2) Eeyorbriggar#12 GUILD_FLAG - -// Kafra Employee -//============================================================ -gefg_cas02,23,66,3 duplicate(guildkafra) Kafra Staff#gefg_cas02 4_F_KAFRA1 - -// Steward -//============================================================ -gefg_cas02,12,66,5 duplicate(cm) Esmarehk#gefg_cas02 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -gefg_cas02,145,114,0 script #lever_G02 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "gefg_cas02",12,67; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -gefg_cas02,167,40,0 duplicate(gdlever) #gefg_cas02 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -gefg_cas02,140,116,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas02 -1 - -// AGIT Manager -//============================================================ -gefg_cas02,176,178,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas02 -1 - -// Guardians -//============================================================ -gefg_cas02,12,66,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas02 -1 diff --git a/npc/guild/gefg_cas03.txt b/npc/guild/gefg_cas03.txt deleted file mode 100644 index a206c8bac..000000000 --- a/npc/guild/gefg_cas03.txt +++ /dev/null @@ -1,134 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Geffen) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Geffen Guild Castle 3 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Yesnelph#1::OutsideFlagsG3 GUILD_FLAG,{ - - .@GID = getcastledata("gefg_cas03",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("gefg_cas03",1)) { - warp "gefg_cas03",221,30; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleG03: - flagemblem getcastledata("gefg_cas03",1); - end; -} - -gef_fild13,78,182,4 duplicate(OutsideFlagsG3) Yesnelph#1-2 GUILD_FLAG -gef_fild13,87,182,4 duplicate(OutsideFlagsG3) Yesnelph#2 GUILD_FLAG -gef_fild13,73,295,7 duplicate(OutsideFlagsG3) Yesnelph#3 GUILD_FLAG -gef_fild13,113,274,7 duplicate(OutsideFlagsG3) Yesnelph#4 GUILD_FLAG -gef_fild13,144,235,6 duplicate(OutsideFlagsG3) Yesnelph#5 GUILD_FLAG -gef_fild13,144,244,6 duplicate(OutsideFlagsG3) Yesnelph#6 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Yesnelph#7::InsideFlagsG3 GUILD_FLAG,{ - end; - -OnRecvCastleG03: - flagemblem getcastledata("gefg_cas03",1); - end; -} - -gefg_cas03,122,220,6 duplicate(InsideFlagsG3) Yesnelph#7-2 GUILD_FLAG -gefg_cas03,122,229,6 duplicate(InsideFlagsG3) Yesnelph#8 GUILD_FLAG -gefg_cas03,91,257,7 duplicate(InsideFlagsG3) Yesnelph#9 GUILD_FLAG -gefg_cas03,52,276,7 duplicate(InsideFlagsG3) Yesnelph#10 GUILD_FLAG -gefg_cas03,56,164,4 duplicate(InsideFlagsG3) Yesnelph#11 GUILD_FLAG -gefg_cas03,65,164,4 duplicate(InsideFlagsG3) Yesnelph#12 GUILD_FLAG -gefg_cas03,37,214,1 duplicate(InsideFlagsG3) Yesnelph#13 GUILD_FLAG -gefg_cas03,34,208,1 duplicate(InsideFlagsG3) Yesnelph#14 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -geffen,120,132,8 duplicate(InsideFlagsG3) Yesnelph#15 GUILD_FLAG - -// Kafra Employee -//============================================================ -gefg_cas03,116,89,5 duplicate(guildkafra) Kafra Staff#gefg_cas03 4_F_KAFRA1 - -// Steward -//============================================================ -gefg_cas03,106,23,5 duplicate(cm) Jyang#gefg_cas03 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -gefg_cas03,275,289,0 script #lever_G03 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "gefg_cas03",106,24; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -gefg_cas03,221,43,0 duplicate(gdlever) #gefg_cas03 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -gefg_cas03,271,290,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas03 -1 - -// AGIT Manager -//============================================================ -gefg_cas03,245,167,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas03 -1 - -// Guardians -//============================================================ -gefg_cas03,106,23,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas03 -1 diff --git a/npc/guild/gefg_cas04.txt b/npc/guild/gefg_cas04.txt deleted file mode 100644 index 06d37361a..000000000 --- a/npc/guild/gefg_cas04.txt +++ /dev/null @@ -1,130 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Geffen) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Geffen Guild Castle 4 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Bergel#1::OutsideFlagsG4 GUILD_FLAG,{ - - .@GID = getcastledata("gefg_cas04",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("gefg_cas04",1)) { - warp "gefg_cas04",168,43; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleG04: - flagemblem getcastledata("gefg_cas04",1); - end; -} - -gef_fild13,190,283,3 duplicate(OutsideFlagsG4) Bergel#1-2 GUILD_FLAG -gef_fild13,199,274,3 duplicate(OutsideFlagsG4) Bergel#2 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Bergel#3::InsideFlagsG4 GUILD_FLAG,{ - end; - -OnRecvCastleG04: - flagemblem getcastledata("gefg_cas04",1); - end; -} - -gefg_cas04,24,157,4 duplicate(InsideFlagsG4) Bergel#3-2 GUILD_FLAG -gefg_cas04,35,158,4 duplicate(InsideFlagsG4) Bergel#4 GUILD_FLAG -gefg_cas04,44,184,4 duplicate(InsideFlagsG4) Bergel#5 GUILD_FLAG -gefg_cas04,51,184,4 duplicate(InsideFlagsG4) Bergel#6 GUILD_FLAG -gefg_cas04,39,212,7 duplicate(InsideFlagsG4) Bergel#7 GUILD_FLAG -gefg_cas04,29,212,1 duplicate(InsideFlagsG4) Bergel#8 GUILD_FLAG -gefg_cas04,24,73,1 duplicate(InsideFlagsG4) Bergel#9 GUILD_FLAG -gefg_cas04,35,73,4 duplicate(InsideFlagsG4) Bergel#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -geffen,127,130,7 duplicate(InsideFlagsG4) Bergel#11 GUILD_FLAG - -// Kafra Employee -//============================================================ -gefg_cas04,59,70,3 duplicate(guildkafra) Kafra Staff#gefg_cas04 4_F_KAFRA1 - -// Steward -//============================================================ -gefg_cas04,73,46,3 duplicate(cm) Kellvahni#gefg_cas04 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -gefg_cas04,116,123,0 script #lever_G04 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "gefg_cas04",73,47; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -gefg_cas04,58,75,0 duplicate(gdlever) #gefg_cas04 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -gefg_cas04,116,119,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas04 -1 - -// AGIT Manager -//============================================================ -gefg_cas04,174,178,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas04 -1 - -// Guardians -//============================================================ -gefg_cas04,73,46,3 duplicate(Gld_Guard_Template) Guardian#gefg_cas04 -1 diff --git a/npc/guild/gefg_cas05.txt b/npc/guild/gefg_cas05.txt deleted file mode 100644 index 81ebd3905..000000000 --- a/npc/guild/gefg_cas05.txt +++ /dev/null @@ -1,130 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Geffen) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.2 -//===== Description: ========================================= -//= NPCs that relate to Geffen Guild Castle 5 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.2 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flag (Outside Castle) -//============================================================ -- script Mersetzdeitz#1::OutsideFlagsG5 GUILD_FLAG,{ - - .@GID = getcastledata("gefg_cas05",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("gefg_cas05",1)) { - warp "gefg_cas05",168,31; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastleG05: - flagemblem getcastledata("gefg_cas05",1); - end; -} - -gef_fild13,302,87,7 duplicate(OutsideFlagsG5) Mersetzdeitz#1-2 GUILD_FLAG -gef_fild13,313,83,0 duplicate(OutsideFlagsG5) Mersetzdeitz#2 GUILD_FLAG -gef_fild13,252,51,2 duplicate(OutsideFlagsG5) Mersetzdeitz#3 GUILD_FLAG -gef_fild13,26,147,2 duplicate(OutsideFlagsG5) Mersetzdeitz#4 GUILD_FLAG - -// Guild Flag (Inside Castle) -//============================================================ -- script Mersetzdeitz#5::InsideFlagsG5 GUILD_FLAG,{ - end; - -OnRecvCastleG05: - flagemblem getcastledata("gefg_cas05",1); - end; -} - -gefg_cas05,77,185,7 duplicate(InsideFlagsG5) Mersetzdeitz#5-2 GUILD_FLAG -gefg_cas05,92,181,0 duplicate(InsideFlagsG5) Mersetzdeitz#6 GUILD_FLAG -gefg_cas05,83,158,1 duplicate(InsideFlagsG5) Mersetzdeitz#7 GUILD_FLAG -gefg_cas05,62,144,7 duplicate(InsideFlagsG5) Mersetzdeitz#8 GUILD_FLAG -gefg_cas05,62,66,4 duplicate(InsideFlagsG5) Mersetzdeitz#9 GUILD_FLAG -gefg_cas05,69,66,4 duplicate(InsideFlagsG5) Mersetzdeitz#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -geffen,131,123,6 duplicate(InsideFlagsG5) Mersetzdeitz#11 GUILD_FLAG - -// Kafra Employee -//============================================================ -gefg_cas05,61,52,5 duplicate(guildkafra) Kafra Staff#gefg_cas05 4_F_KAFRA1 - -// Steward -//============================================================ -gefg_cas05,70,52,3 duplicate(cm) Byohre#gefg_cas05 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -gefg_cas05,149,107,0 script #lever_G05 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "gefg_cas05",70,53; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -gefg_cas05,65,22,0 duplicate(gdlever) #gefg_cas05 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -gefg_cas05,144,110,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas05 -1 - -// AGIT Manager -//============================================================ -gefg_cas05,194,184,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas05 -1 - -// Guardians -//============================================================ -gefg_cas05,70,52,3 duplicate(Gld_Guard_Template) Guardian#gefg_cas05 -1 diff --git a/npc/guild/payg_cas01.txt b/npc/guild/payg_cas01.txt deleted file mode 100644 index 1deee9a4f..000000000 --- a/npc/guild/payg_cas01.txt +++ /dev/null @@ -1,133 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Payon) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.3 -//===== Description: ========================================= -//= NPCs that relate to Payon Guild Castle 1 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] -//= Fixed position of Guild dungeon switch. -//= 1.3 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Bright Arbor#1::OutsideFlagsPA1 GUILD_FLAG,{ - - .@GID = getcastledata("payg_cas01",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("payg_cas01",1)) { - warp "payg_cas01",54,144; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePy01: - flagemblem getcastledata("payg_cas01",1); - end; -} - -pay_gld,125,236,4 duplicate(OutsideFlagsPA1) Bright Arbor#1-2 GUILD_FLAG -pay_gld,110,233,4 duplicate(OutsideFlagsPA1) Bright Arbor#2 GUILD_FLAG -pay_gld,116,233,4 duplicate(OutsideFlagsPA1) Bright Arbor#3 GUILD_FLAG -pay_gld,91,239,2 duplicate(OutsideFlagsPA1) Bright Arbor#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Bright Arbor#5::InsideFlagsPA1 GUILD_FLAG,{ - end; - -OnRecvCastlePy01: - flagemblem getcastledata("payg_cas01",1); - end; -} - -payg_cas01,238,67,4 duplicate(InsideFlagsPA1) Bright Arbor#5-2 GUILD_FLAG -payg_cas01,233,67,4 duplicate(InsideFlagsPA1) Bright Arbor#6 GUILD_FLAG -payg_cas01,221,123,4 duplicate(InsideFlagsPA1) Bright Arbor#7 GUILD_FLAG -payg_cas01,221,116,4 duplicate(InsideFlagsPA1) Bright Arbor#8 GUILD_FLAG -payg_cas01,206,108,4 duplicate(InsideFlagsPA1) Bright Arbor#9 GUILD_FLAG -payg_cas01,212,108,4 duplicate(InsideFlagsPA1) Bright Arbor#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -payon,90,322,4 duplicate(InsideFlagsPA1) Bright Arbor#11 GUILD_FLAG -payon,166,177,3 duplicate(InsideFlagsPA1) Bright Arbor#12 GUILD_FLAG - -// Kafra Employee -//============================================================ -payg_cas01,128,58,3 duplicate(guildkafra) Kafra Staff#payg_cas01 4_F_KAFRA1 - -// Steward -//============================================================ -payg_cas01,120,58,4 duplicate(cm) Kurunnadi#payg_cas01 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -payg_cas01,295,8,0 script #lever_PA01 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "payg_cas01",120,59; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -payg_cas01,101,25,0 duplicate(gdlever) #payg_cas01 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -payg_cas01,291,8,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas01 -1 - -// AGIT Manager -//============================================================ -payg_cas01,139,139,0 duplicate(Gld_Agit_Manager) Agit#payg_cas01 -1 - -// Guardians -//============================================================ -payg_cas01,120,58,4 duplicate(Gld_Guard_Template) Guardian#payg_cas01 -1 diff --git a/npc/guild/payg_cas02.txt b/npc/guild/payg_cas02.txt deleted file mode 100644 index 92db92c09..000000000 --- a/npc/guild/payg_cas02.txt +++ /dev/null @@ -1,134 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Payon) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Payon Guild Castle 2 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] -//= Fixed position of Guild dungeon switch. -//= 1.3 Partially rewrote Script. [Masao] -//= 1.4 Fixed names [Streusel] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Scarlet Palace#1::OutsideFlagsPA2 GUILD_FLAG,{ - - .@GID = getcastledata("payg_cas02",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("payg_cas02",1)) { - warp "payg_cas02",278,251; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePy02: - flagemblem getcastledata("payg_cas02",1); - end; -} - -pay_gld,292,112,6 duplicate(OutsideFlagsPA2) Scarlet Palace#1-2 GUILD_FLAG -pay_gld,292,120,6 duplicate(OutsideFlagsPA2) Scarlet Palace#2 GUILD_FLAG -pay_gld,291,135,6 duplicate(OutsideFlagsPA2) Scarlet Palace#3 GUILD_FLAG -pay_gld,271,163,0 duplicate(OutsideFlagsPA2) Scarlet Palace#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Scarlet Palace#5::InsideFlagsPA2 GUILD_FLAG,{ - end; - -OnRecvCastlePy02: - flagemblem getcastledata("payg_cas02",1); - end; -} - -payg_cas02,254,40,6 duplicate(InsideFlagsPA2) Scarlet Palace#5-2 GUILD_FLAG -payg_cas02,254,48,6 duplicate(InsideFlagsPA2) Scarlet Palace#6 GUILD_FLAG -payg_cas02,202,49,0 duplicate(InsideFlagsPA2) Scarlet Palace#7 GUILD_FLAG -payg_cas02,209,49,0 duplicate(InsideFlagsPA2) Scarlet Palace#8 GUILD_FLAG -payg_cas02,59,282,4 duplicate(InsideFlagsPA2) Scarlet Palace#9 GUILD_FLAG -payg_cas02,70,282,4 duplicate(InsideFlagsPA2) Scarlet Palace#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -payon,97,322,4 duplicate(InsideFlagsPA2) Scarlet Palace#11 GUILD_FLAG -payon,166,173,3 duplicate(InsideFlagsPA2) Scarlet Palace#12 GUILD_FLAG - -// Kafra Employee -//============================================================ -payg_cas02,22,275,5 duplicate(guildkafra) Kafra Staff#payg_cas02 4_F_KAFRA1 - -// Steward -//============================================================ -payg_cas02,22,260,7 duplicate(cm) Cherieos#payg_cas02 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -payg_cas02,149,149,0 script #lever_PA02 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "payg_cas02",22,261; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -payg_cas02,278,247,0 duplicate(gdlever) #payg_cas02 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -payg_cas02,145,144,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas02 -1 - -// AGIT Manager -//============================================================ -payg_cas02,39,25,0 duplicate(Gld_Agit_Manager) Agit#payg_cas02 -1 - -// Guardians -//============================================================ -payg_cas02,22,260,7 duplicate(Gld_Guard_Template) Guardian#payg_cas02 -1 diff --git a/npc/guild/payg_cas03.txt b/npc/guild/payg_cas03.txt deleted file mode 100644 index e0e649308..000000000 --- a/npc/guild/payg_cas03.txt +++ /dev/null @@ -1,133 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Payon) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.3 -//===== Description: ========================================= -//= NPCs that relate to Payon Guild Castle 1 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] -//= Fixed position of Guild dungeon switch. -//= 1.3 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Holy Shadow#1::OutsideFlagsPA3 GUILD_FLAG,{ - - .@GID = getcastledata("payg_cas03",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("payg_cas03",1)) { - warp "payg_cas03",9,263; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePy03: - flagemblem getcastledata("payg_cas03",1); - end; -} - -pay_gld,321,298,2 duplicate(OutsideFlagsPA3) Holy Shadow#1-2 GUILD_FLAG -pay_gld,321,289,2 duplicate(OutsideFlagsPA3) Holy Shadow#2 GUILD_FLAG -pay_gld,327,304,1 duplicate(OutsideFlagsPA3) Holy Shadow#3 GUILD_FLAG -pay_gld,333,254,4 duplicate(OutsideFlagsPA3) Holy Shadow#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Holy Shadow#5::InsideFlagsPA3 GUILD_FLAG,{ - end; - -OnRecvCastlePy03: - flagemblem getcastledata("payg_cas03",1); - end; -} - -payg_cas03,236,54,2 duplicate(InsideFlagsPA3) Holy Shadow#5-2 GUILD_FLAG -payg_cas03,236,45,2 duplicate(InsideFlagsPA3) Holy Shadow#6 GUILD_FLAG -payg_cas03,259,66,4 duplicate(InsideFlagsPA3) Holy Shadow#7 GUILD_FLAG -payg_cas03,266,66,4 duplicate(InsideFlagsPA3) Holy Shadow#8 GUILD_FLAG -payg_cas03,34,31,4 duplicate(InsideFlagsPA3) Holy Shadow#9 GUILD_FLAG -payg_cas03,43,31,4 duplicate(InsideFlagsPA3) Holy Shadow#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -payon,113,322,4 duplicate(InsideFlagsPA3) Holy Shadow#11 GUILD_FLAG -payon,166,169,3 duplicate(InsideFlagsPA3) Holy Shadow#12 GUILD_FLAG - -// Kafra Employee -//============================================================ -payg_cas03,9,263,5 duplicate(guildkafra) Kafra Staff#payg_cas03 4_F_KAFRA1 - -// Steward -//============================================================ -payg_cas03,50,261,3 duplicate(cm) Gheriot#payg_cas03 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -payg_cas03,163,167,0 script #lever_PA03 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "payg_cas03",50,261; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -payg_cas03,38,42,0 duplicate(gdlever) #payg_cas03 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -payg_cas03,159,168,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas03 -1 - -// AGIT Manager -//============================================================ -payg_cas03,269,265,0 duplicate(Gld_Agit_Manager) Agit#payg_cas03 -1 - -// Guardians -//============================================================ -payg_cas03,10,277,0 duplicate(Gld_Guard_Template) Guardian#payg_cas03 -1 diff --git a/npc/guild/payg_cas04.txt b/npc/guild/payg_cas04.txt deleted file mode 100644 index 498bc1aed..000000000 --- a/npc/guild/payg_cas04.txt +++ /dev/null @@ -1,134 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Payon) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Payon Guild Castle 4 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] -//= Fixed position of Guild dungeon switch. -//= 1.3 Partially rewrote Script. [Masao] -//= 1.4 Fixed named [Streusel] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Sacred Altar#1::OutsideFlagsPA4 GUILD_FLAG,{ - - .@GID = getcastledata("payg_cas04",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("payg_cas04",1)) { - warp "payg_cas04",40,235; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePy04: - flagemblem getcastledata("payg_cas04",1); - end; -} - -pay_gld,137,160,0 duplicate(OutsideFlagsPA4) Sacred Altar#1-2 GUILD_FLAG -pay_gld,143,160,0 duplicate(OutsideFlagsPA4) Sacred Altar#2 GUILD_FLAG -pay_gld,133,151,2 duplicate(OutsideFlagsPA4) Sacred Altar#3 GUILD_FLAG -pay_gld,153,166,1 duplicate(OutsideFlagsPA4) Sacred Altar#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Sacred Altar#5::InsideFlagsPA4 GUILD_FLAG,{ - end; - -OnRecvCastlePy04: - flagemblem getcastledata("payg_cas04",1); - end; -} - -payg_cas04,255,259,0 duplicate(InsideFlagsPA4) Sacred Altar#5-2 GUILD_FLAG -payg_cas04,248,259,0 duplicate(InsideFlagsPA4) Sacred Altar#6 GUILD_FLAG -payg_cas04,248,168,6 duplicate(InsideFlagsPA4) Sacred Altar#7 GUILD_FLAG -payg_cas04,248,160,6 duplicate(InsideFlagsPA4) Sacred Altar#8 GUILD_FLAG -payg_cas04,232,181,4 duplicate(InsideFlagsPA4) Sacred Altar#9 GUILD_FLAG -payg_cas04,239,181,4 duplicate(InsideFlagsPA4) Sacred Altar#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -payon,118,322,4 duplicate(InsideFlagsPA4) Sacred Altar#11 GUILD_FLAG -payon,166,165,3 duplicate(InsideFlagsPA4) Sacred Altar#12 GUILD_FLAG - -// Kafra Employee -//============================================================ -payg_cas04,40,235,1 duplicate(guildkafra) Kafra Staff#payg_cas04 4_F_KAFRA1 - -// Steward -//============================================================ -payg_cas04,38,284,3 duplicate(cm) DJ#payg_cas04 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -payg_cas04,151,47,0 script #lever_PA04 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "payg_cas04",38,285; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -payg_cas04,52,48,0 duplicate(gdlever) #payg_cas04 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -payg_cas04,147,48,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas04 -1 - -// AGIT Manager -//============================================================ -payg_cas04,271,29,0 duplicate(Gld_Agit_Manager) Agit#payg_cas04 -1 - -// Guardians -//============================================================ -payg_cas04,38,284,3 duplicate(Gld_Guard_Template) Guardian#payg_cas04 -1 diff --git a/npc/guild/payg_cas05.txt b/npc/guild/payg_cas05.txt deleted file mode 100644 index 7b667c4ca..000000000 --- a/npc/guild/payg_cas05.txt +++ /dev/null @@ -1,133 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Payon) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.3 -//===== Description: ========================================= -//= NPCs that relate to Payon Guild Castle 1 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] -//= Fixed position of Guild dungeon switch. -//= 1.3 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Bamboo Grove Hill#1::OutsideFlagsPA5 GUILD_FLAG,{ - - .@GID = getcastledata("payg_cas05",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("payg_cas05",1)) { - warp "payg_cas05",243,27; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePy05: - flagemblem getcastledata("payg_cas05",1); - end; -} - -pay_gld,208,268,4 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#1-2 GUILD_FLAG -pay_gld,199,268,4 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#2 GUILD_FLAG -pay_gld,190,277,3 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#3 GUILD_FLAG -pay_gld,187,294,2 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Bamboo Grove Hill#5::InsideFlagsPA5 GUILD_FLAG,{ - end; - -OnRecvCastlePy05: - flagemblem getcastledata("payg_cas05",1); - end; -} - -payg_cas05,32,249,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#5-2 GUILD_FLAG -payg_cas05,24,249,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#6 GUILD_FLAG -payg_cas05,62,271,0 duplicate(InsideFlagsPA5) Bamboo Grove Hill#7 GUILD_FLAG -payg_cas05,57,271,0 duplicate(InsideFlagsPA5) Bamboo Grove Hill#8 GUILD_FLAG -payg_cas05,55,252,2 duplicate(InsideFlagsPA5) Bamboo Grove Hill#9 GUILD_FLAG -payg_cas05,55,260,2 duplicate(InsideFlagsPA5) Bamboo Grove Hill#10 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -payon,123,322,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#11 GUILD_FLAG -payon,166,161,3 duplicate(InsideFlagsPA5) Bamboo Grove Hill#12 GUILD_FLAG - -// Kafra Employee -//============================================================ -payg_cas05,276,227,1 duplicate(guildkafra) Kafra Staff#payg_cas05 4_F_KAFRA1 - -// Steward -//============================================================ -payg_cas05,277,249,3 duplicate(cm) Nahzarf#payg_cas05 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -payg_cas05,161,136,0 script #lever_PA05 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "payg_cas05",277,250; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -payg_cas05,249,15,0 duplicate(gdlever) #payg_cas05 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -payg_cas05,157,132,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas05 -1 - -// AGIT Manager -//============================================================ -payg_cas05,30,30,0 duplicate(Gld_Agit_Manager) Agit#payg_cas05 -1 - -// Guardians -//============================================================ -payg_cas05,277,249,3 duplicate(Gld_Guard_Template) Guardian#payg_cas05 -1 diff --git a/npc/guild/prtg_cas01.txt b/npc/guild/prtg_cas01.txt deleted file mode 100644 index 961453ccd..000000000 --- a/npc/guild/prtg_cas01.txt +++ /dev/null @@ -1,136 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Prontera) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Prontera Guild Castle 1 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] -//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.4 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Kriemhild#1::OutsideFlagsPR1 GUILD_FLAG,{ - - .@GID = getcastledata("prtg_cas01",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("prtg_cas01",1)) { - warp "prtg_cas01",96,173; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePt01: - flagemblem getcastledata("prtg_cas01",1); - end; -} - -prt_gld,131,60,6 duplicate(OutsideFlagsPR1) Kriemhild#1-2 GUILD_FLAG -prt_gld,138,68,6 duplicate(OutsideFlagsPR1) Kriemhild#2 GUILD_FLAG -prt_gld,138,60,6 duplicate(OutsideFlagsPR1) Kriemhild#3 GUILD_FLAG -prt_gld,135,60,6 duplicate(OutsideFlagsPR1) Kriemhild#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Kriemhild#5::InsideFlagsPR1 GUILD_FLAG,{ - end; - -OnRecvCastlePt01: - flagemblem getcastledata("prtg_cas01",1); - end; -} - -prtg_cas01,58,56,4 duplicate(InsideFlagsPR1) Kriemhild#5-2 GUILD_FLAG -prtg_cas01,64,56,4 duplicate(InsideFlagsPR1) Kriemhild#6 GUILD_FLAG -prtg_cas01,76,32,4 duplicate(InsideFlagsPR1) Kriemhild#7 GUILD_FLAG -prtg_cas01,84,32,4 duplicate(InsideFlagsPR1) Kriemhild#8 GUILD_FLAG -prtg_cas01,94,39,4 duplicate(InsideFlagsPR1) Kriemhild#9 GUILD_FLAG -prtg_cas01,94,24,4 duplicate(InsideFlagsPR1) Kriemhild#10 GUILD_FLAG -prtg_cas01,73,14,4 duplicate(InsideFlagsPR1) Kriemhild#11 GUILD_FLAG -prtg_cas01,73,6,4 duplicate(InsideFlagsPR1) Kriemhild#12 GUILD_FLAG -prtg_cas01,55,46,4 duplicate(InsideFlagsPR1) Kriemhild#13 GUILD_FLAG -prtg_cas01,45,46,4 duplicate(InsideFlagsPR1) Kriemhild#14 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -prontera,155,190,4 duplicate(InsideFlagsPR1) Kriemhild#15 GUILD_FLAG - -// Kafra Employee -//============================================================ -prtg_cas01,96,173,0 duplicate(guildkafra) Kafra Staff#prtg_cas01 4_F_KAFRA1 - -// Steward -//============================================================ -prtg_cas01,112,181,0 duplicate(cm) Ahvray#prtg_cas01 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -prtg_cas01,15,208,0 script #Lever_PR01 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "prtg_cas01",112,183; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -prtg_cas01,94,200,0 duplicate(gdlever) #prtg_cas01 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -prtg_cas01,11,208,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas01 -1 - -// AGIT Manager -//============================================================ -prtg_cas01,197,197,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas01 -1 - -// Guardians -//============================================================ -prtg_cas01,112,181,0 duplicate(Gld_Guard_Template) Guardian#prtg_cas01 -1 diff --git a/npc/guild/prtg_cas02.txt b/npc/guild/prtg_cas02.txt deleted file mode 100644 index 315478ba1..000000000 --- a/npc/guild/prtg_cas02.txt +++ /dev/null @@ -1,138 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Prontera) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Prontera Guild Castle 2 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] -//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.4 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Swanhild#1::OutsideFlagsPR2 GUILD_FLAG,{ - - .@GID = getcastledata("prtg_cas02",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("prtg_cas02",1)) { - warp "prtg_cas02",169,55; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePt02: - flagemblem getcastledata("prtg_cas02",1); - end; -} - -prt_gld,244,126,8 duplicate(OutsideFlagsPR2) Swanhild#1-2 GUILD_FLAG -prt_gld,244,128,8 duplicate(OutsideFlagsPR2) Swanhild#2 GUILD_FLAG -prt_gld,236,126,8 duplicate(OutsideFlagsPR2) Swanhild#3 GUILD_FLAG -prt_gld,236,128,8 duplicate(OutsideFlagsPR2) Swanhild#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Swanhild#5::InsideFlagsPR2 GUILD_FLAG,{ - end; - -OnRecvCastlePt02: - flagemblem getcastledata("prtg_cas02",1); - end; -} - -prtg_cas02,40,227,4 duplicate(InsideFlagsPR2) Swanhild#5-2 GUILD_FLAG -prtg_cas02,46,227,4 duplicate(InsideFlagsPR2) Swanhild#6 GUILD_FLAG -prtg_cas02,11,219,4 duplicate(InsideFlagsPR2) Swanhild#7 GUILD_FLAG -prtg_cas02,11,214,4 duplicate(InsideFlagsPR2) Swanhild#8 GUILD_FLAG -prtg_cas02,20,219,4 duplicate(InsideFlagsPR2) Swanhild#9 GUILD_FLAG -prtg_cas02,20,214,4 duplicate(InsideFlagsPR2) Swanhild#10 GUILD_FLAG -prtg_cas02,79,227,8 duplicate(InsideFlagsPR2) Swanhild#11 GUILD_FLAG -prtg_cas02,70,227,8 duplicate(InsideFlagsPR2) Swanhild#12 GUILD_FLAG -prtg_cas02,38,189,8 duplicate(InsideFlagsPR2) Swanhild#13 GUILD_FLAG -prtg_cas02,34,189,8 duplicate(InsideFlagsPR2) Swanhild#14 GUILD_FLAG -prtg_cas02,153,161,4 duplicate(InsideFlagsPR2) Swanhild#15 GUILD_FLAG -prtg_cas02,162,161,4 duplicate(InsideFlagsPR2) Swanhild#16 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -prontera,146,194,3 duplicate(InsideFlagsPR2) Swanhild#17 GUILD_FLAG - -// Kafra Employee -//============================================================ -prtg_cas02,71,36,4 duplicate(guildkafra) Kafra Staff#prtg_cas02 4_F_KAFRA1 - -// Steward -//============================================================ -prtg_cas02,94,61,4 duplicate(cm) Roy#prtg_cas02 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -prtg_cas02,207,228,0 script #Lever_PR02 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "prtg_cas02",94,62; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -prtg_cas02,84,72,0 duplicate(gdlever) #prtg_cas02 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -prtg_cas02,202,228,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas02 -1 - -// AGIT Manager -//============================================================ -prtg_cas02,158,174,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas02 -1 - -// Guardians -//============================================================ -prtg_cas02,94,61,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas02 -1 diff --git a/npc/guild/prtg_cas03.txt b/npc/guild/prtg_cas03.txt deleted file mode 100644 index 4b52dbb7f..000000000 --- a/npc/guild/prtg_cas03.txt +++ /dev/null @@ -1,136 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Prontera) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Prontera Guild Castle 3 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] -//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.4 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Fadhgridh#1::OutsideFlagsPR3 GUILD_FLAG,{ - - .@GID = getcastledata("prtg_cas03",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("prtg_cas03",1)) { - warp "prtg_cas03",181,215; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePt03: - flagemblem getcastledata("prtg_cas03",1); - end; -} - -prt_gld,147,140,4 duplicate(OutsideFlagsPR3) Fadhgridh#1-2 GUILD_FLAG -prt_gld,147,136,4 duplicate(OutsideFlagsPR3) Fadhgridh#2 GUILD_FLAG -prt_gld,158,140,4 duplicate(OutsideFlagsPR3) Fadhgridh#3 GUILD_FLAG -prt_gld,158,136,4 duplicate(OutsideFlagsPR3) Fadhgridh#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Fadhgridh#5::InsideFlagsPR3 GUILD_FLAG,{ - end; - -OnRecvCastlePt03: - flagemblem getcastledata("prtg_cas03",1); - end; -} - -prtg_cas03,168,28,4 duplicate(InsideFlagsPR3) Fadhgridh#5-2 GUILD_FLAG -prtg_cas03,182,28,4 duplicate(InsideFlagsPR3) Fadhgridh#6 GUILD_FLAG -prtg_cas03,43,50,4 duplicate(InsideFlagsPR3) Fadhgridh#7 GUILD_FLAG -prtg_cas03,48,50,4 duplicate(InsideFlagsPR3) Fadhgridh#8 GUILD_FLAG -prtg_cas03,43,58,4 duplicate(InsideFlagsPR3) Fadhgridh#9 GUILD_FLAG -prtg_cas03,48,58,4 duplicate(InsideFlagsPR3) Fadhgridh#10 GUILD_FLAG -prtg_cas03,158,210,4 duplicate(InsideFlagsPR3) Fadhgridh#11 GUILD_FLAG -prtg_cas03,169,210,4 duplicate(InsideFlagsPR3) Fadhgridh#12 GUILD_FLAG -prtg_cas03,162,201,4 duplicate(InsideFlagsPR3) Fadhgridh#13 GUILD_FLAG -prtg_cas03,165,201,4 duplicate(InsideFlagsPR3) Fadhgridh#14 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -prontera,143,203,2 duplicate(InsideFlagsPR3) Fadhgridh#15 GUILD_FLAG - -// Kafra Employee -//============================================================ -prtg_cas03,181,215,4 duplicate(guildkafra) Kafra Staff#prtg_cas03 4_F_KAFRA1 - -// Steward -//============================================================ -prtg_cas03,51,100,4 duplicate(cm) Sttick#prtg_cas03 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -prtg_cas03,193,130,0 script #Lever_PR03 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "prtg_cas03",51,101; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -prtg_cas03,5,70,0 duplicate(gdlever) #prtg_cas03 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -prtg_cas03,189,132,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas03 -1 - -// AGIT Manager -//============================================================ -prtg_cas03,17,221,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas03 -1 - -// Guardians -//============================================================ -prtg_cas03,51,100,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas03 -1 diff --git a/npc/guild/prtg_cas04.txt b/npc/guild/prtg_cas04.txt deleted file mode 100644 index 8936b8451..000000000 --- a/npc/guild/prtg_cas04.txt +++ /dev/null @@ -1,136 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Prontera) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Prontera Guild Castle 4 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] -//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.4 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Skoegul#1::OutsideFlagsPR4 GUILD_FLAG,{ - - .@GID = getcastledata("prtg_cas04",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("prtg_cas04",1)) { - warp "prtg_cas04",258,247; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePt04: - flagemblem getcastledata("prtg_cas04",1); - end; -} - -prt_gld,120,243,6 duplicate(OutsideFlagsPR4) Skoegul#1-2 GUILD_FLAG -prt_gld,120,236,6 duplicate(OutsideFlagsPR4) Skoegul#2 GUILD_FLAG -prt_gld,122,243,6 duplicate(OutsideFlagsPR4) Skoegul#3 GUILD_FLAG -prt_gld,122,236,6 duplicate(OutsideFlagsPR4) Skoegul#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Skoegul#5::InsideFlagsPR4 GUILD_FLAG,{ - end; - -OnRecvCastlePt04: - flagemblem getcastledata("prtg_cas04",1); - end; -} - -prtg_cas04,82,29,4 duplicate(InsideFlagsPR4) Skoegul#5-2 GUILD_FLAG -prtg_cas04,75,29,4 duplicate(InsideFlagsPR4) Skoegul#6 GUILD_FLAG -prtg_cas04,75,27,4 duplicate(InsideFlagsPR4) Skoegul#7 GUILD_FLAG -prtg_cas04,82,27,4 duplicate(InsideFlagsPR4) Skoegul#8 GUILD_FLAG -prtg_cas04,59,29,4 duplicate(InsideFlagsPR4) Skoegul#9 GUILD_FLAG -prtg_cas04,67,29,4 duplicate(InsideFlagsPR4) Skoegul#10 GUILD_FLAG -prtg_cas04,258,25,4 duplicate(InsideFlagsPR4) Skoegul#11 GUILD_FLAG -prtg_cas04,258,20,4 duplicate(InsideFlagsPR4) Skoegul#12 GUILD_FLAG -prtg_cas04,263,20,4 duplicate(InsideFlagsPR4) Skoegul#13 GUILD_FLAG -prtg_cas04,263,27,4 duplicate(InsideFlagsPR4) Skoegul#14 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -prontera,167,203,6 duplicate(InsideFlagsPR4) Skoegul#15 GUILD_FLAG - -// Kafra Employee -//============================================================ -prtg_cas04,258,247,4 duplicate(guildkafra) Kafra Staff#prtg_cas04 4_F_KAFRA1 - -// Steward -//============================================================ -prtg_cas04,259,265,4 duplicate(cm) Van Dreth#prtg_cas04 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -prtg_cas04,275,160,0 script #Lever_PR04 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "prtg_cas04",259,265; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -prtg_cas04,56,283,0 duplicate(gdlever) #prtg_cas04 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -prtg_cas04,271,162,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas04 -1 - -// AGIT Manager -//============================================================ -prtg_cas04,292,14,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas04 -1 - -// Guardians -//============================================================ -prtg_cas04,259,265,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas04 -1 diff --git a/npc/guild/prtg_cas05.txt b/npc/guild/prtg_cas05.txt deleted file mode 100644 index 3b9652783..000000000 --- a/npc/guild/prtg_cas05.txt +++ /dev/null @@ -1,134 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium (Prontera) -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.4 -//===== Description: ========================================= -//= NPCs that relate to Prontera Guild Castle 5 -//===== Additional Comments: ================================= -//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] -//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] -//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] -//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] -//= 1.4 Partially rewrote Script. [Masao] -//============================================================ - -// Guild Flags (Outside Castle) -//============================================================ -- script Gondul#1::OutsideFlagsPR5 GUILD_FLAG,{ - - .@GID = getcastledata("prtg_cas05",1); - - if (.@GID == 0) { - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "We declare that"; - mes "there is no formal master of this castle."; - mes " "; - mes "2. To the one who can "; - mes "overcome all trials"; - mes "and destroy the Emperium,"; - mes "the king will endow the one with"; - mes "ownership of this castle."; - close; - } - if (getcharid(2) == .@GID) { - mes "[ Echoing Voice ]"; - mes "Brave ones..."; - mes "Do you wish to return to your honorable place?"; - next; - if(select("Return to the guild castle.:Quit.") == 1) { - close2; - if (getcharid(2) == getcastledata("prtg_cas05",1)) { - warp "prtg_cas05",52,41; - end; - } - end; - } - close; - } - mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; - mes " "; - mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; - mes "we approve that this place is in"; - mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; - mes " "; - mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; - mes "^ff0000"+getguildmaster(.@GID)+"^000000"; - mes "If there is anyone who objects to this,"; - mes "prove your strength and honor with a steel blade in your hand."; - close; - -OnRecvCastlePt05: - flagemblem getcastledata("prtg_cas05",1); - end; -} - -prt_gld,199,243,2 duplicate(OutsideFlagsPR5) Gondul#1-2 GUILD_FLAG -prt_gld,199,236,2 duplicate(OutsideFlagsPR5) Gondul#2 GUILD_FLAG -prt_gld,197,243,2 duplicate(OutsideFlagsPR5) Gondul#3 GUILD_FLAG -prt_gld,197,236,2 duplicate(OutsideFlagsPR5) Gondul#4 GUILD_FLAG - -// Guild Flags (Inside Castle) -//============================================================ -- script Gondul#5::InsideFlagsPR5 GUILD_FLAG,{ - end; - -OnRecvCastlePt05: - flagemblem getcastledata("prtg_cas05",1); - end; -} - -prtg_cas05,19,247,4 duplicate(InsideFlagsPR5) Gondul#5-2 GUILD_FLAG -prtg_cas05,19,243,4 duplicate(InsideFlagsPR5) Gondul#6 GUILD_FLAG -prtg_cas05,26,247,4 duplicate(InsideFlagsPR5) Gondul#7 GUILD_FLAG -prtg_cas05,26,243,4 duplicate(InsideFlagsPR5) Gondul#8 GUILD_FLAG -prtg_cas05,249,289,4 duplicate(InsideFlagsPR5) Gondul#9 GUILD_FLAG -prtg_cas05,256,289,4 duplicate(InsideFlagsPR5) Gondul#10 GUILD_FLAG -prtg_cas05,253,271,4 duplicate(InsideFlagsPR5) Gondul#11 GUILD_FLAG -prtg_cas05,273,257,4 duplicate(InsideFlagsPR5) Gondul#12 GUILD_FLAG - -// Guild Flag (Town) -//============================================================ -prontera,165,194,5 duplicate(InsideFlagsPR5) Gondul#13 GUILD_FLAG - -// Kafra Employee -//============================================================ -prtg_cas05,52,41,4 duplicate(guildkafra) Kafra Staff#prtg_cas05 4_F_KAFRA1 - -// Steward -//============================================================ -prtg_cas05,36,37,4 duplicate(cm) Raynor#prtg_cas05 1_M_JOBTESTER - -// Treasure Room Exit -//============================================================ -prtg_cas05,281,176,0 script #Lever_PR05 HIDDEN_NPC,{ - - mes " "; - mes "There's a small lever. Will you pull it?"; - next; - if(select("Pull.:Do not.") == 1) { - close2; - warp "prtg_cas05",36,38; - end; - } - close; -} - -// Guild Dungeon Switch -//============================================================ -prtg_cas05,212,95,0 duplicate(gdlever) #prtg_cas05 HIDDEN_NPC - -// Guild Treasure Spawns -//============================================================ -prtg_cas05,276,178,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas05 -1 - -// AGIT Manager -//============================================================ -prtg_cas05,266,266,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas05 -1 - -// Guardians -//============================================================ -prtg_cas05,36,37,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas05 -1 diff --git a/npc/guild/trs_rp.txt b/npc/guild/trs_rp.txt deleted file mode 100644 index d96bd694e..000000000 --- a/npc/guild/trs_rp.txt +++ /dev/null @@ -1,55 +0,0 @@ -//===== Hercules Script ====================================== -//= Treasure Room Protection -//===== By: ================================================== -//= Masao -//===== Current Version: ===================================== -//= 1.1 -//===== Description: ========================================= -//= Warps every Player out of the Treasure Room except for the -//= Guildleader. -//===== Additional Comments: ================================= -//= 1.0 Converted from the official script. -//= 1.1 Reverted back and optimized. [Daegaladh] -//============================================================ - -- script Gld_Trea_Protect::Gld_Trea_Protect -1,{ - -OnTouch: - // Store the Guild ID of castle occupant. - .@GID = getcastledata(strnpcinfo(2),1); - if (strcharinfo(0) != getguildmaster(.@GID)) { - if (compare(strnpcinfo(2),"aldeg")) - warp "aldebaran",143,112; - else if (compare(strnpcinfo(2),"gefg")) - warp "geffen",120,38; - else if (compare(strnpcinfo(2),"payg")) - warp "payon",100,100; - else if (compare(strnpcinfo(2),"prtg")) - warp "prontera",119,64; - } - end; -} - -prtg_cas01,11,208,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas01 -1,6,6 -prtg_cas02,202,228,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas02 -1,6,6 -prtg_cas03,189,132,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas03 -1,6,6 -prtg_cas04,271,162,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas04 -1,6,6 -prtg_cas05,276,178,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas05 -1,6,6 - -payg_cas01,291,8,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas01 -1,6,6 -payg_cas02,145,144,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas02 -1,6,6 -payg_cas03,159,168,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas03 -1,6,6 -payg_cas04,147,48,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas04 -1,6,6 -payg_cas05,157,132,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas05 -1,6,6 - -aldeg_cas01,118,223,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas01 -1,8,8 -aldeg_cas02,135,230,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas02 -1,8,8 -aldeg_cas03,225,269,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas03 -1,8,8 -aldeg_cas04,84,13,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas04 -1,8,8 -aldeg_cas05,62,12,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas05 -1,8,8 - -gefg_cas01,154,112,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas01 -1,6,6 -gefg_cas02,140,116,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas02 -1,6,6 -gefg_cas03,271,290,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas03 -1,6,6 -gefg_cas04,116,119,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas04 -1,6,6 -gefg_cas05,144,110,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas05 -1,6,6 diff --git a/npc/guild2/agit_main_se.txt b/npc/guild2/agit_main_se.txt deleted file mode 100644 index bad6b27f7..000000000 --- a/npc/guild2/agit_main_se.txt +++ /dev/null @@ -1,1834 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Template File -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.4a -//===== Description: ========================================= -//= Like agit_main, this file is required -//= for SE castles to function. -//===== Additional Comments: ================================= -//= 0.x Previous authors: L0ne_W0lf, Zephyrus, Brian. -//= 1.0 If anything breaks, blame Maki. [Euphy] -//= 1.1 Fixed an incorrect label execution. [Euphy] -//= 1.2 Hopefully fixed a processing error. [Euphy] -//= 1.3 Fixed barricade issue in schg_cas02. [Cookie] -//= 1.4 Added OnGuildBreak event and a spawn check. [Euphy] -//= 1.4a Fixed Guardian Stone respawns. [Euphy] -//============================================================ - -// Core, triggers all other events -//============================================================ -- script Manager#template -1,{ -OnAgitInit2: -OnRecvCastle2: - if (strnpcinfo(2) == "template") end; - if (!getcastledata(strnpcinfo(2),1)) { - donpcevent strnpcinfo(0)+"::OnStart"; - // Monster spawns are identical for all castles. - monster strnpcinfo(2),0,0,"Evil Druid",1117,10; - monster strnpcinfo(2),0,0,"Khalitzburg",1132,4; - monster strnpcinfo(2),0,0,"Abysmal Knight",1219,3; - monster strnpcinfo(2),0,0,"Executioner",1205,1; - monster strnpcinfo(2),0,0,"Penomena",1216,10; - monster strnpcinfo(2),0,0,"Alarm",1193,18; - monster strnpcinfo(2),0,0,"Clock",1269,9; - monster strnpcinfo(2),0,0,"Raydric Archer",1276,12; - monster strnpcinfo(2),0,0,"Wanderer",1208,3; - monster strnpcinfo(2),0,0,"Alice",1275,1; - monster strnpcinfo(2),0,0,"Bloody Knight",1268,2; - monster strnpcinfo(2),0,0,"Dark Lord",1272,2; - monster strnpcinfo(2),0,0,"Tower Keeper",1270,4; - } - if (getcastledata(strnpcinfo(2),9) < 1) - disablenpc "Kafra Employee#"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); - end; - -OnAgitStart2: - if (strnpcinfo(2) == "template") end; - if (agitcheck2()) { - maprespawnguildid strnpcinfo(2),getcastledata(strnpcinfo(2),1),2; - gvgon strnpcinfo(2); - donpcevent strnpcinfo(0)+"::OnStart"; - } - else for(.@i = 0; .@i<4; ++.@i) - donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnDisable"; - end; - -OnAgitEnd2: - if (strnpcinfo(2) == "template") end; - gvgoff strnpcinfo(2); - if (getcastledata(strnpcinfo(2),1)) { - .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); - killmonster strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena"; - donpcevent strnpcinfo(0)+"::OnReset"; - donpcevent "Steward#"+.@str$+"::OnStop"; - } - end; - -OnGuildBreak: - if (strnpcinfo(2) == "template") end; - killmonster strnpcinfo(2),"gard1#"+strnpcinfo(2)+"::OnGuardianDied"; - killmonster strnpcinfo(2),"gard2#"+strnpcinfo(2)+"::OnGuardianDied"; - disablenpc "Kafra Employee#"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); - setcastledata strnpcinfo(2),1,0; - sleep 7000; - announce "Guild Base ["+getcastlename(strnpcinfo(2))+"] has been abandoned.",0; - donpcevent strnpcinfo(0)+"::OnRecvCastle2"; - end; - -OnStart: - // $agit_ar0x[] - $agit_sc0x[] - // 1st Guardian stone, 2nd Guardian stone, Barrier 1, Barrier 2, Barrier 3, Summon Guardians - // Settings for all but Summon Guardians: 0 = Okay | 1 = Destroyed | 2 = Repairing - // Summon Guardians: 0 = Do not Summon | 1 = Summon - if (getcastledata(strnpcinfo(2),1)) { - setarray getd("$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"[0]"),0,0,0,0,0,0; - donpcevent "df1#"+strnpcinfo(2)+"::OnEnable"; - donpcevent "df2#"+strnpcinfo(2)+"::OnEnable"; - for (.@i = 0; .@i<4; ++.@i) - donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnEnable"; - } - -OnEmpSpawn: - .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); - if (mobcount(strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena")) end; - if (compare(strnpcinfo(2),"arug")) { - if (strnpcinfo(2) == "arug_cas01") setarray .@i[0],87,219; - else if (strnpcinfo(2) == "arug_cas02") setarray .@i[0],89,256; - else setarray .@i[0],141,293; // Castles 3,4,5 are identical. - } - else { - if (strnpcinfo(2) == "schg_cas02") setarray .@i[0],162,193; - else if (strnpcinfo(2) == "schg_cas03") setarray .@i[0],338,202; - else setarray .@i[0],120,272; // Castles 1,4,5 are identical. - } - monster strnpcinfo(2),.@i[0],.@i[1],"Emperium",1288,1,"Steward#"+.@str$+"::OnStartArena"; - end; - -OnReset: - .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); - donpcevent "df1#"+strnpcinfo(2)+"::OnDisable"; - donpcevent "df2#"+strnpcinfo(2)+"::OnDisable"; - donpcevent "gard1#"+strnpcinfo(2)+"::OnReset"; - donpcevent "gard2#"+strnpcinfo(2)+"::OnReset"; - donpcevent "1st Guardian Stone#"+.@str$+"::OnDisable"; - donpcevent "2nd Guardian Stone#"+.@str$+"::OnDisable"; - for(.@i = 1; .@i<4; ++.@i) - donpcevent "Control Device0"+.@i+"#"+.@str$+"::OnDisable"; - for(.@i = 0; .@i<4; ++.@i) - donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnDisable"; - if (agitcheck2()) - setarray getd("$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"[0]"),0,0,1,1,1,0; - end; - -OnChange: - .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); - setarray getd("$agit_"+.@str$+"[0]"),2,2,1,1,2,0; - donpcevent strnpcinfo(0)+"::OnEmpSpawn"; - donpcevent "Control Device03#"+.@str$+"::OnEnable"; - donpcevent "1st Guardian Stone#"+.@str$+"::OnEnable"; - donpcevent "2nd Guardian Stone#"+.@str$+"::OnEnable"; - end; - -OnClock0001: - // Spawn Treasure Chests based on castle economy. - if (strnpcinfo(2) == "template") end; - if (!getcastledata(strnpcinfo(2),1)) end; - killmonster strnpcinfo(2),strnpcinfo(0)+"::OnTreasureDied"; - if (getcastledata(strnpcinfo(2),4)) { - .@Economy = getcastledata(strnpcinfo(2),2); - setcastledata strnpcinfo(2),2,.@Economy+getcastledata(strnpcinfo(2),4)+(rand(2) && getgdskilllv(getcastledata(strnpcinfo(2),1),10014)); - if (getcastledata(strnpcinfo(2),2) > 100) setcastledata strnpcinfo(2),2,100; - setcastledata strnpcinfo(2),4,0; - } - if (getcastledata(strnpcinfo(2),5)) { - .@defence = getcastledata(strnpcinfo(2),3); - setcastledata strnpcinfo(2),3,.@defence+getcastledata(strnpcinfo(2),5); - if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100; - setcastledata strnpcinfo(2),5,0; - } - .@Treasure = getcastledata(strnpcinfo(2),2)/5+4; - if (!.@Treasure) end; - freeloop(1); - if (compare(strnpcinfo(2),"arug")) { - if (strnpcinfo(2) == "arug_cas01") { - .@treasurebox = 1943; - setarray .@treasurex[0],251,252,253,254,255,256,257,258,251,252,253,254,255,256,257,258,251,252,253,254,255,256,257,258; - setarray .@treasurey[0],369,369,369,369,368,368,368,368,367,367,367,367,366,366,366,366,365,365,365,365,364,364,364,364; - } - else if (strnpcinfo(2) == "arug_cas02") { - .@treasurebox = 1944; - setarray .@treasurex[0],382,383,384,385,386,387,384,385,386,387,388,389,382,383,384,385,386,387,384,385,386,387,388,389; - setarray .@treasurey[0],231,231,231,231,231,231,230,230,230,230,230,230,225,225,225,225,225,225,224,224,224,224,224,224; - } - else { // Castles 3,4,5 are identical, except 4's treasure. - .@treasurebox = (strnpcinfo(2) == "arug_cas04")?1946:1945; - setarray .@treasurex[0],291,292,293,294,295,296,293,294,295,296,297,298,291,292,293,294,295,296,293,294,295,296,297,298; - setarray .@treasurey[0],276,276,276,276,276,276,274,274,274,274,274,274,272,272,272,272,272,272,269,269,269,269,269,269; - } - } - else { - if (strnpcinfo(2) == "schg_cas02") { - .@treasurebox = 1939; - setarray .@treasurex[0],249,250,251,252,253,246,247,248,249,250,250,251,252,253,246,247,248,249,250,249,250,251,252,253; - setarray .@treasurey[0],378,378,378,378,378,376,376,376,376,376,374,374,374,374,372,372,372,372,372,370,370,370,370,370; - } - else if (strnpcinfo(2) == "schg_cas03") { - .@treasurebox = 1940; - setarray .@treasurex[0],189,190,191,192,193,194,189,190,191,192,193,194,189,190,191,192,193,194,189,190,191,192,193,194; - setarray .@treasurey[0], 21, 21, 21, 21, 21, 21, 19, 19, 19, 19, 19, 19, 17, 17, 17, 17, 17, 17, 15, 15, 15, 15, 15, 15; - } - else { // Castles 1,4,5 are identical, except treasures. - if (strnpcinfo(2) == "schg_cas01") .@treasurebox = 1938; - else if (strnpcinfo(2) == "schg_cas04") .@treasurebox = 1941; - else .@treasurebox = 1942; - setarray .@treasurex[0],388,388,388,387,386,385,384,384,384,384,384,384,385,386,387,388,389,390,390,390,389,388,387,386; - setarray .@treasurey[0],388,389,390,390,390,390,389,388,387,386,385,384,384,384,384,384,384,384,385,386,386,386,386,386; - } - } - for(.@i = 0; .@i<4; ++.@i) - monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(0)+"::OnTreasureDied"; - for(.@i = 4; .@i<24; ++.@i) { - if (.@Treasure < .@i+1) break; - monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(0)+"::OnTreasureDied"; - } - freeloop(0); - end; - -OnTreasureDied: - end; -} - -// Guild Manager -//============================================================ -- script Steward#template -1,{ - .@GID = getcastledata(strnpcinfo(4),1); - if (!.@GID) { - mes "[ Steward ]"; - mes "I await for the master"; - mes "whom destiny will choose"; - mes "for me. Do you think you"; - mes "have to courage and strength"; - mes "to conquer this stronghold?"; - close; - } - if (getcharid(2) != .@GID || strcharinfo(0) != getguildmaster(.@GID)) { - mes "[ Steward ]"; - mes "Hmpf. Your threats don't"; - mes "scare me! Guardians, drive"; - mes "this infidel away from here!"; - mes "I will always be loyal to the"; - mes "master of this stronghold,"; - mes "the one and only ^FF0000"+getguildmaster(.@GID)+"^000000."; - close; - } - mes "[ Steward ]"; - mes "Ah, Master ^FF0000"+getguildmaster(.@GID)+"^000000..."; - mes "How shall I serve you today?"; - mes "Was there an aspect of this"; - mes "stronghold's maintenance"; - mes "you wanted to discuss?"; - next; - switch(select("Stronghold Briefing:Invest in Commercial Growth:Invest in Defense growth:Hire/Fire Storage Staff:Go to Master's room")) { - case 1: - mes "[ Steward ]"; - mes "The Commercial Growth"; - mes "Level of the stronghold is ^0000ff"+getcastledata(strnpcinfo(4),2)+"."; - if (getcastledata(strnpcinfo(4),4) > 0) { - mes "Last time, you invested in"; - mes "Commercial Growth "+getcastledata(strnpcinfo(4),4)+"."; - } - next; - mes "[ Steward ]"; - mes "Our stronghold's"; - mes "safeguard level is "+getcastledata(strnpcinfo(4),3)+"."; - if (getcastledata(strnpcinfo(4),5) > 0) { - mes "Last time, you invested"; - mes "in defense "+getcastledata(strnpcinfo(4),5)+" times."; - } - mes " "; - mes "That is all, master."; - close; - case 2: - .@Economy = getcastledata(strnpcinfo(4),2); - setarray .@cost[0],5000,10000,20000,35000,55000,80000,110000,145000,185000,230000,280000,335000,395000,460000,530000,605000,685000,770000,860000,955000; - .@j = 0; - for(.@i = 6; .@i<101; .@i += 5) { - if (.@Economy < .@i) { - .@eco_invest = .@cost[.@j]; - break; - } - ++.@j; - } - // Quadruple the cost of investing if you've already invested once. - if (getcastledata(strnpcinfo(4),4)) - .@eco_invest *= 4; - mes "[ Steward ]"; - mes "Raising the stronghold's"; - mes "commercial growth will"; - mes "increase the quantity of"; - mes "goods produced for the guild."; - mes "Investing in commercial growth"; - mes "will help the guild's future."; - next; - mes "[ Steward ]"; - mes "You can make one investment"; - mes "each day, but if you can make"; - mes "two investments if you pay"; - mes "more Zeny: this will speed"; - mes "up commercial development,"; - mes "but can be quite expensive."; - next; - if (.@Economy == 100) { - mes "[ Steward ]"; - mes "However, our stronghold's"; - mes "commerical growth level is"; - mes "at 100%. It's not possible to"; - mes "develop commercial growth"; - mes "any further than that."; - close; - } - if (getcastledata(strnpcinfo(4),4) >= 2) { - mes "[ Steward ]"; - mes "You've already made two"; - mes "investments today, so you'll"; - mes "have to wait until tomorrow"; - mes "to make another investment."; - close; - } - if (getcastledata(strnpcinfo(4),4) == 0) { - mes "[ Steward ]"; - mes "You must pay ^FF0000"+.@eco_invest+"^000000 Zeny"; - mes "to make an investment"; - mes "Will you invest in this"; - mes "stronghold's commerical"; - mes "development now?"; - } - else { - mes "[ Steward ]"; - mes "You must pay ^FF0000"+.@eco_invest+"^000000"; - mes "more Zeny to make a second"; - mes "investment today. Will you"; - mes "invest one more time?"; - } - next; - switch(select("Invest in Commercial Growth:Cancel")) { - case 1: - if (getcastledata(strnpcinfo(4),4) >= 2) { - mes "[ Steward ]"; - mes "You've already made two"; - mes "investments today, so you'll"; - mes "have to wait until tomorrow"; - mes "to make another investment."; - close; - } - if (Zeny < .@eco_invest) { - mes "[ Steward ]"; - mes "I'm sorry, Master, but"; - mes "you do not have enough"; - mes "Zeny to make an investment"; - mes "for the guild today."; - close; - } - Zeny -= .@eco_invest; - setcastledata strnpcinfo(4),4,getcastledata(strnpcinfo(4),4)+1; - mes "[ Steward ]"; - mes "A wise use of the guild's"; - mes "funds, Master. We can expect"; - mes "to see the results of this"; - mes "investment by tomorrow."; - close; - case 2: - mes "[ Steward ]"; - mes "As you command, Master."; - close; - } - case 3: - .@defence = getcastledata(strnpcinfo(4),3); - setarray .@cost[0],10000,20000,40000,70000,110000,160000,220000,290000,370000,460000,560000,670000,790000,920000,1060000,1210000,1370000,1540000,1720000,1910000; - .@j = 0; - for(.@i = 6; .@i<101; .@i += 5) { - if (.@defence < .@i) { - .@def_invest = .@cost[.@j]; - break; - } - ++.@j; - } - // Quadruple the cost of investing if you've already invested once. - if (getcastledata(strnpcinfo(4),5)) - .@def_invest *= 4; - mes "[ Steward ]"; - mes "Investing in our stronghold's"; - mes "defense will enhance the"; - mes "durability of our Guardians"; - mes "and the Emperium. We'll need"; - mes "every advantage to protect"; - mes "ourselves from our enemies."; - next; - mes "[ Steward ]"; - mes "You can invest in defense"; - mes "once per day, but if you pay"; - mes "more Zeny, you can invest"; - mes "a maximum of two times daily."; - next; - mes "[ Steward ]"; - if (getcastledata(strnpcinfo(4),3) == 100) { - mes "The Defense Level of this"; - mes "stronghold is 100%, and"; - mes "cannot be increased further."; - close; - } - if (getcastledata(strnpcinfo(4),5) >= 2) { - mes "Master, you've already"; - mes "invested in Defense twice"; - mes "today. You'll need to wait"; - mes "until tomorrow if you really"; - mes "want to increase our defenses."; - close; - } - if (getcastledata(strnpcinfo(4),5) == 0) { - mes "We need ^FF0000"+.@def_invest+"^000000"; - mes "Zeny to invest in our"; - mes "stronghold's defenses."; - mes "Will you invest now?"; - } - else { - mes "We need ^FF0000"+.@def_invest+"^000000"; - mes "Zeny to invest in our"; - mes "stronghold's defenses"; - mes "a second time today."; - mes "Will you invest now?"; - } - next; - switch(select("Invest in Defense:Cancel")) { - case 1: - if (getcastledata(strnpcinfo(4),5) >= 2) { - mes "[ Steward ]"; - mes "Master, you've already"; - mes "invested in Defense twice"; - mes "today. You'll need to wait"; - mes "until tomorrow if you really"; - mes "want to increase our defenses."; - close; - } - if (Zeny < .@def_invest) { - mes "[ Steward ]"; - mes "I'm sorry, Master, but"; - mes "you do not have enough"; - mes "Zeny to make an investment"; - mes "for the guild today."; - close; - } - Zeny -= .@def_invest; - setcastledata strnpcinfo(4),5,getcastledata(strnpcinfo(4),5)+1; - mes "[ Steward ]"; - mes "A wise use of the guild's"; - mes "funds, Master. Increasing"; - mes "the frequency of treasure"; - mes "procured by the guild will"; - mes "definitely help us all."; - close; - case 2: - mes "[ Steward ]"; - mes "As you command, Master."; - close; - } - case 4: - if (getcastledata(strnpcinfo(4),9) == 1) { - mes "[ Steward ]"; - mes "Do you wish to dismiss"; - mes "the Kafra Employee that"; - mes "we've hired for the guild?"; - next; - switch(select("Dismiss:Cancel")) { - case 1: - cutin "kafra_01",2; - mes "[ Hired Kafra Employee ]"; - mes "Master, please reconsider!"; - mes "I've been working very hard"; - mes "for the success of the guild!"; - mes "I'll try harder to serve the"; - mes "guild members of this"; - mes "stronghold, I promise!"; - next; - switch(select("Dismiss:Cancel")) { - case 1: - mes "[ Hired Kafra Employee ]"; - mes "Why?! What have I done"; - mes "to deserve this? Waaah~!"; - next; - cutin "kafra_01",255; - break; - case 2: - mes "[ Hired Kafra Employee ]"; - mes "Thank you, Master!"; - mes "I'll obey your every"; - mes "command as best I can!"; - mes "You won't regret this!"; - close; - } - break; - case 2: - mes "[ Steward ]"; - mes "She works very hard,"; - mes "in my opinion. It was in"; - mes "all of our best interests to"; - mes "allow her to stay with us."; - close; - } - disablenpc "Kafra Employee#"+strnpcinfo(2); - setcastledata strnpcinfo(4),9,0; - mes "[ Steward ]"; - mes "That Kafra Employee"; - mes "has been dismissed."; - mes "Were really dissatisfied"; - mes "by the quality of her service?"; - close; - } - else { - mes "[ Steward ]"; - mes "Will you hire a"; - mes "Kafra Employee to serve"; - mes "our stronghold? You must"; - mes "pay ^FF000010,000 Zeny^000000 to hire one."; - next; - switch(select("Hire:Cancel")) { - case 1: - if (getgdskilllv(.@GID,10001) == 0) { - mes "[ Steward ]"; - mes "Master, we cannot hire a"; - mes "Kafra Employee because"; - mes "you have not yet attained"; - mes "the ^FF0000Contract with Kafra^000000"; - mes "guild skill."; - close; - } - if (Zeny < 10000) { - mes "[ Steward ]"; - mes "Master, we cannot hire a"; - mes "Kafra Employee because"; - mes "we do not have enough"; - mes "funds to pay the contract fee."; - close; - } - Zeny -= 10000; - enablenpc "Kafra Employee#"+strnpcinfo(2); - setcastledata strnpcinfo(4),9,1; - mes "[ Steward ]"; - mes "Very well. We have formed"; - mes "a contract with the Kafra"; - mes "Head Office, and hired a"; - mes "Kafra Employee for our"; - mes "stronghold. Here she is~"; - next; - cutin "kafra_01",2; - mes "[ Hired Kafra Employee ]"; - mes "How do you do? I've"; - mes "been dispatched by the"; - mes "Kafra Head Office to"; - mes "serve your guild's needs."; - mes "I'll do my best to follow"; - mes "your every command, Master."; - next; - cutin "kafra_01",255; - mes "[ Steward ]"; - mes "Our contract will expire"; - mes "after one month, so we must"; - mes "pay additional fees to keep"; - mes "this Kafra Employee in"; - mes "the service of our guild."; - close; - case 2: - mes "[ Steward ]"; - mes "As you command, Master."; - mes "However, I suggest hiring"; - mes "a Kafra Employee as soon"; - mes "as possible since our guild"; - mes "would greatly benefit from"; - mes "the convenient Kafra services."; - close; - } - } - case 5: - mes "[ Steward ]"; - mes "Do you wish to enter the"; - mes "Guild Treasure Room?"; - mes "Only you, the Guild Master,"; - mes "are permitted to enter."; - next; - mes "[ Steward ]"; - mes "Please remember to open"; - mes "the Treasure Boxes at the"; - mes "proper time. Otherwise, the"; - mes "treasure may disappear if"; - mes "something unexpected happens."; - next; - switch(select("Go to Treasure Room:Cancel")) { - case 1: - mes "[ Steward ]"; - mes "Allow me to guide you"; - mes "on the secret path to"; - mes "the Treasure Room."; - mes "Press the secret switch"; - mes "when you wish to return here."; - close2; - if (compare(strnpcinfo(4),"arug")) { - if (strnpcinfo(4) == "arug_cas01") setarray .@i[0],250,363; - else if (strnpcinfo(4) == "arug_cas02") setarray .@i[0],382,227; - else setarray .@i[0],292,266; // Castles 3,4,5 are identical. - } - else { - if (strnpcinfo(4) == "schg_cas02") setarray .@i[0],249,373; - else if (strnpcinfo(4) == "schg_cas03") setarray .@i[0],190,16; - else setarray .@i[0],381,381; // Castles 1,4,5 are identical. - } - warp strnpcinfo(4),.@i[0],.@i[1]; - end; - case 2: - mes "[ Steward ]"; - mes "Items in the Treasure Room"; - mes "are produced once each day."; - mes "Therefore, you must obtain"; - mes "the treasure items everyday."; - mes "For the sake of the guild,"; - mes "prioritize treasure harvesting!"; - close; - } - } - -OnStop: - awake strnpcinfo(0); - end; - -OnStartArena: - .@GID = getcharid(2); - .@region$ = (compare(strnpcinfo(4),"arug"))?"Valfreyja":"Nithafjoll"; - // Lower castle Economy - .@Economy = getcastledata(strnpcinfo(4),2)-5; - if (.@Economy < 0) .@Economy = 0; - setcastledata strnpcinfo(4),2,.@Economy; - // Lower Castle Defence - .@defence = getcastledata(strnpcinfo(4),3)-5; - if (.@defence < 0) .@defence = 0; - setcastledata strnpcinfo(4),3,.@defence; - // Set new owner - setcastledata strnpcinfo(4),1,.@GID; - // Clear castle's data. - for(.@i = 4; .@i<10; ++.@i) - setcastledata strnpcinfo(4),.@i,0; - // Disable Kafra - disablenpc "Kafra Employee#"+strnpcinfo(2); - - announce "The ["+getguildname(.@GID)+"] guild conquered the ["+.@region$+" "+charat(strnpcinfo(2),3)+"] stronghold of "+getcastlename(strnpcinfo(4))+"!",bc_all|bc_woe; - mapannounce strnpcinfo(4),"The emperium has been shattered!",bc_map,"0x00FF00",FW_NORMAL,20,0,40; - donpcevent "Manager#"+strnpcinfo(4)+"::OnReset"; - maprespawnguildid strnpcinfo(4),getcastledata(strnpcinfo(4),1),2; - donpcevent "Manager#"+strnpcinfo(4)+"::OnRecvCastle2"; - donpcevent "::OnRecvCastle"+ strtoupper( substr( strnpcinfo(2), 0, 0 ) ) + substr( strnpcinfo(2), 1, getstrlen( strnpcinfo(2) ) -1 ); - sleep 10000; - if (agitcheck2()) { - donpcevent "Manager#"+strnpcinfo(4)+"::OnChange"; - mapannounce strnpcinfo(4),"Rebuild this stronghold's Guardian Stones and Fortress Gates to secure your guild's new aquisition!",bc_map,"0x00FF00",FW_NORMAL,20,0,40; - } - end; -} - -// Castle Guardians -//============================================================ -- script Guardian#template -1,{ - .@GID = getcastledata(strnpcinfo(4),1); - .@n$ = "["+strnpcinfo(1)+"]"; - if (!.@GID) { - mes .@n$; - mes "Great job. Now, all you"; - mes "need to do is destroy this"; - mes "Emperium to gain ownership"; - mes "over this stronghold."; - close; - } - if (getcharid(2) == .@GID) { - if (strcharinfo(0) != getguildmaster(.@GID)) { - mes .@n$; - mes "As guardian of this"; - mes "stronghold, I answer only"; - mes "to the master of the guild"; - mes "that controls this place."; - close; - } - else { - if (!agitcheck2()) { - mes .@n$; - mes "I am "+strnpcinfo(1)+", guardian of"; - mes "this stronghold. For now,"; - mes "all is quiet in this place."; - next; - switch(select("Converse:Cancel")) { - case 1: - mes .@n$; - mes "Do you have any questions"; - mes "about this stronghold?"; - next; - switch(select("Guardian Stones:Fortress Gates:Link Flags:Battle Strategy:Cancel")) { - case 1: - mes .@n$; - mes "There is one Emperium"; - mes "and two Guardian Stones in"; - mes "each fortress. These stones"; - mes "are the first line of defense,"; - mes "and must be destroyed before"; - mes "enemies can even enter."; - next; - mes .@n$; - mes "The stones are located in"; - mes "^4D4DFFGate Houses^000000 which must be"; - mes "protected to prevent enemies"; - mes "from reaching the Emperium."; - mes "Guardian Stones can ^4D4DFFrecall"; - mes "your Guardians^000000 for protection."; - next; - mes .@n$; - mes "Fortresses with higher levels"; - mes "of defense can summon more"; - mes "Guardians: this is why it is"; - mes "so important for guilds to"; - mes "invest in Defense Growth."; - next; - mes .@n$; - mes "Guardian Stones that have"; - mes "been destroyed can be revived"; - mes "after a certain time, but one of^FFFFFF ^000000 the guild members must give"; - mes "me the order. I can also report^FFFFFF ^000000 the status of the Guardian Stones."; - close; - case 2: - mes .@n$; - mes "^4D4DFFFortress Gates^000000 are the second ^FFFFFF ^000000 line of guild stronghold defense,"; - mes "and are protected by extra barricades activated by the Guardian Stones."; - mes "These gates are located in three different parts of the fortress."; - next; - mes .@n$; - mes "Barricades are protected by"; - mes "Guardian Stones, and are"; - mes "restored when the Guardian"; - mes "Stones are retrieved. However,"; - mes "it is not as easy to restore"; - mes "destroyed Fortress Gates."; - next; - mes .@n$; - mes "Fortress Gates can only be"; - mes "restored when the ^4D4DFFguild"; - mes "master of a stronghold"; - mes "changes^000000, or if ^4D4DFFrestoration"; - mes "is requested by the guild"; - mes "master of the stronghold^000000."; - close; - case 3: - mes .@n$; - mes "Strongholds have many"; - mes "Link Flags that allow you"; - mes "to access vital areas within"; - mes "restrictions placed by the"; - mes "Barricades. Usually, ^4D4DFFFlag 1"; - mes "links to the Gate House^000000."; - next; - mes .@n$; - mes "Many flags link directly to"; - mes "the flag near the Emperium."; - mes "The final numbered flag is"; - mes "linked to the Convenience"; - mes "Facility of the stronghold's"; - mes "owner. Keep this in mind."; - close; - case 4: - mes .@n$; - mes "Strategy? It would be better"; - mes "to develop your battle plan to"; - mes "exploit your guild's advantages"; - mes "and your enemies' weaknesses."; - mes "Use the Gate Houses and Barricades, and rebuild as quickly as you can!"; - close; - case 5: - mes .@n$; - mes "You have no questions"; - mes "to ask of me? Well, I'm"; - mes "here to serve your needs."; - close; - } - case 2: - mes .@n$; - mes "I'm always here, so"; - mes "feel free to request my"; - mes "assistance whenever"; - mes "the need arises."; - close; - } - } - else { - mes .@n$; - mes "Greetings, "+strcharinfo(0)+"."; - mes "What are your orders?"; - next; - switch(select("Increase Stronghold Defense:Situational Briefing:Cancel")) { - case 1: - if (!getd("$agit_"+strnpcinfo(2)+"[5]")) { - if (getgdskilllv(.@GID,10002) == 0) { - mes .@n$; - mes "I'm sorry, but the Guardian"; - mes "Stones aren't powerful enough"; - mes "to summon Guardians yet. We"; - mes "need to accumulate more"; - mes "knowledge before they can"; - mes "summon any Guardians."; - close; - } - else { - mes .@n$; - mes "I shall endeavor to summon"; - mes "a Guardian through a Guardian"; - mes "Stone. However, keep in mind"; - mes "that this will not work if the"; - mes "Guardian Stone is destroyed."; - setd "$agit_"+strnpcinfo(2)+"[5]",1; - if (!getd("$agit_"+strnpcinfo(2)+"[0]")) - donpcevent "gard1#"+strnpcinfo(4)+"::OnEnable"; - if (!getd("$agit_"+strnpcinfo(2)+"[1]")) - donpcevent "gard2#"+strnpcinfo(4)+"::OnEnable"; - close; - } - } - else { - mes .@n$; - mes "You've already commanded"; - mes "me to summon a Guardian"; - mes "to defend the stronghold."; - close; - } - case 2: - mes .@n$; - mes "Our defense status is..."; - setarray .@status$[0],"^4D4DFFOperational","^FF0000Destroyed","^008000Repairing"; - mes "1st Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[0]")]+"^000000"; - mes "2nd Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[1]")]+"^000000"; - mes "1st Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[2]")]+"^000000"; - mes "2nd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[3]")]+"^000000"; - mes "3rd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[4]")]+"^000000"; - close; - case 3: - mes .@n$; - mes "I'll be standing by,"; - mes "awaiting your orders."; - close; - } - } - } - } - else { - mes .@n$; - mes "Who are you? Scoundrel!"; - mes "Leave this stronghold now!"; - close; - } - -OnInit: - setarray getd("$agit_"+strnpcinfo(2)+"[0]"),0,0,0,0,0,0; - end; -} - -// Guild Kafras -//============================================================ -- script Kafra#template -1,{ - cutin "kafra_01",2; - .@GID = getcastledata(strnpcinfo(4),1); - if (getcharid(2) == .@GID && getgdskilllv(.@GID,10001)) { - mes "[Kafra Employee]"; - mes "Welcome, proud member"; - mes "of the ^FF0000"+getguildname(.@GID)+"^000000 Guild!"; - mes "The Kafra Corporation is ready"; - mes "to assist you wherever you go!"; - next; - switch(select("Use Storage:Use Warp Service:Rent Pushcart:Cancel")) { - case 1: - if (basicskillcheck() && getskilllv("NV_BASIC") < 6) { - mes "[Kafra Employee]"; - mes "I'm so sorry, but you must"; - mes "have at least Novice Skill"; - mes "Lv.6 to use the Storage."; - } - else openstorage; - break; - case 2: - mes "[Kafra Employee]"; - mes "Please tell me your"; - mes "Warp destination."; - next; - switch(select("Rachel -> 200 z:Cancel")) { - case 1: - if (Zeny < 200) { - mes "[Kafra Employee]"; - mes "I'm sorry, but you don't"; - mes "have enough Zeny to pay"; - mes "the warp fee. Would you"; - mes "please check your funds again?"; - close2; - cutin "kafra_01",255; - end; - } - Zeny -= 200; - warp "rachel",115,125; - end; - case 2: - cutin "kafra_01",255; - break; - } - break; - case 3: - if (BaseClass != Job_Merchant) { - mes "[Kafra Employee]"; - mes "I'm sorry, but the Pushcart"; - mes "rental service can only be"; - mes "used by Merchant, Blacksmith,"; - mes "and Alchemist class characters."; - } - else if (checkcart() == 1) { - mes "[Kafra Employee]"; - mes "Hm? You've already"; - mes "rented a Pushcart."; - } - else { - mes "[Kafra Employee]"; - mes "The Pushcart rental fee"; - mes "is 800 Zeny. Would you"; - mes "like to rent a Pushcart?"; - next; - switch(select("Rent Pushcart:Cancel")) { - case 1: - if (Zeny < 800) { - mes "[Kafra Employee]"; - mes "I'm sorry, but you don't"; - mes "have enough Zeny to rent"; - mes "one of our Pushcarts."; - close2; - cutin "kafra_01",255; - end; - } - Zeny -= 800; - setcart; - break; - case 2: - break; - } - } - break; - case 4: - mes "[Kafra Employee]"; - mes "Thank you for using the"; - mes "Kafra Service. Wherever"; - mes "you go, Kafra will be"; - mes "there to support you!"; - close2; - cutin "kafra_01",255; - end; - } - close2; - cutin "kafra_01",255; - end; - } - else { - mes "[Kafra Employee]"; - mes "I'm sorry, but I've been"; - mes "exclusively contracted"; - mes "to the members of the"; - mes "^FF0000"+getguildname(.@GID)+"^000000 Guild."; - mes "You'll have to ask another"; - mes "Kafra Employee to help you..."; - close2; - cutin "kafra_01",255; - end; - } -} - -// Guardian Stones (2) -//============================================================ -- script Guardian Stone#template -1,{ - .@GID = getcastledata(strnpcinfo(4),1); - .@num = atoi(charat(strnpcinfo(1),0)); - .@var$ = "$agit_"+strnpcinfo(2); - if (getcharid(2) == .@GID) { - mes "^3355FFYou will need the"; - mes "following materials to"; - mes "rebuild a destroyed"; - mes "Guardian Stone.^000000"; - next; - mes "1 Oridecon"; - mes "1 Elunium"; - mes "30 Stones"; - mes "5 Blue Gemstones"; - mes "5 Yellow Gemstones"; - mes "5 Red Gemstones"; - next; - mes "^3355FFDo you want to continue?^000000"; - next; - if(select("No:Continue") == 1) { - mes "^3355FFWork canceled.^000000"; - close; - } - if ((countitem(984) > 0) && (countitem(985) > 0) && (countitem(7049) > 29) && (countitem(717) > 4) && (countitem(715) > 4) && (countitem(716) > 4)) { - mes "^3355FFArrange Stones, Elunium, and"; - mes "Oridecon, in that order, in the"; - mes "center. Then you must arrange"; - mes "the enchanted Gemstones to"; - mes "rebuild the Guardian Stone.^000000"; - next; - setarray .@stone$[0],"Elunium","Oridecon","Stones"; - .@i = select("Elunium:Oridecon:Stone")-1; - if (.@i == 2) .@nice += 10; - mes "^3355FF"+.@stone$[.@i]+" has been"; - mes "placed in the center.^000000"; - next; - .@i = select("Elunium:Oridecon:Stone")-1; - if (.@i == 0) .@nice += 10; - mes "^3355FFYou have lined the"; - mes "outside of the center"; - mes "with some "+.@stone$[.@i]+".^000000"; - next; - .@i = select("Elunium:Oridecon:Stone")-1; - if (.@i == 1) .@nice += 10; - mes "^3355FFYou covered the"; - mes "rest of the materials"; - mes "with some "+.@stone$[.@i]+".^000000"; - next; - mes "^3355FFNow you need to arrange"; - mes "the enchanted Gemstones"; - mes "accordingly. You can identify"; - mes "their Magic properties by"; - mes "their casting effect.^000000"; - next; - setarray .@effect[0],56,54,225; - setarray .@color$[0],"Red","Yellow","Blue"; - while(1) { - if (.@roof0 > 7) break; - .@i = rand(3); - specialeffect .@effect[.@i]; - mes "^3355FFThe Gemstones must"; - mes "be arranged in the correct"; - mes "order according to their"; - mes "magic properties and power.^000000"; - next; - .@j = select("Red Gemstone:Yellow Gemstone:Blue Gemstone")-1; - mes "^3355FFYou placed the "+.@color$[.@j]+" Gemstone.^000000"; - if (.@i == .@j) { - mes "^3355FFHowever, the Guardian Stone"; - mes "Repair System failed because"; - mes "of a magic power conflict.^000000"; - close; - } - .@nice += 10; - ++.@roof0; - specialeffect EF_STEAL; - next; - } - if (.@nice > 90) { - if (!getd(.@var$+"["+(.@num-1)+"]")) { - mes "^3355FFThe Guardian Stone"; - mes "Repair System has"; - mes "already completed.^000000"; - close; - } - else { - if (!agitcheck2()) { - mes "^3355FFIt is impossible to"; - mes "rebuild the Guardian"; - mes "Stone because the"; - mes "Emperium is not present.^000000"; - close; - } - else { - mes "^3355FFThe Gemstones have been"; - mes "arranged, and the Guardian"; - mes "Stone is successfully repaired.^000000"; - delitem 984,1; //Oridecon - delitem 985,1; //Elunium - delitem 7049,30; //Stone - delitem 717,5; //Blue_Gemstone - delitem 715,5; //Yellow_Gemstone - delitem 716,5; //Red_Gemstone - close2; - donpcevent "df"+.@num+"#"+strnpcinfo(4)+"::OnEnable"; - specialeffect EF_ICECRASH; - disablenpc strnpcinfo(0); - setd .@var$+"["+(.@num-1)+"]",0; - .@df_all = getd(.@var$+"[0]")+getd(.@var$+"[1]"); - if (!.@df_all) { - mapannounce strnpcinfo(4),"Both Guardian Stones have been erected, bolstering this stronghold's defenses!",bc_map,"0x00ff00"; - donpcevent "RL0#"+strnpcinfo(4)+"::OnEnable"; - } - else mapannounce strnpcinfo(4),"The "+strnpcinfo(1)+" has been repaired successfully.",bc_map,"0x00ff00"; - if (getd(.@var$+"[5]") == 1) - donpcevent "gard"+.@num+"#"+strnpcinfo(4)+"::OnEnable"; - end; - } - } - } - else { - mes "^3355FFAfter all of that work..."; - mes "It looks like you failed"; - mes "to fix the Guardian Stone,"; - mes "and lost some materials.^000000"; - delitem 7049,10; //Stone - delitem 717,2; //Blue_Gemstone - delitem 715,2; //Yellow_Gemstone - delitem 716,2; //Red_Gemstone - close; - } - } - else { - mes "^3355FFYou don't have enough"; - mes "materials to repair"; - mes "the Guardian Stone.^000000"; - close; - } - } - end; - -OnInit: -OnDisable: - disablenpc strnpcinfo(0); - end; - -OnEnable: - enablenpc strnpcinfo(0); - specialeffect EF_MAPPILLAR2; - end; -} - -// Control Devices (3) -//============================================================ -- script Control#template -1,{ - .@GID = getcastledata(strnpcinfo(4),1); - .@num = atoi(charat(strnpcinfo(1),15)); - .@var$ = "$agit_"+strnpcinfo(2); - if (getcharid(2) == .@GID) { - if (strcharinfo(0) == getguildmaster(.@GID)) { - if (getd(.@var$+"["+(.@num+1)+"]") == 2) { - mes "^3355FFDemolished Fortress"; - mes "Gates can be repaired,"; - mes "but you will need to gather"; - mes "the following materials.^000000"; - next; - mes "^4D4DFF10 Steel^000000,"; - mes "^4D4DFF30 Trunks^000000,"; - mes "^4D4DFF5 Oridecon^000000, and"; - mes "^4D4DFF10 Emveretarcon^000000."; - next; - select("Continue"); - if ((countitem(1019) > 29) && (countitem(999) > 9) && (countitem(1011) > 9) && (countitem(984) > 4)) { - mes "^3355FFYou will need Trunks to"; - mes "repair the support frame,"; - mes "Oridecon to enhance the"; - mes "gate's endurance, and"; - mes "Emveretarcon to basically"; - mes "hold everything together.^000000"; - next; - .@ro_of01 = rand(10,15); - while(1) { - if (.@ro_of02 == .@ro_of01) break; - else { - switch(rand(1,4)) { - case 1: - mes "^3355FFThe support frame"; - mes "is badly damaged:"; - mes "fixing this part"; - mes "is a top priority.^000000"; - next; - switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { - case 1: - mes "^3355FFThe frame has been"; - mes "reinforced with wood.^000000"; - ++.@rp_temp; - ++.@ro_of02; - specialeffect2 EF_REPAIRWEAPON; - next; - break; - case 2: - mes "^3355FFYou tried using steel,"; - mes "but it's not working very"; - mes "well. You'll have to try"; - mes "something else.^000000"; - close; - case 3: - mes "^3355FFYou tried using emveretarcon"; - mes "to reinforce the gate, but it's"; - mes "not working well at all."; - mes "You'll have to start over.^000000"; - close; - case 4: - mes "^3355FFYou tried using oridecon,"; - mes "but it's not working very"; - mes "well. You'll have to try"; - mes "something else.^000000"; - close; - } - break; - case 2: - mes "^3355FFIt looks like the gate's"; - mes "overall endurance needs to"; - mes "be reinforced with something.^000000"; - next; - switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { - case 1: - mes "^3355FFYou tried using wood"; - mes "to reinforce the gate.^000000"; - ++.@ro_of02; - next; - break; - case 2: - mes "^3355FFYou tried using steel"; - mes "to reinforce the gate, but"; - mes "it's not working well at all."; - mes "You'll have to start over.^000000"; - close; - case 3: - mes "^3355FFYou tried using emveretarcon"; - mes "to reinforce the gate, but it's"; - mes "not working well at all."; - mes "You'll have to start over.^000000"; - close; - case 4: - mes "^3355FFYou hammered the"; - mes "oridecon: it looks"; - mes "like this will work.^000000"; - ++.@rp_temp; - ++.@ro_of02; - specialeffect2 EF_REPAIRWEAPON; - next; - break; - } - break; - case 3: - mes "^3355FFThe damage to the gate"; - mes "has caused all these"; - mes "cracks. You'll have to"; - mes "weld them solid somehow.^000000"; - next; - switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { - case 1: - mes "^3355FFYou tried using wood to fix"; - mes "this problem, but it seems"; - mes "to have made it worse."; - mes "You'll have to start all over.^000000"; - close; - case 2: - mes "^3355FFYou used steel to weld"; - mes "all the cracks: the gate is"; - mes "is starting to look more solid.^000000"; - ++.@rp_temp; - ++.@ro_of02; - specialeffect2 EF_REPAIRWEAPON; - next; - break; - case 3: - mes "^3355FFYou tried using emveretarcon"; - mes "to reinforce the gate, but it's"; - mes "not working well at all."; - mes "You'll have to start over.^000000"; - close; - case 4: - mes "^3355FFYou tried using oridecon,"; - mes "but it's not working very"; - mes "well. You'll have to try"; - mes "something else.^000000"; - close; - } - break; - case 4: - mes "^3355FFNow you need to make"; - mes "sure that the gate is held"; - mes "together pretty solidly.^000000"; - next; - switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { - case 1: - mes "^3355FFYou tried using wood to fix"; - mes "this problem, but it seems"; - mes "to have made it worse."; - mes "You'll have to start all over.^000000"; - close; - case 2: - mes "^3355FFYou tried using steel,"; - mes "but it's not working very"; - mes "well. You'll have to try"; - mes "something else.^000000"; - close; - case 3: - mes "^3355FFYou successfully used"; - mes "the emveretarcon to repair"; - mes "much of the gate's damage.^000000"; - ++.@rp_temp; - ++.@ro_of02; - specialeffect2 EF_REPAIRWEAPON; - next; - break; - case 4: - mes "^3355FFYou tried using oridecon,"; - mes "but it's not working very"; - mes "well. You'll have to try"; - mes "something else.^000000"; - close; - } - } - } - } - mes "^3355FFWell, it looks like"; - mes "you're just about done"; - mes "with repairing the gate.^000000"; - next; - if (!agitcheck2()) { - mes "^3355FFUnfortunately, the Fortress"; - mes "Gate can't be reconstructed:"; - mes "the Emperium is no longer here.^000000"; - close; - } - else { - if (.@rp_temp == .@ro_of01) { - mes "^3355FFThe Fortress Gate has"; - mes "been successfully repaired!^000000"; - delitem 1019,30; //Wooden_Block - delitem 999,10; //Steel - delitem 1011,10; //Emveretarcon - delitem 984,5; //Oridecon - close2; - donpcevent "RL"+.@num+"#"+strnpcinfo(4)+"::OnEnable"; - disablenpc strnpcinfo(0); - if (.@num == 1) .@str$ = "1st"; - else if (.@num == 2) .@str$ = "2nd"; - else if (.@num == 3) .@str$ = "3rd"; - mapannounce strnpcinfo(4),"The "+.@str$+" Fortress Gate has been reconstructed!",bc_map,"0x00ff00"; - if (.@num == 1) setd .@var$+"[2]",0; - else { - setarray getd(.@var$+"["+.@num+"]"),2,0; - donpcevent "Control Device0"+(.@num-1)+"#"+strnpcinfo(2)+"::OnEnable"; - } - end; - } - else { - mes "^3355FFThe wall has been breached,"; - mes "and the attempt to repair the"; - mes "Fortress Gate has failed."; - mes "You lost some of your"; - mes "repair resources...^000000"; - delitem 984,2; //Oridecon - delitem 999,4; //Steel - delitem 1019,14; //Wooden_Block - delitem 1011,3; //Emveretarcon - close; - } - } - } - else { - mes "^3355FFYou can't attempt to repair"; - mes "the Fortress Gate if you don't"; - mes "have all the needed materials.^000000"; - close; - } - } - } - } - end; - -OnInit: -OnDisable: - disablenpc strnpcinfo(0); - end; - -OnEnable: - enablenpc strnpcinfo(0); - end; -} - -// Guardian Summoners (2) -//============================================================ -- script gard#template -1,{ -OnEnable: - // .@x[i],.@y[i]: Normal coordinates, #0-21. - // .@w[x],.@w[y]: Special coordinates if 'defence' is under 11. - if (compare(strnpcinfo(2),"arug")) { - if (strnpcinfo(2) == "arug_cas01") { - setarray .@w[0],195,250,292,188; - setarray .x[0],233,252,232,201,224,196,269,252,201,224,222, 294,256,240,246,235,235,246,240,256,254,242; - setarray .y[0], 83, 81,108,130,168,137, 89, 81,130,168,129, 210,203,133, 92,132,132, 92,133,203, 95,151; - } - else if (strnpcinfo(2) == "arug_cas02") { - setarray .@w[0],20,169,268,169; - setarray .x[0],104,67,67,113,122,67, 90, 91,122, 20,67, 175,204,211,209,161,186,183,150,161,209,211; - setarray .y[0], 32,36,85, 87,112,60,167,119,112,169,85, 31, 32, 63, 88, 91,170,121,110, 91, 88, 63; - } - else { // Castles 3,4,5 are identical. - setarray .@w[0],66,157,211,159; - setarray .x[0],130,128,128,128,110,91,65, 65,110,128,128, 156,172,154,156,155,187,212,211,155,156,172; - setarray .y[0], 60, 77, 90,100, 96,53,71,103, 96,100, 77, 101, 95, 90, 77, 60, 54, 67,105, 60, 77, 95; - } - } - else { - if (strnpcinfo(2) == "schg_cas02") { - setarray .@w[0],337,95,307,222; - setarray .x[0],326,337,334,296,285,236,285,296,334,337,334, 359,300,337,317,307,300,337,317,307,359,236; - setarray .y[0], 83, 95,119, 82, 40, 41, 40, 82,119, 95,119, 85,119,154,183,222,119,154,183,222, 85, 41; - } - else if (strnpcinfo(2) == "schg_cas03") { - setarray .@w[0],306,325,364,305; - setarray .x[0],323,273,288,306,323,323,273,288,306,273,273, 338,364,365,317,338,338,364,365,317,364,329; - setarray .y[0],308,309,306,326,308,308,309,306,325,309,309, 309,305,261,318,310,309,305,261,318,305,314; - } - else { // Castles 1,4,5 are identical. - setarray .@w[0],108,32,128,42,187,15; // Contains an extra pair, for whatever reason. - setarray .x[0],111,109,65,110,88,64,47,109,111,112,120, 130,129,151,187,128,152,187,128,130,130,151; - setarray .y[0], 18, 44,22, 40,20,40,43, 48, 18, 32, 37, 22, 47, 18, 15, 42, 43, 15, 42, 22, 28, 18; - } - } - if (charat(strnpcinfo(1),4) == "2") - .@z = 11; - freeloop(1); - .@defence = getcastledata(strnpcinfo(2),3); - callsub OnSummon,.@z; - if (.@defence > 70) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),5; - else if (.@defence > 50) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),4; - else if (.@defence > 30) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),3; - else if (.@defence > 10) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),2; - if (.@w[4] && .@z) - guardian strnpcinfo(2),.@w[4],.@w[5],"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied"; - else if (.@defence < 11) { - set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),2; - .@i = (.@z)?2:0; - guardian strnpcinfo(2),.@w[.@i],.@w[.@i+1],"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied"; - } - else for(.@i = 1; .@i=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; -} diff --git a/npc/guild2/arug_cas01.txt b/npc/guild2/arug_cas01.txt deleted file mode 100644 index be190c77f..000000000 --- a/npc/guild2/arug_cas01.txt +++ /dev/null @@ -1,75 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Mardol -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#arug_cas01 -1 -- duplicate(gard#template) gard1#arug_cas01 -1 -- duplicate(gard#template) gard2#arug_cas01 -1 -- duplicate(df#template) df1#arug_cas01 -1 -- duplicate(df#template) df2#arug_cas01 -1 -- duplicate(RL#template) RL0#arug_cas01 -1 -- duplicate(RL#template) RL1#arug_cas01 -1 -- duplicate(RL#template) RL2#arug_cas01 -1 -- duplicate(RL#template) RL3#arug_cas01 -1 - -arug_cas01,92,380,3 duplicate(Steward#template) Steward#ar01 1_M_JOBTESTER -arug_cas01,112,193,1 duplicate(Guardian#template) Brace#ar01 4_M_LGTGUARD -arug_cas01,31,362,3 duplicate(Kafra#template) Kafra Employee#ar01 4_F_KAFRA1 -arug_cas01,211,234,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar01 CLEAR_NPC -arug_cas01,308,189,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar01 CLEAR_NPC -arug_cas01,247,52,0 duplicate(Control#template) Control Device01#ar01 HIDDEN_NPC -arug_cas01,118,131,0 duplicate(Control#template) Control Device02#ar01 HIDDEN_NPC -arug_cas01,82,172,0 duplicate(Control#template) Control Device03#ar01 HIDDEN_NPC -arug_cas01,259,371,0 duplicate(Switch#template) #aru01_switch HIDDEN_NPC -arug_cas01,157,345,3 duplicate(Sunflower#template) Mysterious Sunflower#06 4_RED_FLOWER - -arug_cas01,74,232,0 script LF-01#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",158,237,"Second Gate House",297,248; } -arug_cas01,77,232,0 script LF-02#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",197,144,"Defense Area 1-2",245,103; } -arug_cas01,80,232,0 script LF-03#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",256,35,"Defense Area 2-2",186,26; } -arug_cas01,83,232,0 script LF-04#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",146,65,"Defense Area 2-4",176,111; } -arug_cas01,86,232,0 script LF-05#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",94,126,"Defense Area 3-2",126,126; } -arug_cas01,89,232,0 script LF-06#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-3",68,171,"Defense Area 3-4",105,182; } -arug_cas01,92,232,0 script LF-07#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Gate House Fork",233,130; } -arug_cas01,95,232,0 script LF-08#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",197,144,"Area 2-1",256,35,"Area 3-1",146,65; } -arug_cas01,98,232,0 script LF-09#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",245,103,"Area 2-2",186,26,"Area 3-3",68,171; } -arug_cas01,101,232,0 script LF-10#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",121,357; } -arug_cas01,72,176,0 script Mardol#LF_ar01_1::LF_ar01_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",67,193; } -arug_cas01,103,186,0 duplicate(LF_ar01_1) Mardol#LF_ar01_2 HIDDEN_NPC -arug_cas01,92,126,4 script Mardol#LF_ar01_3::LF_ar01_2 HIDDEN_NPC,{ - callfunc "LinkFlag","Emperium Center",67,193; - end; -OnAgitInit2: -OnRecvCastleAr01: - flagemblem getcastledata("arug_cas01",1); - end; -} -arug_cas01,127,126,4 duplicate(LF_ar01_2) Mardol#LF_ar01_3 HIDDEN_NPC -arug_cas01,150,102,0 duplicate(LF_ar01_1) Mardol#LF_ar01_4 HIDDEN_NPC -arug_cas01,208,68,0 duplicate(LF_ar01_1) Mardol#LF_ar01_5 HIDDEN_NPC -arug_cas01,249,52,0 duplicate(LF_ar01_1) Mardol#LF_ar01_6 HIDDEN_NPC -arug_cas01,234,76,0 duplicate(LF_ar01_1) Mardol#LF_ar01_7 HIDDEN_NPC -arug_cas01,249,76,0 duplicate(LF_ar01_1) Mardol#LF_ar01_8 HIDDEN_NPC -arug_cas01,204,142,0 duplicate(LF_ar01_1) Mardol#LF_ar01_9 HIDDEN_NPC -arug_cas01,183,244,0 duplicate(LF_ar01_1) Mardol#LF_ar01_10 HIDDEN_NPC -arug_cas01,292,219,0 duplicate(LF_ar01_1) Mardol#LF_ar01_11 HIDDEN_NPC -arug_cas01,102,120,4 duplicate(LF_ar01_2) Mardol#LF_ar01_12 GUILD_FLAG -arug_cas01,117,120,4 duplicate(LF_ar01_2) Mardol#LF_ar01_13 GUILD_FLAG -arug_cas01,233,140,4 duplicate(LF_ar01_2) Mardol#LF_ar01_14 GUILD_FLAG - -aru_gld,164,270,4 script Mardol#flag_Ar01_1::Ar01_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas01",1; - end; -OnAgitInit2: -OnRecvCastleAr01: - flagemblem getcastledata("arug_cas01",1); - end; -} -aru_gld,142,235,4 duplicate(Ar01_Flag) Mardol#flag_Ar01_2 GUILD_FLAG -aru_gld,164,245,5 duplicate(Ar01_Flag) Mardol#flag_Ar01_3 GUILD_FLAG -aru_gld,182,255,5 duplicate(Ar01_Flag) Mardol#flag_Ar01_4 GUILD_FLAG diff --git a/npc/guild2/arug_cas02.txt b/npc/guild2/arug_cas02.txt deleted file mode 100644 index bf7f639eb..000000000 --- a/npc/guild2/arug_cas02.txt +++ /dev/null @@ -1,80 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Cyr -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#arug_cas02 -1 -- duplicate(gard#template) gard1#arug_cas02 -1 -- duplicate(gard#template) gard2#arug_cas02 -1 -- duplicate(df#template) df1#arug_cas02 -1 -- duplicate(df#template) df2#arug_cas02 -1 -- duplicate(RL#template) RL0#arug_cas02 -1 -- duplicate(RL#template) RL1#arug_cas02 -1 -- duplicate(RL#template) RL2#arug_cas02 -1 -- duplicate(RL#template) RL3#arug_cas02 -1 - -arug_cas02,303,341,3 duplicate(Steward#template) Steward#ar02 1_M_JOBTESTER -arug_cas02,38,259,5 duplicate(Guardian#template) Yumenes#ar02 4_M_LGTGUARD -arug_cas02,354,326,3 duplicate(Kafra#template) Kafra Employee#ar02 4_F_KAFRA1 -arug_cas02,33,168,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar02 CLEAR_NPC -arug_cas02,245,168,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar02 CLEAR_NPC -arug_cas02,143,228,0 duplicate(Control#template) Control Device01#ar02 HIDDEN_NPC -arug_cas02,118,356,0 duplicate(Control#template) Control Device02#ar02 HIDDEN_NPC -arug_cas02,56,308,0 duplicate(Control#template) Control Device03#ar02 HIDDEN_NPC -arug_cas02,386,227,0 duplicate(Switch#template) #aru02_switch HIDDEN_NPC -arug_cas02,350,294,3 duplicate(Sunflower#template) Mysterious Sunflower#07 4_RED_FLOWER - -arug_cas02,98,270,0 script LF-01#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",10,187,"Second Gate House",268,187; } -arug_cas02,98,266,0 script LF-02#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",66,31,"Defense Area 1-2",212,31; } -arug_cas02,98,262,0 script LF-03#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",90,120,"Defense Area 1-4",188,119; } -arug_cas02,98,258,0 script LF-04#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",119,183,"Defense Area 2-2",159,183; } -arug_cas02,98,253,0 script LF-05#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",156,324,"Defense Area 2-4",174,372; } -arug_cas02,98,249,0 script LF-06#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",28,325,"Defense Area 3-2",57,325; } -arug_cas02,98,245,0 script LF-07#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Center 2nd Area",156,263,"Center 3rd Area",43,354; } -arug_cas02,98,241,0 script LF-08#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",387,323; } -arug_cas02,216,92,0 script Cyr#LF_ar02_1::LF_ar02_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",43,256; } -arug_cas02,63,92,0 duplicate(LF_ar02_1) Cyr#LF_ar02_2 HIDDEN_NPC -arug_cas02,127,133,4 duplicate(LF_ar02_1) Cyr#LF_ar02_3 HIDDEN_NPC -arug_cas02,152,133,4 duplicate(LF_ar02_1) Cyr#LF_ar02_4 HIDDEN_NPC -arug_cas02,149,218,0 duplicate(LF_ar02_1) Cyr#LF_ar02_5 HIDDEN_NPC -arug_cas02,162,218,0 duplicate(LF_ar02_1) Cyr#LF_ar02_6 HIDDEN_NPC -arug_cas02,128,350,0 duplicate(LF_ar02_1) Cyr#LF_ar02_7 HIDDEN_NPC -arug_cas02,128,341,0 duplicate(LF_ar02_1) Cyr#LF_ar02_8 HIDDEN_NPC -arug_cas02,49,317,0 duplicate(LF_ar02_1) Cyr#LF_ar02_9 HIDDEN_NPC -arug_cas02,30,317,0 duplicate(LF_ar02_1) Cyr#LF_ar02_10 HIDDEN_NPC -arug_cas02,9,190,0 duplicate(LF_ar02_1) Cyr#LF_ar02_11 HIDDEN_NPC -arug_cas02,271,190,0 duplicate(LF_ar02_1) Cyr#LF_ar02_12 HIDDEN_NPC -arug_cas02,129,178,4 script Cyr#LF_ar02_13::LF_ar02_2 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",43,256; - end; -OnAgitInit2: -OnRecvCastleAr02: - flagemblem getcastledata("arug_cas02",1); - end; -} -arug_cas02,149,178,4 duplicate(LF_ar02_2) Cyr#LF_ar02_14 GUILD_FLAG -arug_cas02,132,38,4 duplicate(LF_ar02_2) Cyr#LF_ar02_15 GUILD_FLAG -arug_cas02,147,38,4 duplicate(LF_ar02_2) Cyr#LF_ar02_16 GUILD_FLAG - -aru_gld,80,41,6 script Cyr#flag_Ar02_1::Ar02_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas02",1; - end; -OnAgitInit2: -OnRecvCastleAr02: - flagemblem getcastledata("arug_cas02",1); - end; -} -aru_gld,80,52,6 duplicate(Ar02_Flag) Cyr#flag_Ar02_2 GUILD_FLAG -aru_gld,120,83,5 script Cyr#flag_Ar02_3 GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas02",0; - end; -OnAgitInit2: -OnRecvCastleAr02: - flagemblem getcastledata("arug_cas02",1); - end; -} diff --git a/npc/guild2/arug_cas03.txt b/npc/guild2/arug_cas03.txt deleted file mode 100644 index 0a1665566..000000000 --- a/npc/guild2/arug_cas03.txt +++ /dev/null @@ -1,72 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Horn -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#arug_cas03 -1 -- duplicate(gard#template) gard1#arug_cas03 -1 -- duplicate(gard#template) gard2#arug_cas03 -1 -- duplicate(df#template) df1#arug_cas03 -1 -- duplicate(df#template) df2#arug_cas03 -1 -- duplicate(RL#template) RL0#arug_cas03 -1 -- duplicate(RL#template) RL1#arug_cas03 -1 -- duplicate(RL#template) RL2#arug_cas03 -1 -- duplicate(RL#template) RL3#arug_cas03 -1 - -arug_cas03,328,98,3 duplicate(Steward#template) Steward#ar03 1_M_JOBTESTER -arug_cas03,146,315,3 duplicate(Guardian#template) Yehsus#ar03 4_M_LGTGUARD -arug_cas03,315,98,5 duplicate(Kafra#template) Kafra Employee#ar03 4_F_KAFRA1 -arug_cas03,65,171,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar03 CLEAR_NPC -arug_cas03,212,149,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar03 CLEAR_NPC -arug_cas03,136,158,0 duplicate(Control#template) Control Device01#ar03 HIDDEN_NPC -arug_cas03,135,212,0 duplicate(Control#template) Control Device02#ar03 HIDDEN_NPC -arug_cas03,134,266,0 duplicate(Control#template) Control Device03#ar03 HIDDEN_NPC -arug_cas03,299,277,0 duplicate(Switch#template) #aru03_switch HIDDEN_NPC -arug_cas03,312,154,3 duplicate(Sunflower#template) Mysterious Sunflower#08 4_RED_FLOWER - -arug_cas03,122,314,0 script LF-01#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",84,158,"Second Gate House",197,136; } -arug_cas03,125,314,0 script LF-02#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 1-2",211,97; } -arug_cas03,128,314,0 script LF-03#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",112,73,"Defense Area 1-4",171,73; } -arug_cas03,131,314,0 script LF-04#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",112,152,"Defense Area 2-2",172,152; } -arug_cas03,134,314,0 script LF-05#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",120,186,"Defense Area 2-4",162,186; } -arug_cas03,149,314,0 script LF-06#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",116,235,"Defense Area 3-2",164,235; } -arug_cas03,152,314,0 script LF-07#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 2-1",112,152,"Defense Area 3-1",116,235; } -arug_cas03,155,314,0 script LF-08#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-2",211,97,"Defense Area 2-2",172,152,"Defense Area 3-2",164,235; } -arug_cas03,158,314,0 script LF-09#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-4",171,73,"Defense Area 2-4",162,186; } -arug_cas03,161,314,0 script LF-10#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",321,57; } -arug_cas03,45,158,0 script Horn#LF_ar03_01::LF_ar03_01 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",121,318; } -arug_cas03,226,156,0 duplicate(LF_ar03_01) Horn#LF_ar03_01 HIDDEN_NPC -arug_cas03,134,62,4 duplicate(LF_ar03_01) Horn#LF_ar03_02 HIDDEN_NPC -arug_cas03,149,62,4 duplicate(LF_ar03_01) Horn#LF_ar03_03 HIDDEN_NPC -arug_cas03,123,154,0 duplicate(LF_ar03_01) Horn#LF_ar03_04 HIDDEN_NPC -arug_cas03,160,154,0 duplicate(LF_ar03_01) Horn#LF_ar03_05 HIDDEN_NPC -arug_cas03,135,205,0 duplicate(LF_ar03_01) Horn#LF_ar03_06 HIDDEN_NPC -arug_cas03,148,205,0 duplicate(LF_ar03_01) Horn#LF_ar03_07 HIDDEN_NPC -arug_cas03,134,260,0 duplicate(LF_ar03_01) Horn#LF_ar03_08 HIDDEN_NPC -//arug_cas03,204,142,0 duplicate(LF_ar03_01) Horn#LF_ar03_09 HIDDEN_NPC -arug_cas03,148,103,4 script Horn#LF_ar03_10::LF_ar03_02 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",121,318; - end; -OnAgitInit2: -OnRecvCastleAr03: - flagemblem getcastledata("arug_cas03",1); - end; -} -arug_cas03,135,103,4 duplicate(LF_ar03_02) Horn#LF_ar03_11 GUILD_FLAG -arug_cas03,63,51,7 duplicate(LF_ar03_02) Horn#LF_ar03_12 GUILD_FLAG -arug_cas03,214,51,1 duplicate(LF_ar03_02) Horn#LF_ar03_13 GUILD_FLAG - -aru_gld,60,174,0 script Horn#flag_Ar03_1::Ar03_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas03",1; - end; -OnAgitInit2: -OnRecvCastleAr03: - flagemblem getcastledata("arug_cas03",1); - end; -} -aru_gld,74,174,0 duplicate(Ar03_Flag) Horn#flag_Ar03_2 GUILD_FLAG diff --git a/npc/guild2/arug_cas04.txt b/npc/guild2/arug_cas04.txt deleted file mode 100644 index e6d734684..000000000 --- a/npc/guild2/arug_cas04.txt +++ /dev/null @@ -1,81 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Gefn -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#arug_cas04 -1 -- duplicate(gard#template) gard1#arug_cas04 -1 -- duplicate(gard#template) gard2#arug_cas04 -1 -- duplicate(df#template) df1#arug_cas04 -1 -- duplicate(df#template) df2#arug_cas04 -1 -- duplicate(RL#template) RL0#arug_cas04 -1 -- duplicate(RL#template) RL1#arug_cas04 -1 -- duplicate(RL#template) RL2#arug_cas04 -1 -- duplicate(RL#template) RL3#arug_cas04 -1 - -arug_cas04,328,98,3 duplicate(Steward#template) Steward#ar04 1_M_JOBTESTER -arug_cas04,146,315,3 duplicate(Guardian#template) Nios#ar04 4_M_LGTGUARD -arug_cas04,315,98,5 duplicate(Kafra#template) Kafra Employee#ar04 4_F_KAFRA1 -arug_cas04,65,171,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar04 CLEAR_NPC -arug_cas04,212,149,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar04 CLEAR_NPC -arug_cas04,136,158,0 duplicate(Control#template) Control Device01#ar04 HIDDEN_NPC -arug_cas04,135,212,0 duplicate(Control#template) Control Device02#ar04 HIDDEN_NPC -arug_cas04,134,266,0 duplicate(Control#template) Control Device03#ar04 HIDDEN_NPC -arug_cas04,299,277,0 duplicate(Switch#template) #aru04_switch HIDDEN_NPC -arug_cas04,312,154,3 duplicate(Sunflower#template) Mysterious Sunflower#09 4_RED_FLOWER - -arug_cas04,122,314,0 script LF-01#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",84,158,"Second Gate House",197,136; } -arug_cas04,125,314,0 script LF-02#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 1-2",211,97; } -arug_cas04,128,314,0 script LF-03#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",112,73,"Defense Area 1-4",171,73; } -arug_cas04,131,314,0 script LF-04#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",112,152,"Defense Area 2-2",172,152; } -arug_cas04,134,314,0 script LF-05#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",120,186,"Defense Area 2-4",162,186; } -arug_cas04,149,314,0 script LF-06#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",116,235,"Defense Area 3-2",164,235; } -arug_cas04,152,314,0 script LF-07#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 2-1",112,152,"Defense Area 3-1",116,235; } -arug_cas04,155,314,0 script LF-08#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-2",211,97,"Defense Area 2-2",172,152,"Defense Area 3-2",164,235; } -arug_cas04,158,314,0 script LF-09#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-4",171,73,"Defense Area 2-4",162,186; } -arug_cas04,161,314,0 script LF-10#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",321,57; } -arug_cas04,45,158,0 script Gefn#LF_ar04_01::LF_ar04_01 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",121,318; } -arug_cas04,226,156,0 duplicate(LF_ar04_01) Gefn#LF_ar04_01 HIDDEN_NPC -arug_cas04,134,62,4 duplicate(LF_ar04_01) Gefn#LF_ar04_02 HIDDEN_NPC -arug_cas04,149,62,4 duplicate(LF_ar04_01) Gefn#LF_ar04_03 HIDDEN_NPC -arug_cas04,123,154,0 duplicate(LF_ar04_01) Gefn#LF_ar04_04 HIDDEN_NPC -arug_cas04,160,154,0 duplicate(LF_ar04_01) Gefn#LF_ar04_05 HIDDEN_NPC -arug_cas04,135,205,0 duplicate(LF_ar04_01) Gefn#LF_ar04_06 HIDDEN_NPC -arug_cas04,148,205,0 duplicate(LF_ar04_01) Gefn#LF_ar04_07 HIDDEN_NPC -arug_cas04,134,260,0 duplicate(LF_ar04_01) Gefn#LF_ar04_08 HIDDEN_NPC -//arug_cas04,204,142,0 duplicate(LF_ar04_01) Gefn#LF_ar04_09 HIDDEN_NPC -arug_cas04,148,103,4 script Gefn#LF_ar04_10::LF_ar04_02 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",121,318; - end; -OnAgitInit2: -OnRecvCastleAr04: - flagemblem getcastledata("arug_cas04",1); - end; -} -arug_cas04,135,103,4 duplicate(LF_ar04_02) Gefn#LF_ar04_11 GUILD_FLAG -arug_cas04,63,51,7 duplicate(LF_ar04_02) Gefn#LF_ar04_12 GUILD_FLAG -arug_cas04,214,51,1 duplicate(LF_ar04_02) Gefn#LF_ar04_13 GUILD_FLAG - -aru_gld,306,359,6 script Gefn#flag_ar04_1::ar04_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas04",1; - end; -OnAgitInit2: -OnRecvCastleAr04: - flagemblem getcastledata("arug_cas04",1); - end; -} -aru_gld,306,348,6 duplicate(ar04_Flag) Gefn#flag_ar04_2 GUILD_FLAG -aru_gld,301,318,4 script Gefn#flag_ar04_3::ar04_Flag2 GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas04",0; - end; -OnAgitInit2: -OnRecvCastleAr04: - flagemblem getcastledata("arug_cas04",1); - end; -} -aru_gld,313,318,4 duplicate(ar04_Flag2) Gefn#flag_ar04_4 GUILD_FLAG diff --git a/npc/guild2/arug_cas05.txt b/npc/guild2/arug_cas05.txt deleted file mode 100644 index e4848b346..000000000 --- a/npc/guild2/arug_cas05.txt +++ /dev/null @@ -1,81 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Banadis -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#arug_cas05 -1 -- duplicate(gard#template) gard1#arug_cas05 -1 -- duplicate(gard#template) gard2#arug_cas05 -1 -- duplicate(df#template) df1#arug_cas05 -1 -- duplicate(df#template) df2#arug_cas05 -1 -- duplicate(RL#template) RL0#arug_cas05 -1 -- duplicate(RL#template) RL1#arug_cas05 -1 -- duplicate(RL#template) RL2#arug_cas05 -1 -- duplicate(RL#template) RL3#arug_cas05 -1 - -arug_cas05,328,98,3 duplicate(Steward#template) Steward#ar05 1_M_JOBTESTER -arug_cas05,146,315,3 duplicate(Guardian#template) Eeos#ar05 4_M_LGTGUARD -arug_cas05,315,98,5 duplicate(Kafra#template) Kafra Employee#ar05 4_F_KAFRA1 -arug_cas05,65,171,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar05 CLEAR_NPC -arug_cas05,212,149,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar05 CLEAR_NPC -arug_cas05,136,158,0 duplicate(Control#template) Control Device01#ar05 HIDDEN_NPC -arug_cas05,135,212,0 duplicate(Control#template) Control Device02#ar05 HIDDEN_NPC -arug_cas05,134,266,0 duplicate(Control#template) Control Device03#ar05 HIDDEN_NPC -arug_cas05,299,277,0 duplicate(Switch#template) #aru05_switch HIDDEN_NPC -arug_cas05,312,154,3 duplicate(Sunflower#template) Mysterious Sunflower#10 4_RED_FLOWER - -arug_cas05,122,314,0 script LF-01#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",84,158,"Second Gate House",197,136; } -arug_cas05,125,314,0 script LF-02#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 1-2",211,97; } -arug_cas05,128,314,0 script LF-03#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",112,73,"Defense Area 1-4",171,73; } -arug_cas05,131,314,0 script LF-04#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",112,152,"Defense Area 2-2",172,152; } -arug_cas05,134,314,0 script LF-05#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",120,186,"Defense Area 2-4",162,186; } -arug_cas05,149,314,0 script LF-06#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",116,235,"Defense Area 3-2",164,235; } -arug_cas05,152,314,0 script LF-07#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 2-1",112,152,"Defense Area 3-1",116,235; } -arug_cas05,155,314,0 script LF-08#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-2",211,97,"Defense Area 2-2",172,152,"Defense Area 3-2",164,235; } -arug_cas05,158,314,0 script LF-09#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-4",171,73,"Defense Area 2-4",162,186; } -arug_cas05,161,314,0 script LF-10#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",321,57; } -arug_cas05,45,158,0 script Banadis#LF_ar05_01::LF_ar05_01 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",121,318; } -arug_cas05,226,156,0 duplicate(LF_ar05_01) Banadis#LF_ar05_01 HIDDEN_NPC -arug_cas05,134,62,4 duplicate(LF_ar05_01) Banadis#LF_ar05_02 HIDDEN_NPC -arug_cas05,149,62,4 duplicate(LF_ar05_01) Banadis#LF_ar05_03 HIDDEN_NPC -arug_cas05,123,154,0 duplicate(LF_ar05_01) Banadis#LF_ar05_04 HIDDEN_NPC -arug_cas05,160,154,0 duplicate(LF_ar05_01) Banadis#LF_ar05_05 HIDDEN_NPC -arug_cas05,135,205,0 duplicate(LF_ar05_01) Banadis#LF_ar05_06 HIDDEN_NPC -arug_cas05,148,205,0 duplicate(LF_ar05_01) Banadis#LF_ar05_07 HIDDEN_NPC -arug_cas05,134,260,0 duplicate(LF_ar05_01) Banadis#LF_ar05_08 HIDDEN_NPC -//arug_cas05,204,142,0 duplicate(LF_ar05_01) Banadis#LF_ar05_09 HIDDEN_NPC -arug_cas05,148,103,4 script Banadis#LF_ar05_10::LF_ar05_02 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",121,318; - end; -OnAgitInit2: -OnRecvCastleAr05: - flagemblem getcastledata("arug_cas05",1); - end; -} -arug_cas05,135,103,4 duplicate(LF_ar05_02) Banadis#LF_ar05_11 GUILD_FLAG -arug_cas05,63,51,7 duplicate(LF_ar05_02) Banadis#LF_ar05_12 GUILD_FLAG -arug_cas05,214,51,1 duplicate(LF_ar05_02) Banadis#LF_ar05_13 GUILD_FLAG - -aru_gld,289,103,6 script Banadis#flag_ar05_1::ar05_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas05",1; - end; -OnAgitInit2: -OnRecvCastleAr05: - flagemblem getcastledata("arug_cas05",1); - end; -} -aru_gld,289,112,6 duplicate(ar05_Flag) Banadis#flag_ar05_2 GUILD_FLAG -aru_gld,350,98,6 script Banadis#flag_ar05_3::ar05_Flag2 GUILD_FLAG,{ - callfunc "ReturnFlag","arug_cas05",0; - end; -OnAgitInit2: -OnRecvCastleAr05: - flagemblem getcastledata("arug_cas05",1); - end; -} -aru_gld,350,88,6 duplicate(ar05_Flag2) Banadis#flag_ar05_4 GUILD_FLAG diff --git a/npc/guild2/guild_flags.txt b/npc/guild2/guild_flags.txt deleted file mode 100644 index bfbca227d..000000000 --- a/npc/guild2/guild_flags.txt +++ /dev/null @@ -1,103 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium Second Edition -//===== By: ================================================== -//= L0ne_W0lf -//===== Current Version: ===================================== -//= 1.0 -//===== Description: ========================================= -//= WoE SE Guild Flags in Juno and Rachel -//===== Additional Comments: ================================= -//= 1.0 First Version [L0ne_W0lf] -//============================================================ - -// Juno -yuno,109,167,5 script Himinn GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleSc01: - flagemblem getcastledata("schg_cas01",1); - end; -} - -yuno,110,171,5 script Andlangr GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleSc02: - flagemblem getcastledata("schg_cas02",1); - end; -} - -yuno,111,175,5 script Viblainn GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleSc03: - flagemblem getcastledata("schg_cas03",1); - end; -} - -yuno,112,179,5 script Hljod GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleSc04: - flagemblem getcastledata("schg_cas04",1); - end; -} - -yuno,114,183,5 script Skidbladnir GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleSc05: - flagemblem getcastledata("schg_cas05",1); - end; -} - -// Arunafeltz -rachel,124,120,3 script Mardol GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleAr01: - flagemblem getcastledata("arug_cas01",1); - end; -} - -rachel,136,120,5 script Cyr GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleAr02: - flagemblem getcastledata("arug_cas02",1); - end; -} - -rachel,138,126,6 script Horn GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleAr03: - flagemblem getcastledata("arug_cas03",1); - end; -} - -rachel,135,131,7 script Gefn GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleAr04: - flagemblem getcastledata("arug_cas04",1); - end; -} - -rachel,124,130,1 script Banadis GUILD_FLAG,{ - end; - -OnAgitInit2: -OnRecvCastleAr05: - flagemblem getcastledata("arug_cas05",1); - end; -} diff --git a/npc/guild2/schg_cas01.txt b/npc/guild2/schg_cas01.txt deleted file mode 100644 index ba9da886b..000000000 --- a/npc/guild2/schg_cas01.txt +++ /dev/null @@ -1,72 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Himinn -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#schg_cas01 -1 -- duplicate(gard#template) gard1#schg_cas01 -1 -- duplicate(gard#template) gard2#schg_cas01 -1 -- duplicate(df#template) df1#schg_cas01 -1 -- duplicate(df#template) df2#schg_cas01 -1 -- duplicate(RL#template) RL0#schg_cas01 -1 -- duplicate(RL#template) RL1#schg_cas01 -1 -- duplicate(RL#template) RL2#schg_cas01 -1 -- duplicate(RL#template) RL3#schg_cas01 -1 - -schg_cas01,247,305,3 duplicate(Steward#template) Steward#sc01 1_M_JOBTESTER -schg_cas01,123,306,3 duplicate(Guardian#template) Ef#sc01 4_M_LGTGUARD -schg_cas01,300,287,5 duplicate(Kafra#template) Kafra Employee#sc01 4_F_KAFRA1 -schg_cas01,27,36,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc01 CLEAR_NPC -schg_cas01,208,75,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc01 CLEAR_NPC -schg_cas01,124,52,0 duplicate(Control#template) Control Device01#sc01 HIDDEN_NPC -schg_cas01,128,157,0 duplicate(Control#template) Control Device02#sc01 HIDDEN_NPC -schg_cas01,109,247,0 duplicate(Control#template) Control Device03#sc01 HIDDEN_NPC -schg_cas01,391,391,0 duplicate(Switch#template) #sch01_switch HIDDEN_NPC -schg_cas01,280,391,3 duplicate(Sunflower#template) Mysterious Sunflower#01 4_BLUE_FLOWER - -schg_cas01,106,302,0 script LF-01#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",19,26,"Second Gate House",219,90; } -schg_cas01,109,302,0 script LF-02#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",89,43,"Defense Area 1-2",141,45; } -schg_cas01,112,302,0 script LF-03#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",137,54,"Defense Area 2-2",102,54; } -schg_cas01,115,302,0 script LF-04#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",94,147,"Defense Area 2-4",163,140; } -schg_cas01,118,302,0 script LF-05#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",87,220,"Defense Area 2-4",151,220; } -schg_cas01,121,302,0 script LF-06#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",100,242,"Defense Area 3-2",136,242; } -schg_cas01,124,302,0 script LF-07#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",120,168,"Center 2 Area",119,211; } -schg_cas01,127,302,0 script LF-08#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",89,43,"Area 2-1",94,147,"Area 3-1",100,242; } -schg_cas01,130,302,0 script LF-09#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",141,45,"Area 2-3",163,140,"Area 3-2",136,243; } -schg_cas01,133,302,0 script LF-10#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",275,244; } -schg_cas01,17,45,0 script Himinn#LF_sc01_1::LF_sc01_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",120,290; } -schg_cas01,207,95,0 duplicate(LF_sc01_1) Himinn#LF_sc01_2 HIDDEN_NPC -schg_cas01,111,46,4 script Himinn#LF_sc01_3::LF_sc01_2 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",120,290; - end; -OnAgitInit2: -OnRecvCastleSc01: - flagemblem getcastledata("schg_cas01",1); - end; -} -schg_cas01,129,46,4 duplicate(LF_sc01_2) Himinn#LF_sc01_4 GUILD_FLAG -schg_cas01,99,77,0 duplicate(LF_sc01_1) Himinn#LF_sc01_5 HIDDEN_NPC -schg_cas01,140,77,0 duplicate(LF_sc01_1) Himinn#LF_sc01_6 HIDDEN_NPC -schg_cas01,109,150,4 duplicate(LF_sc01_2) Himinn#LF_sc01_7 GUILD_FLAG -schg_cas01,130,150,4 duplicate(LF_sc01_2) Himinn#LF_sc01_8 GUILD_FLAG -schg_cas01,112,212,0 duplicate(LF_sc01_1) Himinn#LF_sc01_9 HIDDEN_NPC -schg_cas01,127,212,0 duplicate(LF_sc01_1) Himinn#LF_sc01_10 HIDDEN_NPC -schg_cas01,113,238,0 duplicate(LF_sc01_1) Himinn#LF_sc01_11 HIDDEN_NPC -schg_cas01,126,238,0 duplicate(LF_sc01_1) Himinn#LF_sc01_12 HIDDEN_NPC -schg_cas01,95,247,0 duplicate(LF_sc01_1) Himinn#LF_sc01_13 HIDDEN_NPC -schg_cas01,144,247,0 duplicate(LF_sc01_1) Himinn#LF_sc01_14 HIDDEN_NPC - -sch_gld,290,90,0 script Himinn#flag_sc01_1::Sc01_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","schg_cas01",1; - end; -OnAgitInit2: -OnRecvCastleSc01: - flagemblem getcastledata("schg_cas01",1); - end; -} -sch_gld,297,90,0 duplicate(Sc01_Flag) Himinn#flag_sc01_2 GUILD_FLAG diff --git a/npc/guild2/schg_cas02.txt b/npc/guild2/schg_cas02.txt deleted file mode 100644 index 798fb9c8b..000000000 --- a/npc/guild2/schg_cas02.txt +++ /dev/null @@ -1,64 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Andlangr -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#schg_cas02 -1 -- duplicate(gard#template) gard1#schg_cas02 -1 -- duplicate(gard#template) gard2#schg_cas02 -1 -- duplicate(df#template) df1#schg_cas02 -1 -- duplicate(df#template) df2#schg_cas02 -1 -- duplicate(RL#template) RL0#schg_cas02 -1 -- duplicate(RL#template) RL1#schg_cas02 -1 -- duplicate(RL#template) RL2#schg_cas02 -1 -- duplicate(RL#template) RL3#schg_cas02 -1 - -schg_cas02,105,378,3 duplicate(Steward#template) Steward#sc02 1_M_JOBTESTER -schg_cas02,140,184,3 duplicate(Guardian#template) Endeef#sc02 4_M_LGTGUARD -schg_cas02,131,365,3 duplicate(Kafra#template) Kafra Employee#sc02 4_F_KAFRA1 -schg_cas02,231,57,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc02 CLEAR_NPC -schg_cas02,335,231,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc02 CLEAR_NPC -schg_cas02,288,97,0 duplicate(Control#template) Control Device01#sc02 HIDDEN_NPC -schg_cas02,230,209,0 duplicate(Control#template) Control Device02#sc02 HIDDEN_NPC -schg_cas02,159,143,0 duplicate(Control#template) Control Device03#sc02 HIDDEN_NPC -schg_cas02,257,369,0 duplicate(Switch#template) #sc02_switch HIDDEN_NPC -schg_cas02,174,328,3 duplicate(Sunflower#template) Mysterious Sunflower#02 4_BLUE_FLOWER - -schg_cas02,143,198,0 script LF-01#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",235,44,"Second Gate House",302,233; } -schg_cas02,143,202,0 script LF-02#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",317,83,"Defense Area 1-2",359,83; } -schg_cas02,143,206,0 script LF-03#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",283,79,"Defense Area 2-2",280,122; } -schg_cas02,145,208,0 script LF-04#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",215,110,"Defense Area 3-2",255,215; } -schg_cas02,180,208,0 script LF-05#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",338,153,"Center 2 Area",213,226; } -schg_cas02,182,206,0 script LF-06#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",317,83,"Defense Area 2-1",283,79,"Defense Area 3-1",215,110; } -schg_cas02,182,202,0 script LF-07#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",359,83,"Area 2-2",280,122,"Area 3-2",255,215; } -schg_cas02,182,198,0 script LF-08#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",101,306; } -schg_cas02,235,222,0 script Andlangr#LF_sc02_1::LF_sc02_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",136,188; } -schg_cas02,157,136,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_2 HIDDEN_NPC -schg_cas02,168,136,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_3 HIDDEN_NPC -schg_cas02,320,232,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_4 HIDDEN_NPC -schg_cas02,295,109,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_5 HIDDEN_NPC -schg_cas02,295,92,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_6 HIDDEN_NPC -schg_cas02,285,90,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_7 HIDDEN_NPC -schg_cas02,285,190,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_8 HIDDEN_NPC -schg_cas02,238,66,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_9 HIDDEN_NPC -schg_cas02,230,45,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_10 HIDDEN_NPC -schg_cas02,233,120,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_11 HIDDEN_NPC -schg_cas02,247,120,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_12 HIDDEN_NPC -schg_cas02,261,162,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_13 HIDDEN_NPC -schg_cas02,244,162,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_14 HIDDEN_NPC -schg_cas02,235,207,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_15 HIDDEN_NPC - -sch_gld,296,247,4 script Andlangr#flag_sc02_1::Sc02_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","schg_cas02",1; - end; -OnAgitInit2: -OnRecvCastleSc02: - flagemblem getcastledata("schg_cas02",1); - end; -} -sch_gld,280,247,4 duplicate(Sc02_Flag) Andlangr#flag_sc02_2 GUILD_FLAG diff --git a/npc/guild2/schg_cas03.txt b/npc/guild2/schg_cas03.txt deleted file mode 100644 index 77d50195e..000000000 --- a/npc/guild2/schg_cas03.txt +++ /dev/null @@ -1,72 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Vidblainn -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#schg_cas03 -1 -- duplicate(gard#template) gard1#schg_cas03 -1 -- duplicate(gard#template) gard2#schg_cas03 -1 -- duplicate(df#template) df1#schg_cas03 -1 -- duplicate(df#template) df2#schg_cas03 -1 -- duplicate(RL#template) RL0#schg_cas03 -1 -- duplicate(RL#template) RL1#schg_cas03 -1 -- duplicate(RL#template) RL2#schg_cas03 -1 -- duplicate(RL#template) RL3#schg_cas03 -1 - -schg_cas03,88,90,3 duplicate(Steward#template) Steward#sc03 1_M_JOBTESTER -schg_cas03,287,226,5 duplicate(Guardian#template) Elzee#sc03 4_M_LGTGUARD -schg_cas03,50,50,3 duplicate(Kafra#template) Kafra Employee#sc03 4_F_KAFRA1 -schg_cas03,242,309,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc03 CLEAR_NPC -schg_cas03,376,250,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc03 CLEAR_NPC -schg_cas03,335,298,0 duplicate(Control#template) Control Device01#sc03 HIDDEN_NPC -schg_cas03,200,227,0 duplicate(Control#template) Control Device02#sc03 HIDDEN_NPC -schg_cas03,273,205,0 duplicate(Control#template) Control Device03#sc03 HIDDEN_NPC -schg_cas03,199,25,0 duplicate(Switch#template) #sch03_switch HIDDEN_NPC -schg_cas03,25,22,3 duplicate(Sunflower#template) Mysterious Sunflower#03 4_BLUE_FLOWER - -schg_cas03,346,211,0 script LF-01#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",262,323,"Second Gate House",378,263; } -schg_cas03,346,207,0 script LF-02#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",306,320; } -schg_cas03,346,203,0 script LF-03#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",309,292,"Defense Area 2-2",348,292; } -schg_cas03,346,199,0 script LF-04#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Center 2 Area",266,263; } -schg_cas03,346,195,0 script LF-05#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",226,220,"Defense Area 3-2",185,249; } -schg_cas03,346,191,0 script LF-06#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Center 3 Area",271,226; } -schg_cas03,301,213,0 script LF-07#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",262,323,"Area 2-2",378,263,"Area 3-2",306,320; } -schg_cas03,301,209,0 script LF-08#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Area 2-1",309,292,"Area 2-2",348,292,"Center 2 Area",326,263; } -schg_cas03,301,194,0 script LF-09#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Area 3-1",226,220,"Area 3-2",185,249,"Center 3 Area",271,226; } -schg_cas03,301,190,0 script LF-10#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",57,13; } -schg_cas03,335,305,0 script Vidblainn#LF_sc03_1::LF_sc03_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",308,202; } -schg_cas03,322,305,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_2 HIDDEN_NPC -schg_cas03,352,248,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_3 HIDDEN_NPC -schg_cas03,320,283,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_4 HIDDEN_NPC -schg_cas03,337,283,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_5 HIDDEN_NPC -schg_cas03,233,320,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_6 HIDDEN_NPC -schg_cas03,207,239,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_7 HIDDEN_NPC -schg_cas03,207,228,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_8 HIDDEN_NPC -schg_cas03,266,206,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_9 HIDDEN_NPC -schg_cas03,266,197,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_10 HIDDEN_NPC -schg_cas03,283,206,2 script Vidblainn#LF_sc03_11::LF_sc03_2 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",308,202; - end; -OnAgitInit2: -OnRecvCastleSc03: - flagemblem getcastledata("schg_cas03",1); - end; -} -schg_cas03,283,197,2 duplicate(LF_sc03_2) Vidblainn#LF_sc03_12 GUILD_FLAG -schg_cas03,332,323,6 duplicate(LF_sc03_2) Vidblainn#LF_sc03_13 GUILD_FLAG -schg_cas03,343,323,2 duplicate(LF_sc03_2) Vidblainn#LF_sc03_14 GUILD_FLAG - -sch_gld,91,191,0 script Vidblainn#flag_sc03_1::Sc03_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","schg_cas03",1; - end; -OnAgitInit2: -OnRecvCastleSc03: - flagemblem getcastledata("schg_cas03",1); - end; -} -sch_gld,104,191,0 duplicate(Sc03_Flag) Bidblind#flag_sc03_2 GUILD_FLAG diff --git a/npc/guild2/schg_cas04.txt b/npc/guild2/schg_cas04.txt deleted file mode 100644 index dd81e16c6..000000000 --- a/npc/guild2/schg_cas04.txt +++ /dev/null @@ -1,72 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Hljod -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#schg_cas04 -1 -- duplicate(gard#template) gard1#schg_cas04 -1 -- duplicate(gard#template) gard2#schg_cas04 -1 -- duplicate(df#template) df1#schg_cas04 -1 -- duplicate(df#template) df2#schg_cas04 -1 -- duplicate(RL#template) RL0#schg_cas04 -1 -- duplicate(RL#template) RL1#schg_cas04 -1 -- duplicate(RL#template) RL2#schg_cas04 -1 -- duplicate(RL#template) RL3#schg_cas04 -1 - -schg_cas04,247,305,3 duplicate(Steward#template) Steward#sc04 1_M_JOBTESTER -schg_cas04,123,306,3 duplicate(Guardian#template) Ef#sc04 4_M_LGTGUARD -schg_cas04,300,287,5 duplicate(Kafra#template) Kafra Employee#sc04 4_F_KAFRA1 -schg_cas04,27,36,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc04 CLEAR_NPC -schg_cas04,208,75,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc04 CLEAR_NPC -schg_cas04,124,52,0 duplicate(Control#template) Control Device01#sc04 HIDDEN_NPC -schg_cas04,128,157,0 duplicate(Control#template) Control Device02#sc04 HIDDEN_NPC -schg_cas04,109,247,0 duplicate(Control#template) Control Device03#sc04 HIDDEN_NPC -schg_cas04,391,391,0 duplicate(Switch#template) #sch04_switch HIDDEN_NPC -schg_cas04,280,391,3 duplicate(Sunflower#template) Mysterious Sunflower#04 4_BLUE_FLOWER - -schg_cas04,106,302,0 script LF-01#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",19,26,"Second Gate House",219,90; } -schg_cas04,109,302,0 script LF-02#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",89,43,"Defense Area 1-2",141,45; } -schg_cas04,112,302,0 script LF-03#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",137,54,"Defense Area 2-2",102,54; } -schg_cas04,115,302,0 script LF-04#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",94,147,"Defense Area 2-4",163,140; } -schg_cas04,118,302,0 script LF-05#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",87,220,"Defense Area 2-4",151,220; } -schg_cas04,121,302,0 script LF-06#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",100,242,"Defense Area 3-2",136,242; } -schg_cas04,124,302,0 script LF-07#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",120,168,"Center 2 Area",119,211; } -schg_cas04,127,302,0 script LF-08#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",89,43,"Area 2-1",94,147,"Area 3-1",100,242; } -schg_cas04,130,302,0 script LF-09#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",141,45,"Area 2-3",163,140,"Area 3-2",136,243; } -schg_cas04,133,302,0 script LF-10#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",275,244; } -schg_cas04,17,45,0 script Hljod#LF_sc04_1::LF_sc04_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",120,290; } -schg_cas04,207,95,0 duplicate(LF_sc04_1) Hljod#LF_sc04_2 HIDDEN_NPC -schg_cas04,111,46,4 script Hljod#LF_sc04_3::LF_sc04_2 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",120,290; - end; -OnAgitInit2: -OnRecvCastleSc04: - flagemblem getcastledata("schg_cas04",1); - end; -} -schg_cas04,129,46,4 duplicate(LF_sc04_2) Hljod#LF_sc04_4 GUILD_FLAG -schg_cas04,99,77,0 duplicate(LF_sc04_1) Hljod#LF_sc04_5 HIDDEN_NPC -schg_cas04,140,77,0 duplicate(LF_sc04_1) Hljod#LF_sc04_6 HIDDEN_NPC -schg_cas04,109,150,4 duplicate(LF_sc04_2) Hljod#LF_sc04_7 GUILD_FLAG -schg_cas04,130,150,4 duplicate(LF_sc04_2) Hljod#LF_sc04_8 GUILD_FLAG -schg_cas04,112,212,0 duplicate(LF_sc04_1) Hljod#LF_sc04_9 HIDDEN_NPC -schg_cas04,127,212,0 duplicate(LF_sc04_1) Hljod#LF_sc04_10 HIDDEN_NPC -schg_cas04,113,238,0 duplicate(LF_sc04_1) Hljod#LF_sc04_11 HIDDEN_NPC -schg_cas04,126,238,0 duplicate(LF_sc04_1) Hljod#LF_sc04_12 HIDDEN_NPC -schg_cas04,95,247,0 duplicate(LF_sc04_1) Hljod#LF_sc04_13 HIDDEN_NPC -schg_cas04,144,247,0 duplicate(LF_sc04_1) Hljod#LF_sc04_14 HIDDEN_NPC - -sch_gld,134,97,4 script Hljod#flag_sc04_1::sc04_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","schg_cas04",1; - end; -OnAgitInit2: -OnRecvCastleSc04: - flagemblem getcastledata("schg_cas04",1); - end; -} -sch_gld,141,97,4 duplicate(sc04_Flag) Hljod#flag_sc04_2 GUILD_FLAG diff --git a/npc/guild2/schg_cas05.txt b/npc/guild2/schg_cas05.txt deleted file mode 100644 index ca69a2dd6..000000000 --- a/npc/guild2/schg_cas05.txt +++ /dev/null @@ -1,74 +0,0 @@ -//===== Hercules Script ====================================== -//= War of Emperium SE - Skidbladnir -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Additional Comments: ================================= -//= 1.0 Merged to template file. -//============================================================ - -- duplicate(Manager#template) Manager#schg_cas05 -1 -- duplicate(gard#template) gard1#schg_cas05 -1 -- duplicate(gard#template) gard2#schg_cas05 -1 -- duplicate(df#template) df1#schg_cas05 -1 -- duplicate(df#template) df2#schg_cas05 -1 -- duplicate(RL#template) RL0#schg_cas05 -1 -- duplicate(RL#template) RL1#schg_cas05 -1 -- duplicate(RL#template) RL2#schg_cas05 -1 -- duplicate(RL#template) RL3#schg_cas05 -1 - -schg_cas05,247,305,3 duplicate(Steward#template) Steward#sc05 1_M_JOBTESTER -schg_cas05,123,306,3 duplicate(Guardian#template) Ef#sc05 4_M_LGTGUARD -schg_cas05,300,287,5 duplicate(Kafra#template) Kafra Employee#sc05 4_F_KAFRA1 -schg_cas05,27,36,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc05 CLEAR_NPC -schg_cas05,208,75,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc05 CLEAR_NPC -schg_cas05,124,52,0 duplicate(Control#template) Control Device01#sc05 HIDDEN_NPC -schg_cas05,128,157,0 duplicate(Control#template) Control Device02#sc05 HIDDEN_NPC -schg_cas05,109,247,0 duplicate(Control#template) Control Device03#sc05 HIDDEN_NPC -schg_cas05,391,391,0 duplicate(Switch#template) #sch05_switch HIDDEN_NPC -schg_cas05,280,391,3 duplicate(Sunflower#template) Mysterious Sunflower#05 4_BLUE_FLOWER - -schg_cas05,106,302,0 script LF-01#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",19,26,"Second Gate House",219,90; } -schg_cas05,109,302,0 script LF-02#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",89,43,"Defense Area 1-2",141,45; } -schg_cas05,112,302,0 script LF-03#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",137,54,"Defense Area 2-2",102,54; } -schg_cas05,115,302,0 script LF-04#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",94,147,"Defense Area 2-4",163,140; } -schg_cas05,118,302,0 script LF-05#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",87,220,"Defense Area 2-4",151,220; } -schg_cas05,121,302,0 script LF-06#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",100,242,"Defense Area 3-2",136,242; } -schg_cas05,124,302,0 script LF-07#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",120,168,"Center 2 Area",119,211; } -schg_cas05,127,302,0 script LF-08#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",89,43,"Area 2-1",94,147,"Area 3-1",100,242; } -schg_cas05,130,302,0 script LF-09#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",141,45,"Area 2-3",163,140,"Area 3-2",136,243; } -schg_cas05,133,302,0 script LF-10#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",275,244; } -schg_cas05,17,45,0 script Skidbladnir#LF_sc05_1::LF_sc05_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",120,290; } -schg_cas05,207,95,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_2 HIDDEN_NPC -schg_cas05,111,46,4 script Skidbladnir#LF_sc05_3::LF_sc05_2 GUILD_FLAG,{ - callfunc "LinkFlag","Emperium Center",120,290; - end; -OnAgitInit2: -OnRecvCastleSc05: - flagemblem getcastledata("schg_cas05",1); - end; -} -schg_cas05,129,46,4 duplicate(LF_sc05_2) Skidbladnir#LF_sc05_4 GUILD_FLAG -schg_cas05,99,77,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_5 HIDDEN_NPC -schg_cas05,140,77,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_6 HIDDEN_NPC -schg_cas05,109,150,4 duplicate(LF_sc05_2) Skidbladnir#LF_sc05_7 GUILD_FLAG -schg_cas05,130,150,4 duplicate(LF_sc05_2) Skidbladnir#LF_sc05_8 GUILD_FLAG -schg_cas05,112,212,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_9 HIDDEN_NPC -schg_cas05,127,212,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_10 HIDDEN_NPC -schg_cas05,113,238,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_11 HIDDEN_NPC -schg_cas05,126,238,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_12 HIDDEN_NPC -schg_cas05,95,247,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_13 HIDDEN_NPC -schg_cas05,144,247,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_14 HIDDEN_NPC - -sch_gld,101,284,4 script Skidbladnir#flag_sc05_1::sc05_Flag GUILD_FLAG,{ - callfunc "ReturnFlag","schg_cas05",1; - end; -OnAgitInit2: -OnRecvCastleSc05: - flagemblem getcastledata("schg_cas05",1); - end; -} -sch_gld,91,284,4 duplicate(sc05_Flag) Skidbladnir#flag_sc05_2 GUILD_FLAG -sch_gld,66,320,6 duplicate(sc05_Flag) Skidbladnir#flag_sc05_3 GUILD_FLAG -sch_gld,66,310,6 duplicate(sc05_Flag) Skidbladnir#flag_sc05_4 GUILD_FLAG diff --git a/npc/pre-re/scripts_main.conf b/npc/pre-re/scripts_main.conf index 8e75dd332..737099ec8 100644 --- a/npc/pre-re/scripts_main.conf +++ b/npc/pre-re/scripts_main.conf @@ -27,7 +27,7 @@ npc: npc/other/CashShop_Functions.txt // ------------------- Common Script Files ---------------------- import: npc/scripts.conf -import: npc/scripts_guild.conf +import: npc/scripts_woe.conf import: npc/scripts_jobs.conf import: npc/scripts_mapflags.conf import: npc/scripts_monsters.conf diff --git a/npc/re/guild/invest_main.txt b/npc/re/guild/invest_main.txt deleted file mode 100644 index 9ed49ce7a..000000000 --- a/npc/re/guild/invest_main.txt +++ /dev/null @@ -1,1676 +0,0 @@ -//===== Hercules Script ====================================== -//= Hall of Abyss - Core Scripts -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.1 -//===== Description: ========================================= -//= [Official Conversion] -//= Expansion for War of Emperium FE. -//= Invest in each realm to unlock new maps: -//= - Guild Dungeon F2, total 20,000,000z. -//= - Hall of Abyss, total 70,000,000z. -//===== Additional Comments: ================================= -//= 1.0 First version. Missing official times. [Euphy] -//= 1.1 Added GM management function. [Euphy] -//============================================================ - -// Global Variables -//============================================================ -// Note: an asterisk (*) represents any realm (prt, pay, gef, alde). -/* -$2011_agit_invest --- 0: Inactive. --- 1: Investment in progress. --- 2: Investment results calculating. --- 4: Investment calculations complete (only when at least one $*_invest_result is 3). --- 11-21: Tie, revote required. - -$agit_result_notice --- 0: Inactive. --- 1-12: Interim statements (displaying $@vfund_*x) available. - -$agit_result_timer --- 0: Inactive. --- 0-59: Time elapsed during investment (in hours). - -$agit_revoting_timer --- 0: Inactive. --- 0-29: Time elapsed during revote (in minutes). --- 30: Revote closed. --- 31: Revote results calculating. - -$*_invest_result --- 0: No data. --- 1: Realm not connected. --- 2: Guild Dungeon F2 open. --- 3: Abyss Gate (Hall of Abyss and Gulid Dungeon F2) open. - -$fund_*[01-05] --- Investment units per guild castle. -$fund_*_extra --- Investment units per realm. - -$@vfund_*[01-05] -$@vfund_*_extra --- Investment units, used in interim statements only. -*/ - -// Investment Functions & Controller -//============================================================ -// Note: The times in this section are almost entirely custom. - -- script #invest_timer -1,{ -OnClock0000: // Open investments on Wed (1 hour after WoE) - if (gettime(4) == 3 && !agitcheck()) { - $2011_agit_invest = 1; - donpcevent "#fund_master::OnInvest_start"; - } - end; -OnClock1200: // Close investments on Fri (60 hours after investments open) - if (gettime(4) == 5 && !agitcheck()) { - $2011_agit_invest = 2; - donpcevent "#fund_master::OnInvest_stop"; - } - end; -OnClock1235: // Open dungeons on Fri (at least 31 minutes after investments close) - if (gettime(4) == 5 && !agitcheck()) - donpcevent "#fund_master::OnResult"; - end; -OnClock2000: // Close dungeons on Tues (1 hour before WoE) - if (gettime(4) == 2) - donpcevent "#fund_master::OnReset"; - end; -} - -function script F_Invest_Status { - .@day = gettime(4); - .@hour = gettime(3); - .@minute = gettime(2); - - // Inactive. - if (agitcheck()) - return 0; - - // Open for investments. - if (.@day >= 3 && (.@day < 5 || (.@day == 5 && .@hour <= 12))) - return 1; - - // Investments closed, calculating results. - if (.@day == 5 && .@hour == 12 && .@minute < 35) - return 2; - - // Calculations complete, dungeons open. - if ((.@day == 5 && (.@hour > 12 || (.@hour == 12 && .@minute >= 35))) || .@day > 5 || - .@day < 2 || (.@day == 2 && .@hour < 20)) - return 3; - - // Dungeons closed. - return 0; -} - -//callfunc "F_Invest_Abyss","",""{,""}; -function script F_Invest_Abyss { - mes "There are 2 ways to invest, by Zeny or the Investment Certificate given out by the Cat Paw Merchant Guild."; - mes "Which way would you like to make your investment?"; - next; - switch(select("Invest with Zeny.:Invest with Investment Certificates.:Cancel")) { - case 1: - mes getarg(1); - mes "So you've decided to invest in Zeny."; - mes "Minimum investment unit is ^4d4dff10,000 Zeny^000000."; - mes "You can invest a maximum of 50 units which is ^4d4dff500,000 Zeny^000000."; - next; - switch(select("1 unit 10,000 Zeny:10 units 100,000 Zeny:50 units 500,000 Zeny:Another amount:Cancel")) { - case 1: - .@units = 1; - break; - case 2: - .@units = 10; - break; - case 3: - .@units = 50; - break; - case 4: - mes getarg(1); - mes "Please enter the amount you want to invest."; - mes "Please choose between 1 to 200."; - mes "Please enter 0 to cancel."; - next; - input .@units; - if (.@units < 0 || .@units > 200) { - mes getarg(1); - mes "You've exceeded the amount per investment."; - mes "Please try again."; - close; - } else if (.@units == 0) { - mes getarg(1); - mes "Canceled."; - close; - } else - break; - case 5: - mes getarg(1); - mes "Canceled."; - close; - } - .@zeny = .@units * 10000; - if (Zeny < .@zeny) { - mes getarg(1); - mes "You do not have enough money."; - close; - } - mes getarg(1); - mes "You've invested "+.@units+" unit"+((.@units == 1)?"":"s")+" "+((.@units < 100)?.@units:insertchar(""+.@units,",",1))+"0,000 Zeny"+getarg(2,"")+"."; - mes "Not much but this is a small gift. You can exchange it with items in Malangdo."; - Zeny -= .@zeny; - setd getarg(0), getd(getarg(0)) + .@units; - getitem 6488,.@units; //Thanks_Invest_Ticket - close; - case 2: - mes getarg(1); - mes "Wow, you've brought Investment Certificates."; - mes "How many certificates will you submit?"; - next; - switch(select("1 Investment Certificate:5 Investment Certificates:Another amount:Cancel")) { - case 1: - .@tickets = 1; - break; - case 2: - .@tickets = 5; - break; - case 3: - mes getarg(1); - mes "Please enter the number of Investment Certificates you want to submit."; - mes "Please choose between 1 to 20."; - mes "Please enter 0 to cancel."; - next; - input .@tickets; - if (.@tickets < 0 || .@tickets > 20) { - mes getarg(1); - mes "You've exceeded the amount per investment."; - mes "Please try again."; - close; - } else if (.@tickets == 0) { - mes getarg(1); - mes "Canceled."; - close; - } else - break; - case 4: - mes getarg(1); - mes "Canceled."; - close; - } - if (countitem(6489) < .@tickets) { - mes getarg(1); - mes "Looks like you have fewer Investment Certificates than you want to submit."; - close; - } - .@units = .@tickets * 10; - mes getarg(1); - mes .@tickets+" Investment Certificate"+((.@tickets == 1)?" is":"s are")+" the same as an investment of "+.@units+" units ("+((.@units < 100)?.@units:insertchar(""+.@units,",",1))+"0,000z)"+getarg(2,"")+"."; - mes "Not much but this is a small gift. You can exchange it with items in Malangdo."; - delitem 6489,.@tickets; //Cats_Invest_Certif - setd getarg(0), getd(getarg(0)) + .@units; - getitem 6488,.@units; //Thanks_Invest_Ticket - close; - case 3: - mes getarg(1); - mes "Canceled."; - close; - } -} - -// Script Core -//============================================================ -prt_gld,1,1,0 script #fund_master CLEAR_NPC,{ - end; -OnInit: - .@invest_status = callfunc("F_Invest_Status"); - if (.@invest_status == 1) { - $2011_agit_invest = 1; - end; - } - if ((.@invest_status == 2 && $2011_agit_invest == 1) || - (.@invest_status == 3 && ($2011_agit_invest == 1 || $2011_agit_invest == 2))) { - donpcevent "#fund_master::OnCalculate"; - end; - } - end; -OnCalculate_Election: - .@force_vote = 1; -OnCalculate: - setarray .@cas$[0],"prt","pay","gef","alde"; - for(.@i = 0; .@i<4; ++.@i) { - // All funds per realm are summed. - .@funds[.@i] = getd("$fund_"+.@cas$[.@i]+"01")+getd("$fund_"+.@cas$[.@i]+"02")+getd("$fund_"+.@cas$[.@i]+"03")+getd("$fund_"+.@cas$[.@i]+"04")+getd("$fund_"+.@cas$[.@i]+"05")+getd("$fund_"+.@cas$[.@i]+"_extra"); - - // 70,000,000z opens Hall of Abyss and F2. - if (.@funds[.@i] >= 7000) { - setd "$"+.@cas$[.@i]+"_invest_result",3; - .@total_7000 = 1; - } - // 20,000,000z opens F2 and a chance for Hall of Abyss. - else if (.@funds[.@i] >= 2000) { - setd "$"+.@cas$[.@i]+"_invest_result",2; - .@total_2000 = 1; - } - // Anything below that opens nothing. - else - setd "$"+.@cas$[.@i]+"_invest_result",1; - } - // No further actions if 20,000,000z isn't reached. - if (!.@total_2000) - end; - // No further actions if any realm hits 70,000,000z. - if (.@total_7000) { - $2011_agit_invest = 4; - end; - } - // Otherwise, highest investment above 20,000,000z opens Hall of Abyss. - .@max = .@funds[0]; - for(.@i = 1; .@i<4; ++.@i) { - if (.@funds[.@i] > .@max) { - .@max = .@funds[.@i]; - .@ele = .@i; - deletearray .@rand$[0], getarraysize(.@rand$); - } else if (.@funds[.@i] == .@max && .@funds[.@i] >= 2000) { - if (!getarraysize(.@rand$)) - .@rand$[0] = .@cas$[.@ele]; - .@rand$[getarraysize(.@rand$)] = .@cas$[.@i]; - } - } - if (.@max < 2000) - end; - if (getarraysize(.@rand$)) { - - // Tie: declare a random winner. - if (!.@force_vote) { - .@i = rand(getarraysize(.@rand$)); - setd "$"+.@rand$[.@i]+"_invest_result",3; - $2011_agit_invest = 4; - end; - } - - // Tie: initiate a 30-minute election. - .@str$ = implode(.@rand$,"|"); - for(.@i = 0; .@i<4; ++.@i) { - if (compare(.@str$,.@cas$[.@i])) - .@election = .@election | (1<<.@i); - } - switch(.@election) { - case 3: $2011_agit_invest = 11; break; //Prontera|Payon - case 9: $2011_agit_invest = 12; break; //Prontera|Al De Baran - case 5: $2011_agit_invest = 13; break; //Prontera|Geffen - case 10: $2011_agit_invest = 14; break; //Al De Baran|Payon - case 6: $2011_agit_invest = 15; break; //Geffen|Payon - case 12: $2011_agit_invest = 16; break; //Al De Baran|Geffen - case 11: $2011_agit_invest = 17; break; //Prontera|Payon|Al De Baran - case 7: $2011_agit_invest = 18; break; //Prontera|Payon|Geffen - case 13: $2011_agit_invest = 19; break; //Prontera|Al De Baran|Geffen - case 14: $2011_agit_invest = 20; break; //Al De Baran|Payon|Geffen - case 15: $2011_agit_invest = 21; break; //Prontera|Payon|Al De Baran|Geffen - } - if ($2011_agit_invest >= 11) - donpcevent "Revoting Manager#Invest1::OnStart"; - end; - } else { - setd "$"+.@cas$[.@ele]+"_invest_result",3; - $2011_agit_invest = 4; - end; - } - end; -OnInvest_start: - announce "From now on, we are going to start the investments to connect the 'Abyss Gate' in the WOE areas: Valkyrie Realm, Greenwood Lake, Luina, Britoniah.",bc_all,0xFF0000; //FW_NORMAL 10 - $fund_prt01 = 0; - $fund_prt02 = 0; - $fund_prt03 = 0; - $fund_prt04 = 0; - $fund_prt05 = 0; - $fund_pay01 = 0; - $fund_pay02 = 0; - $fund_pay03 = 0; - $fund_pay04 = 0; - $fund_pay05 = 0; - $fund_gef01 = 0; - $fund_gef02 = 0; - $fund_gef03 = 0; - $fund_gef04 = 0; - $fund_gef05 = 0; - $fund_alde01 = 0; - $fund_alde02 = 0; - $fund_alde03 = 0; - $fund_alde04 = 0; - $fund_alde05 = 0; - donpcevent "Investment_total#fund00::OnEnable"; - end; -OnInvest_stop: - announce "We've finished the investments to connect the 'Abyss Gate'.",bc_all,0xFF0000; //FW_NORMAL 10 - donpcevent "Investment_total#fund00::OnReset"; - donpcevent "#fund_master::OnCalculate_Election"; - end; -OnResult: - announce "We've got the results of the investments for the 'Abyss Gate'. You can check through the Investment Status Board in each WOE area.",bc_all,0xFF0000; //FW_NORMAL 10 - if ($2011_agit_invest == 4) { - $fund_prt01 = 0; - $fund_prt02 = 0; - $fund_prt03 = 0; - $fund_prt04 = 0; - $fund_prt05 = 0; - $fund_prt_extra = 0; - $fund_pay01 = 0; - $fund_pay02 = 0; - $fund_pay03 = 0; - $fund_pay04 = 0; - $fund_pay05 = 0; - $fund_pay_extra = 0; - $fund_gef01 = 0; - $fund_gef02 = 0; - $fund_gef03 = 0; - $fund_gef04 = 0; - $fund_gef05 = 0; - $fund_gef_extra = 0; - $fund_alde01 = 0; - $fund_alde02 = 0; - $fund_alde03 = 0; - $fund_alde04 = 0; - $fund_alde05 = 0; - $fund_alde_extra = 0; - } else if ($2011_agit_invest == 2) - donpcevent "#fund_master::OnCalculate"; - end; -OnReset: - $2011_agit_invest = 0; - donpcevent "Investment_total#fund00::OnReset"; - end; -} - -prt_gld,2,2,0 script Investment_total#fund00 CLEAR_NPC,{ - callfunc "F_GM_NPC"; - mes "Is this not working properly?"; - next; - if (callfunc("F_GM_NPC",1854,0) == 1) { - mes "If you think the investment timer is dead, please adjust the timer."; - next; - switch(select("Turn on the timer:Cancel")) { - case 1: - donpcevent "Investment_total#fund00::OnTimerReset"; - mes "You've turned on the timer."; - close; - case 2: - mes "Canceled."; - close; - } - } else { - mes "I don't need to adjust anything now."; - close; - } - -OnInit: - if (callfunc("F_Invest_Status") == 1) { - initnpctimer; - donpcevent "Investment_total#fund00::OnVarInit"; - } else { - $agit_result_timer = 0; - $agit_result_notice = 0; - } - end; -OnVarInit: - setarray .@cas$[0],"prt","pay","gef","alde"; - for(.@i = 0; .@i<4; ++.@i) { - setd "$@vfund_"+.@cas$[.@i]+"01", getd("$fund_"+.@cas$[.@i]+"01"); - setd "$@vfund_"+.@cas$[.@i]+"02", getd("$fund_"+.@cas$[.@i]+"02"); - setd "$@vfund_"+.@cas$[.@i]+"03", getd("$fund_"+.@cas$[.@i]+"03"); - setd "$@vfund_"+.@cas$[.@i]+"04", getd("$fund_"+.@cas$[.@i]+"04"); - setd "$@vfund_"+.@cas$[.@i]+"05", getd("$fund_"+.@cas$[.@i]+"05"); - setd "$@vfund_"+.@cas$[.@i]+"_extra", getd("$fund_"+.@cas$[.@i]+"_extra"); - } - end; -OnEnable: - $agit_result_timer = 0; - $agit_result_notice = 0; - initnpctimer; - end; -OnReset: - $agit_result_timer = 0; - $agit_result_notice = 0; - stopnpctimer; - end; -OnTimerReset: - initnpctimer; - end; -OnTimer3600000: - if (callfunc("F_Invest_Status") == 1) { - if ($agit_result_timer < 59) { - $agit_result_timer = $agit_result_timer+1; - - // Trigger on multiples of 5 up to 55, and 58. - if ($agit_result_timer % 10 == 5 || $agit_result_timer % 10 == 0 || $agit_result_timer == 58) { - $agit_result_notice = $agit_result_notice+1; - donpcevent "Investment_total#fund00::OnVarInit"; - announce "No. "+$agit_result_notice+" Interim statement is now available. You can check through the Investment Status Board in each WOE area.",bc_all,0xFF0000; //FW_NORMAL 10 - } - - donpcevent "Investment_total#fund00::OnTimerReset"; - } else - stopnpctimer; - end; - } else { - donpcevent "Investment_total#fund00::OnReset"; - end; - } -} - -prt_gld,164,98,3 script Revoting Manager#Invest1 4_M_BOSSCAT,{ - mes "[Revoting Manager]"; - mes "We are not accepting additional votes."; - mes "Please wait for our results announcement."; - close; -OnInit: - .@invest_status = callfunc("F_Invest_Status"); - if (.@invest_status == 2 && $2011_agit_invest >= 11 && $agit_revoting_timer < 30) { - donpcevent "Revoting Manager#Invest2::OnEnable"; - initnpctimer; - } else if (.@invest_status == 3 && $2011_agit_invest >= 11) - donpcevent "Revoting Manager#Invest1::OnCalculate"; - donpcevent "Revoting Manager#Invest1::OnDisable"; - end; -OnCalculate: - switch($2011_agit_invest) { - case 11: setarray.@cas$[0],"prt","pay"; break; - case 12: setarray.@cas$[0],"prt","alde"; break; - case 13: setarray.@cas$[0],"prt","gef"; break; - case 14: setarray.@cas$[0],"alde","pay"; break; - case 15: setarray.@cas$[0],"gef","pay"; break; - case 16: setarray.@cas$[0],"alde","gef"; break; - case 17: setarray.@cas$[0],"prt","pay","alde"; break; - case 18: setarray.@cas$[0],"prt","pay","gef"; break; - case 19: setarray.@cas$[0],"prt","alde","gef"; break; - case 20: setarray.@cas$[0],"alde","pay","gef"; break; - case 21: setarray.@cas$[0],"prt","pay","alde","gef"; break; - default: end; - } - .@max = getd("$fund_"+.@cas$[0]+"_extra"); - for(.@i = 1; .@i .@max) { - .@max = .@funds; - .@ele = .@i; - deletearray .@rand$[0], getarraysize(.@rand$); - } else if (.@funds == .@max) { - if (!getarraysize(.@rand$)) - .@rand$[0] = .@cas$[.@ele]; - .@rand$[getarraysize(.@rand$)] = .@cas$[.@i]; - } - } - if (getarraysize(.@rand$)) { - .@i = rand(getarraysize(.@rand$)); - setd "$"+.@rand$[.@i]+"_invest_result",3; - } else - setd "$"+.@cas$[.@ele]+"_invest_result",3; - $2011_agit_invest = 4; - $agit_revoting_timer = 0; - end; -OnEnable: - enablenpc "Revoting Manager#Invest1"; - end; -OnDisable: - disablenpc "Revoting Manager#Invest1"; - end; -OnStart: - initnpctimer; - donpcevent "Revoting Manager#Invest2::OnNotice_on"; - end; -OnEnd: - stopnpctimer; - disablenpc "Revoting Manager#Invest1"; - end; -OnTimerReset: - initnpctimer; - end; -OnTimer60000: - .@revote = $agit_revoting_timer; - if (.@revote < 30) { - $agit_revoting_timer = $agit_revoting_timer+1; - donpcevent "Revoting Manager#Invest1::OnTimerReset"; - } else if (.@revote == 30) { - announce "Cat Paw Merchant Guild: Now we are going to close the additional vote. We will announce the results soon.",bc_all,0xFF0000; //FW_NORMAL 10 - donpcevent "Revoting Manager#Invest2::OnDisable"; - donpcevent "Revoting Manager#Invest1::OnEnable"; - $agit_revoting_timer = $agit_revoting_timer+1; - donpcevent "Revoting Manager#Invest1::OnTimerReset"; - } else if (.@revote == 31) { - donpcevent "Revoting Manager#Invest1::OnCalculate"; - donpcevent "Revoting Manager#Invest1::OnDisable"; - stopnpctimer; - end; - } else { - donpcevent "Revoting Manager#Invest1::OnDisable"; - stopnpctimer; - } - end; -} - -prt_gld,164,98,3 script Revoting Manager#Invest2 4_M_BOSSCAT,{ - .@invest = $2011_agit_invest; - if (.@invest < 11) { - mes "[Revoting Manager]"; - mes "No! This is not the time to take a revote."; - close2; - disablenpc "Revoting Manager#Invest2"; - end; - } - .@playtime = questprogress(7349,PLAYTIME); - if (.@playtime == 1) { - mes "[Revoting Manager]"; - mes "You've already participated in the vote."; - mes "Please relax and wait for the results."; - close; - } else if (.@playtime == 2) - erasequest 7349; - mes "[Revoting Manager]"; - mes "Would you like to participate in the vote for choosing where to connect the 'Abyss Gate'?"; - next; - if(select("Participate in the vote.:Skip for now.") == 2) { - mes "[Revoting Manager]"; - mes "You've canceled the vote."; - close; - } - mes "[Revoting Manager]"; - mes "You can vote once and won't need to invest for your choice."; - mes "Plesae choose one WOE area."; - next; - - // Create menu. - explode(.@candidates$, callsub(OnGetCandidates, .@invest),"|"); - for(.@i = 0; .@i= 4800) { - mes .@n$; - mes "You have too many Thank You Tickets to receive any more."; - mes "Cannot give you any more tickets. Please use your ticket and come back."; - mes "The ticket can be exchanged with various items in Malangdo."; - close; - } - if (callfunc("F_Invest_Status") != 1) { - mes .@n$; - mes "We do not receive investments now."; - mes "Please come back during the investment duration."; - close; - } - .@guild = getcharid(2); - for(.@i = 1; .@i<=5; ++.@i) { - .@castle_name$[.@i] = getcastlename(.@npc$+"g_cas0"+.@i); - .@owner_id[.@i] = getcastledata(.@npc$+"g_cas0"+.@i,1); - .@owner_name$[.@i] = getguildname(.@owner_id[.@i]); - if (.@guild == .@owner_id[.@i]) { - .@menu$ = .@menu$+.@castle_name$[.@i]+" ["+.@owner_name$[.@i]+"] Guild:"; - .@castles_owned = .@castles_owned | (1<<.@i); - } else - .@menu$ = .@menu$+"^aaaaaaNot the guild that claimed "+.@castle_name$[.@i]+"^000000:"; - } - mes .@n$; - mes "Would you like to invest in the ^4d4dff"+.@realm$+"^000000 region?"; - mes "If there is a castle occupied already, you will invest in the castle and the guild that is occupying it."; - next; - if (.@castles_owned) { - .@i = select(.@menu$+"Cancel"); - if (.@i == 6) { - mes .@n$; - mes "Canceled."; - close; - } - if (.@guild != .@owner_id[.@i]) { - mes .@n$; - mes "The guild that is occupying "+.@castle_name$[.@i]+" is "+.@owner_name$[.@i]+"."; - mes "Doesn't look like your guild."; - close; - } - mes .@n$; - mes "Invest under "+.@castle_name$[.@i]+"'s"+.@owner_name$[.@i]+" guild name."; - callfunc "F_Invest_Abyss","$fund_"+.@npc$+"0"+.@i,.@n$; - end; - } else { - mes .@n$; - callfunc "F_Invest_Abyss","$fund_"+.@npc$+"_extra",.@n$," for "+.@realm$; - end; - } - case 4: - mes .@n$; - mes "Is that so?"; - mes "Please come back whenever you are interested in investing in the Abyss Gate development."; - close; - } -} - -- script Gate Manager#realm -1,{ - - if (compare(strnpcinfo(4),"alde")) { - .@npc$ = "alde"; - .@name$ = "Alkor"; - .@gate$ = "Hero's Tears"; - .@realm$ = "Luina"; - } else if (compare(strnpcinfo(4),"gef")) { - .@npc$ = "gef"; - .@name$ = "Mizar"; - .@gate$ = "Hill of the Dead"; - .@realm$ = "Britoniah"; - } else if (compare(strnpcinfo(4),"pay")) { - .@npc$ = "pay"; - .@name$ = "Alkaid"; - .@gate$ = "Winds of the Ancient"; - .@realm$ = "Greenwood Lake"; - } else if (compare(strnpcinfo(4),"prt")) { - .@npc$ = "prt"; - .@name$ = "Arios"; - .@gate$ = "Way of the Warrior"; - .@realm$ = "Valkyrie Realm"; - } - .@n$ = "["+.@name$+"]"; - - if (callfunc("F_Invest_Status") != 3) { - mes .@n$; - mes "There are currently no connected dungeon gates."; - close; - } - .@status = getd("$"+.@npc$+"_invest_result"); - if (.@status == 3) { - mes .@n$; - mes "We've successfully connected the Abyss Gate ["+.@gate$+"] with the help from your investment."; - mes "The Agit dungeon will be open to everyone with a small entrance fee in "+.@realm$+"."; - next; - mes .@n$; - mes "Please visit as often as possible since the entrance fee is saved as an investment for the region."; - mes "Do you want to enter the Agit dungeon?"; - next; - .@i = select(.@realm$+" Dungeon 1F - 10000z:"+.@realm$+" Dungeon 2F - 10000z:Cancel"); - if (.@i == 3) { - mes .@n$; - mes "Canceled."; - close; - } - if (Zeny < 10000) { - mes .@n$; - mes "I'm collecting a small entrance fee."; - mes "Your contribution will be saved for the next investment."; - mes "Entrance fee is 10000z."; - close; - } - mes .@n$; - mes "I'm sending you to the "+.@realm$+" Agit Dungeon "+.@i+"F."; - Zeny -= 10000; - setd "$fund_"+.@npc$+"_extra", getd("$fund_"+.@npc$+"_extra") + 1; - close2; - if (compare(strnpcinfo(2),"alde")) - warp "gld_dun02"+((.@i == 2)?"_2":""),32,122; - else if (compare(strnpcinfo(2),"gef")) - warp "gld_dun04"+((.@i == 2)?"_2":""),39,258; - else if (compare(strnpcinfo(2),"pay")) - warp "gld_dun01"+((.@i == 2)?"_2":""),186,165; - else if (compare(strnpcinfo(2),"prt")) - warp "gld_dun03"+((.@i == 2)?"_2":""),164,268; - end; - } else if (.@status == 2) { - mes .@n$; - mes "The "+.@realm$+" Agit Dungeon 2F is now available but since it is not connected with the Abyss Gate,"; - mes "the Agit dungeon is only accessible to the Agit guild."; - close; - } else { - mes .@n$; - mes .@realm$+" was not chosen to be connected with a gate this time."; - mes "Please wait for the next investment duration."; - close; - } - end; -} - -- script Investment Status Board -1,{ - .@invest_status = callfunc("F_Invest_Status"); - if (.@invest_status == 1) { - if (compare(strnpcinfo(4),"alde")) { - .@npc$ = "alde"; - .@realm$ = "Luina"; - } else if (compare(strnpcinfo(4),"gef")) { - .@npc$ = "gef"; - .@realm$ = "Britoniah"; - } else if (compare(strnpcinfo(4),"pay")) { - .@npc$ = "pay"; - .@realm$ = "Greenwood Lake"; - } else if (compare(strnpcinfo(4),"prt")) { - .@npc$ = "prt"; - .@realm$ = "Valkyrie Realm"; - } - .@notice = $agit_result_notice; - if (.@notice < 1 || .@notice > 12) { - mes "There are currently no investment sums available."; - close; - } else if (.@notice == 1) - .@str$ = "1st"; - else if (.@notice == 2) - .@str$ = "2nd"; - else if (.@notice == 3) - .@str$ = "3rd"; - else - .@str$ = .@notice+"th"; - mes .@str$+" total (unit in 10,000z)"; - for(.@i = 1; .@i<=5; ++.@i) { - .@map$ = .@npc$+"g_cas0"+.@i; - .@fund[.@i] = getd("$@vfund_"+.@npc$+"0"+.@i); - mes getcastlename(.@map$)+" "+getguildname(getcastledata(.@map$,1))+" Guild: "+.@fund[.@i]; - } - .@fund[0] = getd("$@vfund_"+.@npc$+"_extra"); - mes .@realm$+" normal: "+.@fund[0]; - mes .@realm$+" Investment Grand Total: "+(.@fund[0]+.@fund[1]+.@fund[2]+.@fund[3]+.@fund[4]+.@fund[5]); - close; - } else if (.@invest_status == 2) { - mes "!- Notice -!"; - mes "No sums are available because the total investment amount is currently being calculated."; - mes "Please wait for the announcement of the results."; - close; - } else if (.@invest_status == 3) { - setarray .@invest_result[0], $prt_invest_result,$pay_invest_result,$gef_invest_result,$alde_invest_result; - setarray .@invest_region$[0], "Valkyrie Realm", "Greenwood Lake", "Britoniah", "Luina"; - mes "!- Investment Results of All Agit Regions -!"; - for(.@i = 0; .@i<4; ++.@i) { - if (.@invest_result[.@i] == 1) - mes "^aaaaaa["+.@invest_region$[.@i]+"] below minimum^000000"; - else if (.@invest_result[.@i] == 2) { - mes "["+.@invest_region$[.@i]+"] minimum achieved"; - mes "-> Guild Dungeon Deepest Layer (2F) available"; - } else if (.@invest_result[.@i] == 3) { - mes "^4d4dff["+.@invest_region$[.@i]+"] maximum achieved^000000"; - mes "-> Abyss Gate available"; - } else - mes "No data for ["+.@invest_region$[.@i]+"]."; - } - close; - } else { - mes "!- Notice -!"; - mes "No investment information will be announced now."; - close; - } -} - -// Inside Castles - Gate Managers -//============================================================ -- script Gate Manager#castle -1,{ - - .@id = atoi(charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1)); - if (compare(strnpcinfo(2),"alde")) { - .@npc$ = "alde"; - .@realm$ = "Luina"; - } else if (compare(strnpcinfo(2),"gef")) { - .@npc$ = "gef"; - .@realm$ = "Britoniah"; - } else if (compare(strnpcinfo(2),"pay")) { - .@npc$ = "pay"; - .@realm$ = "Greenwood Lake"; - } else if (compare(strnpcinfo(2),"prt")) { - .@npc$ = "prt"; - .@realm$ = "Valkyrie Realm"; - } - - .@GID = getcastledata(strnpcinfo(4),1); - if (getcharid(2) != .@GID) { - mes "[Gate Manager]"; - mes "You don't seem to be the member of guild owning this castle."; - mes "If you need any help, please visit any of our guild members at "+.@realm$+" Square."; - close; - } - mes "[Gate Manager]"; - mes "Hello, I am the Gate Manager from Cat Paw Merchant Guild warp department."; - mes "How may I help you today?"; - next; - switch(select("Invest for gate connection:Deepest Layer Dungeon Access:Abyss Gate Access:Cancel")) { - case 1: - if (checkweight(1201,1) == 0 || MaxWeight - Weight < 1000) { - mes "[Gate Manager]"; - mes "You have too many items to receive the Thank You Ticket as a small gift for your investment."; - mes "Please come back after making room in your inventory."; - close; - } - if (countitem(6488) >= 4800) { - mes "[Gate Manager]"; - mes "You have too many Thank You Tickets to receive any more."; - mes "Cannot give you any more tickets. Please use your ticket and come back."; - mes "The ticket can be exchanged with various items in Malangdo."; - close; - } - if (callfunc("F_Invest_Status") != 1) { - mes "[Gate Manager]"; - mes "We do not receive investments now."; - mes "Please come back during the investment duration."; - close; - } - if (getcharid(2) != .@GID) { - mes "[Gate Manager]"; - mes "You don't seem to be the member of the guild owning this castle."; - mes "Please use the normal investment from "+.@realm$+" Square."; - close; - } - mes "[Gate Manager]"; - mes "Proceed investing under your guild name."; - callfunc "F_Invest_Abyss","$fund_"+.@npc$+"0"+.@id,"[Gate Manager]"; - end; - case 2: - callsub L_Enter,1,.@realm$,.@npc$; - mes "[Gate Manager]"; - mes "You are interested in exploring the "+.@realm$+" Guild Dungeon Deepest Layer (2F)."; - mes "Let me guide you. Good luck."; - close2; - if (compare(strnpcinfo(2),"alde")) { - switch(.@id) { - case 1: warp "gld_dun02_2",32,122; end; - case 2: warp "gld_dun02_2",79,30; end; - case 3: warp "gld_dun02_2",165,38; end; - case 4: warp "gld_dun02_2",160,148; end; - case 5: warp "gld_dun02_2",103,169; end; - } - } else if (compare(strnpcinfo(2),"gef")) { - switch(.@id) { - case 1: warp "gld_dun04_2",39,258; end; - case 2: warp "gld_dun04_2",125,270; end; - case 3: warp "gld_dun04_2",268,251; end; - case 4: warp "gld_dun04_2",268,108; end; - case 5: warp "gld_dun04_2",230,35; end; - } - } else if (compare(strnpcinfo(2),"pay")) { - switch(.@id) { - case 1: warp "gld_dun01_2",186,165; end; - case 2: warp "gld_dun01_2",54,165; end; - case 3: warp "gld_dun01_2",54,39; end; - case 4: warp "gld_dun01_2",186,39; end; - case 5: warp "gld_dun01_2",223,202; end; - } - } else if (compare(strnpcinfo(2),"prt")) { - switch(.@id) { - case 1: warp "gld_dun03_2",28,251; end; - case 2: warp "gld_dun03_2",164,268; end; - case 3: warp "gld_dun03_2",164,179; end; - case 4: warp "gld_dun03_2",268,203; end; - case 5: warp "gld_dun03_2",199,28; end; - } - } - end; - case 3: - callsub L_Enter,2,.@realm$,.@npc$; - mes "[Gate Manager]"; - mes "Let me guide you to the Abyss Gap connected with "+.@realm$+", the Abyss Gate 'Way of the Warrior'."; - close2; - if (compare(strnpcinfo(2),"alde")) { - switch(.@id) { - case 1: warp "gld2_ald",175,41; end; - case 2: warp "gld2_ald",77,64; end; - case 3: warp "gld2_ald",46,127; end; - case 4: warp "gld2_ald",104,246; end; - case 5: warp "gld2_ald",241,156; end; - } - } else if (compare(strnpcinfo(2),"gef")) { - switch(.@id) { - case 1: warp "gld2_gef",28,199; end; - case 2: warp "gld2_gef",217,46; end; - case 3: warp "gld2_gef",171,195; end; - case 4: warp "gld2_gef",30,67; end; - case 5: warp "gld2_gef",115,40; end; - } - } else if (compare(strnpcinfo(2),"pay")) { - switch(.@id) { - case 1: warp "gld2_pay",33,112; end; - case 2: warp "gld2_pay",119,27; end; - case 3: warp "gld2_pay",205,111; end; - case 4: warp "gld2_pay",175,221; end; - case 5: warp "gld2_pay",61,221; end; - } - } else if (compare(strnpcinfo(2),"prt")) { - switch(.@id) { - case 1: warp "gld2_prt",10,27; end; - case 2: warp "gld2_prt",14,247; end; - case 3: warp "gld2_prt",259,236; end; - case 4: warp "gld2_prt",226,25; end; - case 5: warp "gld2_prt",97,11; end; - } - } - end; - case 4: - mes "[Gate Manager]"; - mes "Canceled."; - close; - } - end; - -L_Enter: - .@invest_status = callfunc("F_Invest_Status"); - if (.@invest_status == 3) { - .@status = getd("$"+getarg(2)+"_invest_result"); - if ((getarg(0) == 1 && .@status == 2) || .@status == 3) - return; - else { - mes "[Gate Manager]"; - mes getarg(1)+" was not chosen to be connected with a gate this time."; - mes "Please wait for the next investment duration."; - close; - } - } else if (.@invest_status < 3) { - mes "[Gate Manager]"; - mes "There are currently no connected dungeon gates."; - mes "A gate will be connected as soon as the investment results are available."; - mes "Please wait."; - close; - } else { - mes "[Gate Manager]"; - mes "The gate will disappear soon."; - mes "The dungeon is no longer accessible."; - mes "Please try again next time."; - close; - } -} - -// Item Investments -//============================================================ -malangdo,218,126,4 script Cat Paw Merchants Notice 4_BOARD3,{ - mes "<< Cat Paw Merchants Notice >>"; - mes "'^C379CEInvest Unused Items for Prizes!^000000'"; - next; - switch(select("Read Notice:Check Event 1:Check Event 2")) { - case 1: - mes "- Notice -"; - mes "Hello all Cat Paw Merchants customers! With your love, we Cat Paw Merchants are growing every day. All executives and staff members promise to do our best to further our frontier and development."; - next; - mes "- Event Notice! -"; - mes " An Event called '^C379CEInvest Unused Items for Prizes!^000000' is under way, where you could exchange unused items in your storage for Investment Certificate of the Cat Paw Merchants."; - next; - mes "Exchangeable items will be announced on a separate sheet. Thank you for your time."; - mes "- From all the employees of Cat Paw Merchants -"; - next; - mes "There is a small warning at the bottom."; - mes " "; - mes "^FF0000This event could be changed or repealed due to the Merchants' situation.^000000"; - close; - case 2: - mes "'^C379CEInvest Unused Items for Prizes!^000000'"; - mes "There are details of Event 1."; - next; - setarray .@event1$[0], - "Wings of the Insect Queen","Crown of the Fly King","I hear Dragon Scales are tough 01","The Meaning of the Mother's Nightmare", - "To refine ore","Hekekek Orcs, Orcs!!","Study of Yin-Yang","Secrets of the Pyramid King","Tick-tock the time goes", - "Planting trees on Mellow Island","Ancient language research","Weapons made of sharp teeth","Toy boss doll 01", - "A tiger is just a cat after all","The shattered spear and shield?","Toy boss doll 02","Best in summer! Cold scales", - "Piece of Thanatos' armor","I hear Dragon Scales are tough 02","The identity of the creepy eye","If only I could see!"; - .@menu$ = "Quit:"+implode(.@event1$[0],":"); - while(1) { - .@i = select(.@menu$)-1; - switch(.@i) { - case 0: close; - case 1: .@str$ = "2 Pieces of Queen's Wing"; break; - case 2: .@str$ = "2 Broken Crowns"; break; - case 3: .@str$ = "2 Fire Dragon Scales"; break; - case 4: .@str$ = "3 Mother's Nightmares"; break; - case 5: .@str$ = "5 Gemstones"; break; - case 6: .@str$ = "5 Heroic Emblems"; break; - case 7: .@str$ = "3 Taeguk Plates"; break; - case 8: .@str$ = "3 Broken Pharaoh Symbols and 3 Tutankhamen's Masks"; break; - case 9: .@str$ = "2 Pocket Watches"; break; - case 10: .@str$ = "3 Young Twigs"; break; - case 11: .@str$ = "5 Rossata Pieces"; break; - case 12: .@str$ = "5 Fangs of Garm"; break; - case 13: .@str$ = "3 Baphomet Dolls"; break; - case 14: .@str$ = "1 Tiger's Footskin and 5 Tiger Skins"; break; - case 15: .@str$ = "3 Broken Shield Pieces and 3 Shining Spear Blades"; break; - case 16: .@str$ = "3 Osiris Dolls"; break; - case 17: .@str$ = "1 Ice Scale"; break; - case 18: .@str$ = "1 Skeletal Armor Piece"; break; - case 19: .@str$ = "1 Darkred Scale Piece"; break; - case 20: .@str$ = "2 Wills of Red Darkness"; break; - case 21: .@str$ = "2 Foolishness of the Blind"; break; - } - mes "["+.@event1$[.@i-1]+"]"; - mes .@str$+" for one Cat Paw Merchants Investment Certificate."; - next; - } - case 3: - mes "Look out for the next '^C379CEInvest Unused Items for Prizes!^000000' Event 2!! Coming up real soon!"; - close; - } -} - -malangdo,218,123,1 script Namis#invest 4_CAT_SAILOR2,4,4,{ - if (checkweight(1201,1) == 0 || MaxWeight - Weight < 1000) { - mes "- Currently you're carrying -"; - mes "- too many items with you. -"; - mes "- Please try again after you -"; - mes "- lose some weight. -"; - close; - } - emotion e_omg; - emotion e_an; - emotion e_ag; - mes "[Namis]"; - mes "Purr-Purr-Purrr-Purrrr-Pur~ Meow!!"; - mes "Wh-- What? How rude. You scared me."; - next; - switch(select("What do you need? I'll invest!:What's the purpose of this event?:Were you asleep?")) { - case 1: - break; - case 2: - mes "[Namis]"; - mes "So, another pushover in contract with the Cat Paw Merchants?"; - next; - select("Huh? What! You calling me a pushover?"); - mes "[Namis]"; - mes "I'll say this just once, so you listen good!"; - mes "We, the Cat Paw Merchants have planned an event for loyal workers like yourself."; - next; - mes "[Namis]"; - mes "Run along to your storage and bring back rotting antiques to us and we'll exchange them for the oh-so valuable 'Cat Paw Merchants Investment Certificate'."; - next; - mes "[Namis]"; - mes "It will be wise for you to do so because the Cat Paw Merchants are doing this at a loss!"; - next; - mes "[Namis]"; - mes "Details are on the notice."; - close; - case 3: - mes "[Namis]"; - mes "Hick- Slurp-"; - mes "Remember, human! There's no other cat who works as hard as I do."; - close; - } - mes "[Namis]"; - mes "You must be here to participate in the '^C379CEInvest Unused Items for Prizes!^000000' event of the Cat Paw Merchants."; - next; - mes "[Namis]"; - mes "So, which event do you wish to participate in?"; - next; - switch(select("Not interested:Event 1 Items:Event 2 Items")) { - case 1: - mes "[Namis]"; - mes "Don't you mess with a busy cat!"; - close; - case 2: - mes "[Namis]"; - mes "So you're in for Event 1."; - mes "Choose from the shown list."; - next; - setarray .@event1$[0], - "Wings of the Insect Queen","Crown of the Fly King","I hear Dragon Scales are tough 01","The Meaning of the Mother's Nightmare", - "To refine ore","Hekekek Orcs, Orcs!!","Study of Yin-Yang","Secrets of the Pyramid King","Tick-tock the time goes", - "Planting trees on Mellow Island","Ancient language research","Weapons made of sharp teeth","Toy boss doll 01", - "A tiger is just a cat after all","The shattered spear and shield?","Toy boss doll 02","Best in summer! Cold scales", - "Piece of Thanatos' armor","I hear Dragon Scales are tough 02","The identity of the creepy eye","If only I could see!"; - .@i = select(implode(.@event1$[0],":"))-1; - switch(.@i+1) { - case 1: callsub L_Check,"2 Pieces of Queen's Wing",6326,2,"Wings of the Insect Queen? What a pitiful name. I would've given some cool names!",.@event1$[.@i]; - case 2: callsub L_Check,"2 Broken Crowns",7754,2,"For crying out loud! Those cats working on these events must be playing around. Can't they think of a better name?",.@event1$[.@i]; - case 3: callsub L_Check,"2 Fire Dragon Scales",7451,2,"Dragon scales? Well... I guess they are tough. But what are they going to use them for?",.@event1$[.@i]; - case 4: callsub L_Check,"3 Mother's Nightmares",7020,3,"Even though I don't have the authority to find out, I wonder what they're doing with the collected items?",.@event1$[.@i]; - case 5: callsub L_Check,"5 Gemstones",7300,5,"Something useful for a change. The ore will end up as nice pieces of jewelry.",.@event1$[.@i]; - case 6: callsub L_Check,"5 Heroic Emblems",968,5,"Good, good. This is the kind of name I wanted!",.@event1$[.@i]; - case 7: callsub L_Check,"3 Taeguk Plates",7169,3,"Taking in something like this, maybe they're up to something dangerous.",.@event1$[.@i]; - case 8: callsub L_Check,"3 Broken Pharaoh Symbols and 3 Tutankhamen's Masks",7113,3,"I hear the pyramids are in Morroc, but I've never been there. Some humans call it Morco.",.@event1$[.@i],7114,3; - case 9: callsub L_Check,"2 Pocket Watches",7513,2,"Those lazy merchants, why do they need pocket watches they don't even use?",.@event1$[.@i]; - case 10: callsub L_Check,"3 Young Twigs",7018,3,"Mellow Island has a climate like with where we cats used to live. But the trees die out sometimes due to it being an island.",.@event1$[.@i]; - case 11: callsub L_Check,"5 Rossata Pieces",7211,5,"I guess they collect these because humans have them, but what's the use of researching ancient languages?",.@event1$[.@i]; - case 12: callsub L_Check,"5 Fangs of Garm",7036,5,"Weak humans need sharp weapons, but cats already have nice and sharp claws, so why are we collecting these!!",.@event1$[.@i]; - case 13: callsub L_Check,"3 Baphomet Dolls",750,3,"Baphomet dolls are great for playing around with.",.@event1$[.@i]; - case 14: callsub L_Check,"1 Tiger's Footskin and 5 Tiger Skins",1030,1,"Did you know that tigers are cats too? Therefore, cats are better than tigers.",.@event1$[.@i],1029,5; - case 15: callsub L_Check,"3 Broken Shield Pieces and 3 Shining Spear Blades",7108,3,"I don't know what they want with these.",.@event1$[.@i],7109,3; - case 16: callsub L_Check,"3 Osiris Dolls",751,3,"Shame~ I never got to play with an Osiris doll.",.@event1$[.@i]; - case 17: callsub L_Check,"1 Ice Scale",7562,1,"Mellow Island is a fabulous place to live. But the ships are too hot.",.@event1$[.@i]; - case 18: callsub L_Check,"1 Skeletal Armor Piece",7450,1,"Ewww... Why would they collect something so creepy?",.@event1$[.@i]; - case 19: callsub L_Check,"1 Darkred Scale Piece",6091,1,"Dragon scales? Well... I guess they are tough. But what are they going to use them for?",.@event1$[.@i]; - case 20: callsub L_Check,"2 Wills of Red Darkness",7566,2,"Interesting! Does it scream or something when I poke it in the eye?",.@event1$[.@i]; - case 21: callsub L_Check,"2 Foolishness of the Blind",7021,2,"This blind man is foolish in not knowing that gathering 300 cats cures blindness...",.@event1$[.@i]; - } - case 3: - mes "[Namis]"; - mes "Participate in Event 2?"; - mes "It is not yet in motion. Wait for it!"; - close; - } - end; -L_Check: - .@args = getargcount(); - if (.@args > 5) { - if (countitem(getarg(5)) < getarg(6)) - .@items = 1; //incomplete - else - .@items = 2; //complete - } - if (countitem(getarg(1)) < getarg(2) || .@items == 1) { - mes "[Namis]"; - mes "You don't have the items?"; - mes getarg(0)+" exchange for one Cat Paw Merchants Investment Certificate."; - next; - mes "[Namis]"; - mes "Don't bother me and look up the details on the board over there!"; - close; - } - mes "[Namis]"; - mes "'^8E5601"+getarg(4)+" Event^000000'"; - mes "Seems to be the right items."; - mes getarg(3); - mes "Oh! Almost forgot. Will you invest?"; - next; - if(select("Invest:Don't Invest") == 2) { - mes "[Namis]"; - mes "Don't you mess with a busy cat!"; - close; - } - delitem getarg(1),getarg(2); - if (.@items == 2) - delitem getarg(5),getarg(6); - getitem 6489,1; //Cats_Invest_Certif - mes "[Namis]"; - mes "Here's your Certificate. Always be grateful to the Merchants for these events!"; - close; -OnTouch: - if (rand(2)) - emotion e_yawn; - else - specialeffect EF_SLEEPATTACK; - end; -} - -// Investment Rewards -//============================================================ -malangdo,215,119,4 script Thanks Ticket Machine 2_VENDING_MACHINE1,{ - if (MaxWeight - Weight < 4500 || checkweight(1201,1) == 0) { - mes "- Currently you're carrying -"; - mes "- too many items with you. -"; - mes "- Please try again after you -"; - mes "- lose some weight. -"; - close; - } - mes "[Vending Machine Notice]"; - mes "^6815EA1. Don't kick the machine please. @_@"; - mes "2. You can only insert Invest Thanks Ticket."; - mes "3. About the Jelly Box, if you open it, it gives you a random item."; - mes "4. Hope you enjoy~^000000"; - mes "- Mr. Cat, the Machine Owner -"; - next; - switch(select("Finish:Purchase:Red Paw Jelly Bag (5 Tickets):Black Paw Jelly Bag (50 Tickets)")) { - case 1: - close; - case 2: - mes "The Vending Machine is selling items in the following list."; - next; - switch(select("Finish:1 Siege Arrow Quiver A (2 Tickets):1 Siege Arrow Quiver S (2 Tickets):30 White Potion (12 Tickets):30 White Slim Potion (14 Tickets):10 Dark Water (20 Tickets):20 Siege_Violet_Potion (30 Tickets):10 Coldproof Potion (30 Tickets):10 Thunderproof Potion (30 Tickets):10 Earthproof Potion (30 Tickets):10 Fireproof Potion (30 Tickets):10 Elemental Converter[Fire] (30 Tickets)")) { - case 1: close; - case 2: callsub L_Purchase,2,12678,1; //Siege_Arrow_Quiver_A - case 3: callsub L_Purchase,2,12677,1; //Siege_Arrow_Quiver_S - case 4: callsub L_Purchase,12,504,30; //White_Potion - case 5: callsub L_Purchase,14,547,30; //White_Slim_Potion - case 6: callsub L_Purchase,20,12020,10; //Water_Of_Darkness - case 7: callsub L_Purchase,30,11547,20; //Woe_Violet_Potion - case 8: callsub L_Purchase,30,12119,10; //Resist_Water - case 9: callsub L_Purchase,30,12121,10; //Resist_Wind - case 10: callsub L_Purchase,30,12120,10; //Resist_Earth - case 11: callsub L_Purchase,30,12118,10; //Resist_Fire - case 12: callsub L_Purchase,30,12114,10,"Elemental Converter[Fire]"; //Elemental_Fire - case 13: callsub L_Purchase,30,12115,10,"Elemental Converter[Water]"; //Elemental_Water - case 14: callsub L_Purchase,30,12117,10,"Elemental Converter[Wind]"; //Elemental_Wind - case 15: callsub L_Purchase,30,12116,10,"Elemental Converter[Earth]"; //Elemental_Earth - } - end; - case 3: - mes "Red Paw Jelly Bag Button chosen. Need to insert 5 ^FF0000Invest Thanks Ticket^000000 and a random item will appear."; - next; - if (countitem(6488) < 5) { - mes "You don't have enough ^FF0000Invest Thanks Ticket^000000 to proceed."; - close; - } - delitem 6488,5; //Thanks_Invest_Ticket - .@i = rand(1,10000); - if (.@i <= 100) callsub L_Bag,12531,1; //White_Potion_Box - else if (.@i <= 200) callsub L_Bag,12549,1; //White_Slim_Pot_Box2 - else if (.@i <= 250) callsub L_Bag,11549,10; //Woe_Blue_Potion - else if (.@i <= 660) callsub L_Bag,617,1; //Old_Violet_Box - else if (.@i <= 710) callsub L_Bag,12532,1; //Royal_Jelly_Box2 - else if (.@i <= 760) callsub L_Bag,12533,1; //Blue_Herb_Box2 - else if (.@i <= 810) callsub L_Bag,505,5; //Blue_Potion - else if (.@i <= 1110) callsub L_Bag,644,1; //Gift_Box - else if (.@i <= 1120) callsub L_Bag,607,1; //Yggdrasilberry - else if (.@i <= 1130) callsub L_Bag,608,2; //Seed_Of_Yggdrasil - else if (.@i <= 1140) callsub L_Bag,12292,5; //Unripe_Fruit - else if (.@i <= 1150) callsub L_Bag,12293,5; //Dried_Yggdrasilberry - else if (.@i <= 1250) callsub L_Bag,12679,1; //Sg_White_Potion_Box - else if (.@i <= 1471) callsub L_Bag,603,1; //Old_Blue_Box - else if (.@i <= 1571) callsub L_Bag,12550,1,"Poison Bottle Box(30)"; //Poison_Bottle_Box2 - else if (.@i <= 1671) callsub L_Bag,12020,10; //Water_Of_Darkness - else if (.@i <= 1871) callsub L_Bag,12030,5; //Box_Of_Grudge - else if (.@i <= 2071) callsub L_Bag,12031,5; //Sleepy_Box - else if (.@i <= 2371) callsub L_Bag,12033,2; //Box_Of_Sunlight - else if (.@i <= 2571) callsub L_Bag,12114,5,"Elemental Converter[Fire]"; //Elemental_Fire - else if (.@i <= 2771) callsub L_Bag,12115,5,"Elemental Converter[Water]"; //Elemental_Water - else if (.@i <= 2971) callsub L_Bag,12117,5,"Elemental Converter[Wind]"; //Elemental_Wind - else if (.@i <= 3171) callsub L_Bag,12116,5,"Elemental Converter[Earth]"; //Elemental_Earth - else if (.@i <= 3271) callsub L_Bag,12680,1; //Sg_Blue_Potion_Box - else if (.@i <= 3471) callsub L_Bag,12118,5; //Resist_Fire - else if (.@i <= 3671) callsub L_Bag,12119,5; //Resist_Water - else if (.@i <= 3871) callsub L_Bag,12121,5; //Resist_Wind - else if (.@i <= 4071) callsub L_Bag,12120,5; //Resist_Earth - else if (.@i <= 4271) callsub L_Bag,929,20; //Immortal_Heart - else if (.@i <= 4471) callsub L_Bag,1059,20; //Transparent_Cloth - else if (.@i <= 4671) callsub L_Bag,905,20; //Stem - else if (.@i <= 4871) callsub L_Bag,606,10; //Aloebera - else if (.@i <= 5071) callsub L_Bag,609,10; //Amulet - else if (.@i <= 5271) callsub L_Bag,710,2; //Illusion_Flower - else if (.@i <= 5471) callsub L_Bag,576,20; //Prickly_Fruit - else if (.@i <= 5671) callsub L_Bag,621,10; //Bitter_Herb - else if (.@i <= 5871) callsub L_Bag,709,10; //Izidor - else if (.@i <= 6071) callsub L_Bag,605,10; //Anodyne - else if (.@i <= 6171) callsub L_Bag,11548,10; //Woe_White_Potion - else if (.@i <= 6371) callsub L_Bag,706,10; //Four_Leaf_Clover - else if (.@i <= 6571) callsub L_Bag,521,10; //Leaflet_Of_Aloe - else if (.@i <= 6771) callsub L_Bag,707,10; //Singing_Plant - else if (.@i <= 6971) callsub L_Bag,610,10; //Leaf_Of_Yggdrasil - else if (.@i <= 7021) callsub L_Bag,12676,1; //Sg_Violet_Potion_Box - else if (.@i <= 7171) callsub L_Bag,6249,10; //Savage_Meat - else if (.@i <= 7321) callsub L_Bag,6252,10; //Wolf_Blood - else if (.@i <= 7471) callsub L_Bag,6254,10; //Beef_Head_Meat - else if (.@i <= 7621) callsub L_Bag,6253,10; //Cold_Ice - else if (.@i <= 7771) callsub L_Bag,6256,10; //Ice_Fragment - else if (.@i <= 7921) callsub L_Bag,6257,10; //Ice_Crystal - else if (.@i <= 8071) callsub L_Bag,6260,10; //Petti_Tail - else if (.@i <= 8309) callsub L_Bag,7932,20; //Poison_Herb_Nerium - else if (.@i <= 8547) callsub L_Bag,7933,20; //Poison_Herb_Rantana - else if (.@i <= 8785) callsub L_Bag,7934,20; //Poison_Herb_Makulata - else if (.@i <= 9023) callsub L_Bag,7935,20; //Poison_Herb_Seratum - else if (.@i <= 9261) callsub L_Bag,7936,20; //Poison_Herb_Scopolia - else if (.@i <= 9499) callsub L_Bag,7937,20; //Poison_Herb_Amoena - else if (.@i <= 9699) callsub L_Bag,6217,20; //Mandragora_Flowerpot - else callsub L_Bag,12016,10; //Speed_Up_Potion - end; - case 4: - mes "Black Paw Jelly Bag Button chosen. Need to insert 50 ^FF0000Invest Thanks Ticket^000000 and a random item will appear."; - next; - if (countitem(6488) < 50) { - mes "You don't have enough ^FF0000Invest Thanks Ticket^000000 to proceed."; - close; - } - delitem 6488,50; //Thanks_Invest_Ticket - .@i = rand(1,10000); - if (.@i <= 100) callsub L_Bag,12531,1; //White_Potion_Box - else if (.@i <= 200) callsub L_Bag,12549,1; //White_Slim_Pot_Box2 - else if (.@i <= 250) callsub L_Bag,11549,20; //Woe_Blue_Potion - else if (.@i <= 450) callsub L_Bag,617,1; //Old_Violet_Box - else if (.@i <= 500) callsub L_Bag,12532,1; //Royal_Jelly_Box2 - else if (.@i <= 550) callsub L_Bag,12533,1; //Blue_Herb_Box2 - else if (.@i <= 600) callsub L_Bag,505,10; //Blue_Potion - else if (.@i <= 800) callsub L_Bag,644,1; //Gift_Box - else if (.@i <= 810) callsub L_Bag,607,2; //Yggdrasilberry - else if (.@i <= 820) callsub L_Bag,608,3; //Seed_Of_Yggdrasil - else if (.@i <= 830) callsub L_Bag,12292,10; //Unripe_Fruit - else if (.@i <= 840) callsub L_Bag,12293,10; //Dried_Yggdrasilberry - else if (.@i <= 940) callsub L_Bag,12679,1; //Sg_White_Potion_Box - else if (.@i <= 1140) callsub L_Bag,603,1; //Old_Blue_Box - else if (.@i <= 1240) callsub L_Bag,12550,1,"Poison Bottle Box(30)"; //Poison_Bottle_Box2 - else if (.@i <= 1340) callsub L_Bag,12020,20; //Water_Of_Darkness - else if (.@i <= 1440) callsub L_Bag,12030,10; //Box_Of_Grudge - else if (.@i <= 1540) callsub L_Bag,12031,10; //Sleepy_Box - else if (.@i <= 1690) callsub L_Bag,12033,4; //Box_Of_Sunlight - else if (.@i <= 1790) callsub L_Bag,12114,10,"Elemental Converter[Fire]"; //Elemental_Fire - else if (.@i <= 1890) callsub L_Bag,12115,10,"Elemental Converter[Water]"; //Elemental_Water - else if (.@i <= 1990) callsub L_Bag,12117,10,"Elemental Converter[Wind]"; //Elemental_Wind - else if (.@i <= 2090) callsub L_Bag,12116,10,"Elemental Converter[Earth]"; //Elemental_Earth - else if (.@i <= 2190) callsub L_Bag,12680,1; //Sg_Blue_Potion_Box - else if (.@i <= 2290) callsub L_Bag,12118,10; //Resist_Fire - else if (.@i <= 2390) callsub L_Bag,12119,10; //Resist_Water - else if (.@i <= 2490) callsub L_Bag,12121,10; //Resist_Wind - else if (.@i <= 2590) callsub L_Bag,12120,10; //Resist_Earth - else if (.@i <= 2690) callsub L_Bag,929,40; //Immortal_Heart - else if (.@i <= 2790) callsub L_Bag,1059,40; //Transparent_Cloth - else if (.@i <= 2890) callsub L_Bag,905,40; //Stem - else if (.@i <= 2990) callsub L_Bag,606,20; //Aloebera - else if (.@i <= 3090) callsub L_Bag,609,20; //Amulet - else if (.@i <= 3190) callsub L_Bag,710,4; //Illusion_Flower - else if (.@i <= 3290) callsub L_Bag,576,40; //Prickly_Fruit - else if (.@i <= 3390) callsub L_Bag,621,20; //Bitter_Herb - else if (.@i <= 3490) callsub L_Bag,709,20; //Izidor - else if (.@i <= 3590) callsub L_Bag,605,20; //Anodyne - else if (.@i <= 3690) callsub L_Bag,11548,20; //Woe_White_Potion - else if (.@i <= 3790) callsub L_Bag,706,20; //Four_Leaf_Clover - else if (.@i <= 3890) callsub L_Bag,521,20; //Leaflet_Of_Aloe - else if (.@i <= 3990) callsub L_Bag,707,20; //Singing_Plant - else if (.@i <= 4090) callsub L_Bag,610,20; //Leaf_Of_Yggdrasil - else if (.@i <= 4140) callsub L_Bag,12676,1; //Sg_Violet_Potion_Box - else if (.@i <= 4240) callsub L_Bag,6249,20; //Savage_Meat - else if (.@i <= 4340) callsub L_Bag,6252,20; //Wolf_Blood - else if (.@i <= 4440) callsub L_Bag,6254,20; //Beef_Head_Meat - else if (.@i <= 4540) callsub L_Bag,6253,20; //Cold_Ice - else if (.@i <= 4640) callsub L_Bag,6256,20; //Ice_Fragment - else if (.@i <= 4740) callsub L_Bag,6257,20; //Ice_Crystal - else if (.@i <= 4840) callsub L_Bag,6260,20; //Petti_Tail - else if (.@i <= 4940) callsub L_Bag,7932,40; //Poison_Herb_Nerium - else if (.@i <= 5040) callsub L_Bag,7933,40; //Poison_Herb_Rantana - else if (.@i <= 5140) callsub L_Bag,7934,40; //Poison_Herb_Makulata - else if (.@i <= 5240) callsub L_Bag,7935,40; //Poison_Herb_Seratum - else if (.@i <= 5340) callsub L_Bag,7936,40; //Poison_Herb_Scopolia - else if (.@i <= 5440) callsub L_Bag,7937,40; //Poison_Herb_Amoena - else if (.@i <= 5540) callsub L_Bag,6217,40; //Mandragora_Flowerpot - else if (.@i <= 6000) callsub L_Bag,12016,20; //Speed_Up_Potion - else if (.@i <= 6500) callsub L_Bag,2483,1; //Siege_Greave - else if (.@i <= 7000) callsub L_Bag,2484,1; //Siege_Boots - else if (.@i <= 7500) callsub L_Bag,2485,1; //Siege_Shoes - else if (.@i <= 8000) callsub L_Bag,2586,1; //Siege_Manteau - else if (.@i <= 8500) callsub L_Bag,2587,1; //Siege_Muffler - else if (.@i <= 9000) callsub L_Bag,15046,1; //Siege_Plate - else if (.@i <= 9500) callsub L_Bag,15047,1; //Siege_Suits - else callsub L_Bag,15048,1; //Siege_Robe - end; - } - end; - -//callsub L_Purchase,,,{,}; -L_Purchase: - if (countitem(6488) < getarg(0)) { - mes "You don't have enough ^FF0000Invest Thanks Ticket^000000 to proceed."; - close; - } - delitem 6488,getarg(0); //Thanks_Invest_Ticket - getitem getarg(1),getarg(2); - mes "- Done! -"; - next; - mes "The item ^0000FF"+((getargcount() > 3)?getarg(3,""):getitemname(getarg(1)))+"^000000 has been obtained."; - close; - -//callsub L_Bag,,{,}; -L_Bag: - getitem getarg(0),getarg(1); - mes "- Done! -"; - next; - mes "The item ^0000FF"+((getargcount() > 2)?getarg(2,""):getitemname(getarg(0)))+"^000000 has been obtained."; - close; -} diff --git a/npc/re/guild/invest_npc.txt b/npc/re/guild/invest_npc.txt deleted file mode 100644 index a1d564e00..000000000 --- a/npc/re/guild/invest_npc.txt +++ /dev/null @@ -1,65 +0,0 @@ -//===== Hercules Script ====================================== -//= Hall of Abyss - NPC Duplicates -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Description: ========================================= -//= [Official Conversion] -//= Expansion for War of Emperium FE. -//= Invest in each realm to unlock new maps: -//= - Guild Dungeon F2, total 20,000,000z. -//= - Hall of Abyss, total 70,000,000z. -//===== Additional Comments: ================================= -//= 1.0 First version. [Euphy] -//============================================================ - -// Realms - Merchant Guilds, Gate Managers, Status Boards -//============================================================ -alde_gld,186,157,3 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Megrez 4_CAT_MERMASTER -alde_gld,191,164,3 duplicate(Gate Manager#realm) Gate Manager#alde_f00 4_M_BOSSCAT -alde_gld,188,158,3 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Alde 4_BOARD3 - -gef_fild13,187,208,3 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Meraq 4_CAT_MERMASTER -gef_fild13,189,206,3 duplicate(Gate Manager#realm) Gate Manager#gef_f00 4_M_BOSSCAT -gef_fild13,190,209,3 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Gef 4_BOARD3 - -pay_gld,203,189,3 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Phecda 4_CAT_MERMASTER -pay_gld,206,189,3 duplicate(Gate Manager#realm) Gate Manager#pay_f00 4_M_BOSSCAT -pay_gld,200,189,5 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Pay 4_BOARD3 - -prt_gld,158,96,5 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Dubae 4_CAT_MERMASTER -prt_gld,161,96,3 duplicate(Gate Manager#realm) Gate Manager#prt_f00 4_M_BOSSCAT -prt_gld,163,99,3 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Prt 4_BOARD3 - -// Inside Castles - Gate Managers -//============================================================ -aldeg_cas01,85,105,4 duplicate(Gate Manager#castle) Gate Manager#alde_f01 4_M_BOSSCAT -aldeg_cas02,124,49,3 duplicate(Gate Manager#castle) Gate Manager#alde_f02 4_M_BOSSCAT -aldeg_cas03,121,75,3 duplicate(Gate Manager#castle) Gate Manager#alde_f03 4_M_BOSSCAT -aldeg_cas04,25,67,7 duplicate(Gate Manager#castle) Gate Manager#alde_f04 4_M_BOSSCAT -aldeg_cas05,54,200,3 duplicate(Gate Manager#castle) Gate Manager#alde_f05 4_M_BOSSCAT - -gefg_cas01,39,49,4 duplicate(Gate Manager#castle) Gate Manager#gef_f01 4_M_BOSSCAT -gefg_cas02,10,65,4 duplicate(Gate Manager#castle) Gate Manager#gef_f02 4_M_BOSSCAT -gefg_cas03,100,87,4 duplicate(Gate Manager#castle) Gate Manager#gef_f03 4_M_BOSSCAT -gefg_cas04,35,44,3 duplicate(Gate Manager#castle) Gate Manager#gef_f04 4_M_BOSSCAT -gefg_cas05,84,46,3 duplicate(Gate Manager#castle) Gate Manager#gef_f05 4_M_BOSSCAT - -payg_cas01,129,59,3 duplicate(Gate Manager#castle) Gate Manager#pay_f01 4_M_BOSSCAT -payg_cas02,27,277,3 duplicate(Gate Manager#castle) Gate Manager#pay_f02 4_M_BOSSCAT -payg_cas03,51,266,3 duplicate(Gate Manager#castle) Gate Manager#pay_f03 4_M_BOSSCAT -payg_cas04,39,264,4 duplicate(Gate Manager#castle) Gate Manager#pay_f04 4_M_BOSSCAT -payg_cas05,272,252,4 duplicate(Gate Manager#castle) Gate Manager#pay_f05 4_M_BOSSCAT - -prtg_cas01,114,178,3 duplicate(Gate Manager#castle) Gate Manager#prt_f01 4_M_BOSSCAT -prtg_cas02,89,63,5 duplicate(Gate Manager#castle) Gate Manager#prt_f02 4_M_BOSSCAT -prtg_cas03,72,109,3 duplicate(Gate Manager#castle) Gate Manager#prt_f03 4_M_BOSSCAT -prtg_cas04,29,263,4 duplicate(Gate Manager#castle) Gate Manager#prt_f04 4_M_BOSSCAT -prtg_cas05,24,23,4 duplicate(Gate Manager#castle) Gate Manager#prt_f05 4_M_BOSSCAT - -// iRO NPC Locations -//============================================================ -//prt_gld,148,253,4 duplicate(Cat Paw Merchants Notice) Cat Paw Merchants Notice::CatPawNotice_iRO 4_BOARD3 -//prt_gld,145,255,6 duplicate(Namis#invest) Namis::Namis_iRO 4_CAT_SAILOR2,4,4 -//prt_gld,165,50,4 duplicate(Thanks Ticket Machine) Thanks Ticket Machine::ThanksMachine_iRO 2_VENDING_MACHINE1 diff --git a/npc/re/scripts_guild.conf b/npc/re/scripts_guild.conf deleted file mode 100644 index e5c01e436..000000000 --- a/npc/re/scripts_guild.conf +++ /dev/null @@ -1,8 +0,0 @@ -// -------------------------------------------------------------- -// - Renewal Guild Wars - -// -------------------------------------------------------------- - -// ----------------------- War of Emperium ---------------------- -// - Hall of Abyss -npc: npc/re/guild/invest_main.txt -npc: npc/re/guild/invest_npc.txt diff --git a/npc/re/scripts_main.conf b/npc/re/scripts_main.conf index 28f514d19..3e0bceecc 100644 --- a/npc/re/scripts_main.conf +++ b/npc/re/scripts_main.conf @@ -27,7 +27,7 @@ npc: npc/other/CashShop_Functions.txt // ------------------- Common Script Files ---------------------- import: npc/scripts.conf -import: npc/scripts_guild.conf +import: npc/scripts_woe.conf import: npc/scripts_jobs.conf import: npc/scripts_mapflags.conf import: npc/scripts_monsters.conf @@ -35,7 +35,7 @@ import: npc/scripts_warps.conf // ------------------- Renewal Script Files --------------------- import: npc/re/scripts.conf -import: npc/re/scripts_guild.conf +import: npc/re/scripts_woe.conf import: npc/re/scripts_jobs.conf import: npc/re/scripts_monsters.conf import: npc/re/scripts_warps.conf diff --git a/npc/re/scripts_woe.conf b/npc/re/scripts_woe.conf new file mode 100644 index 000000000..c3a2ecccf --- /dev/null +++ b/npc/re/scripts_woe.conf @@ -0,0 +1,8 @@ +// -------------------------------------------------------------- +// - Renewal Guild Wars - +// -------------------------------------------------------------- + +// ----------------------- War of Emperium ---------------------- +// - Hall of Abyss +npc: npc/re/woe-fe/invest_main.txt +npc: npc/re/woe-fe/invest_npc.txt diff --git a/npc/re/woe-fe/invest_main.txt b/npc/re/woe-fe/invest_main.txt new file mode 100644 index 000000000..9ed49ce7a --- /dev/null +++ b/npc/re/woe-fe/invest_main.txt @@ -0,0 +1,1676 @@ +//===== Hercules Script ====================================== +//= Hall of Abyss - Core Scripts +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.1 +//===== Description: ========================================= +//= [Official Conversion] +//= Expansion for War of Emperium FE. +//= Invest in each realm to unlock new maps: +//= - Guild Dungeon F2, total 20,000,000z. +//= - Hall of Abyss, total 70,000,000z. +//===== Additional Comments: ================================= +//= 1.0 First version. Missing official times. [Euphy] +//= 1.1 Added GM management function. [Euphy] +//============================================================ + +// Global Variables +//============================================================ +// Note: an asterisk (*) represents any realm (prt, pay, gef, alde). +/* +$2011_agit_invest +-- 0: Inactive. +-- 1: Investment in progress. +-- 2: Investment results calculating. +-- 4: Investment calculations complete (only when at least one $*_invest_result is 3). +-- 11-21: Tie, revote required. + +$agit_result_notice +-- 0: Inactive. +-- 1-12: Interim statements (displaying $@vfund_*x) available. + +$agit_result_timer +-- 0: Inactive. +-- 0-59: Time elapsed during investment (in hours). + +$agit_revoting_timer +-- 0: Inactive. +-- 0-29: Time elapsed during revote (in minutes). +-- 30: Revote closed. +-- 31: Revote results calculating. + +$*_invest_result +-- 0: No data. +-- 1: Realm not connected. +-- 2: Guild Dungeon F2 open. +-- 3: Abyss Gate (Hall of Abyss and Gulid Dungeon F2) open. + +$fund_*[01-05] +-- Investment units per guild castle. +$fund_*_extra +-- Investment units per realm. + +$@vfund_*[01-05] +$@vfund_*_extra +-- Investment units, used in interim statements only. +*/ + +// Investment Functions & Controller +//============================================================ +// Note: The times in this section are almost entirely custom. + +- script #invest_timer -1,{ +OnClock0000: // Open investments on Wed (1 hour after WoE) + if (gettime(4) == 3 && !agitcheck()) { + $2011_agit_invest = 1; + donpcevent "#fund_master::OnInvest_start"; + } + end; +OnClock1200: // Close investments on Fri (60 hours after investments open) + if (gettime(4) == 5 && !agitcheck()) { + $2011_agit_invest = 2; + donpcevent "#fund_master::OnInvest_stop"; + } + end; +OnClock1235: // Open dungeons on Fri (at least 31 minutes after investments close) + if (gettime(4) == 5 && !agitcheck()) + donpcevent "#fund_master::OnResult"; + end; +OnClock2000: // Close dungeons on Tues (1 hour before WoE) + if (gettime(4) == 2) + donpcevent "#fund_master::OnReset"; + end; +} + +function script F_Invest_Status { + .@day = gettime(4); + .@hour = gettime(3); + .@minute = gettime(2); + + // Inactive. + if (agitcheck()) + return 0; + + // Open for investments. + if (.@day >= 3 && (.@day < 5 || (.@day == 5 && .@hour <= 12))) + return 1; + + // Investments closed, calculating results. + if (.@day == 5 && .@hour == 12 && .@minute < 35) + return 2; + + // Calculations complete, dungeons open. + if ((.@day == 5 && (.@hour > 12 || (.@hour == 12 && .@minute >= 35))) || .@day > 5 || + .@day < 2 || (.@day == 2 && .@hour < 20)) + return 3; + + // Dungeons closed. + return 0; +} + +//callfunc "F_Invest_Abyss","",""{,""}; +function script F_Invest_Abyss { + mes "There are 2 ways to invest, by Zeny or the Investment Certificate given out by the Cat Paw Merchant Guild."; + mes "Which way would you like to make your investment?"; + next; + switch(select("Invest with Zeny.:Invest with Investment Certificates.:Cancel")) { + case 1: + mes getarg(1); + mes "So you've decided to invest in Zeny."; + mes "Minimum investment unit is ^4d4dff10,000 Zeny^000000."; + mes "You can invest a maximum of 50 units which is ^4d4dff500,000 Zeny^000000."; + next; + switch(select("1 unit 10,000 Zeny:10 units 100,000 Zeny:50 units 500,000 Zeny:Another amount:Cancel")) { + case 1: + .@units = 1; + break; + case 2: + .@units = 10; + break; + case 3: + .@units = 50; + break; + case 4: + mes getarg(1); + mes "Please enter the amount you want to invest."; + mes "Please choose between 1 to 200."; + mes "Please enter 0 to cancel."; + next; + input .@units; + if (.@units < 0 || .@units > 200) { + mes getarg(1); + mes "You've exceeded the amount per investment."; + mes "Please try again."; + close; + } else if (.@units == 0) { + mes getarg(1); + mes "Canceled."; + close; + } else + break; + case 5: + mes getarg(1); + mes "Canceled."; + close; + } + .@zeny = .@units * 10000; + if (Zeny < .@zeny) { + mes getarg(1); + mes "You do not have enough money."; + close; + } + mes getarg(1); + mes "You've invested "+.@units+" unit"+((.@units == 1)?"":"s")+" "+((.@units < 100)?.@units:insertchar(""+.@units,",",1))+"0,000 Zeny"+getarg(2,"")+"."; + mes "Not much but this is a small gift. You can exchange it with items in Malangdo."; + Zeny -= .@zeny; + setd getarg(0), getd(getarg(0)) + .@units; + getitem 6488,.@units; //Thanks_Invest_Ticket + close; + case 2: + mes getarg(1); + mes "Wow, you've brought Investment Certificates."; + mes "How many certificates will you submit?"; + next; + switch(select("1 Investment Certificate:5 Investment Certificates:Another amount:Cancel")) { + case 1: + .@tickets = 1; + break; + case 2: + .@tickets = 5; + break; + case 3: + mes getarg(1); + mes "Please enter the number of Investment Certificates you want to submit."; + mes "Please choose between 1 to 20."; + mes "Please enter 0 to cancel."; + next; + input .@tickets; + if (.@tickets < 0 || .@tickets > 20) { + mes getarg(1); + mes "You've exceeded the amount per investment."; + mes "Please try again."; + close; + } else if (.@tickets == 0) { + mes getarg(1); + mes "Canceled."; + close; + } else + break; + case 4: + mes getarg(1); + mes "Canceled."; + close; + } + if (countitem(6489) < .@tickets) { + mes getarg(1); + mes "Looks like you have fewer Investment Certificates than you want to submit."; + close; + } + .@units = .@tickets * 10; + mes getarg(1); + mes .@tickets+" Investment Certificate"+((.@tickets == 1)?" is":"s are")+" the same as an investment of "+.@units+" units ("+((.@units < 100)?.@units:insertchar(""+.@units,",",1))+"0,000z)"+getarg(2,"")+"."; + mes "Not much but this is a small gift. You can exchange it with items in Malangdo."; + delitem 6489,.@tickets; //Cats_Invest_Certif + setd getarg(0), getd(getarg(0)) + .@units; + getitem 6488,.@units; //Thanks_Invest_Ticket + close; + case 3: + mes getarg(1); + mes "Canceled."; + close; + } +} + +// Script Core +//============================================================ +prt_gld,1,1,0 script #fund_master CLEAR_NPC,{ + end; +OnInit: + .@invest_status = callfunc("F_Invest_Status"); + if (.@invest_status == 1) { + $2011_agit_invest = 1; + end; + } + if ((.@invest_status == 2 && $2011_agit_invest == 1) || + (.@invest_status == 3 && ($2011_agit_invest == 1 || $2011_agit_invest == 2))) { + donpcevent "#fund_master::OnCalculate"; + end; + } + end; +OnCalculate_Election: + .@force_vote = 1; +OnCalculate: + setarray .@cas$[0],"prt","pay","gef","alde"; + for(.@i = 0; .@i<4; ++.@i) { + // All funds per realm are summed. + .@funds[.@i] = getd("$fund_"+.@cas$[.@i]+"01")+getd("$fund_"+.@cas$[.@i]+"02")+getd("$fund_"+.@cas$[.@i]+"03")+getd("$fund_"+.@cas$[.@i]+"04")+getd("$fund_"+.@cas$[.@i]+"05")+getd("$fund_"+.@cas$[.@i]+"_extra"); + + // 70,000,000z opens Hall of Abyss and F2. + if (.@funds[.@i] >= 7000) { + setd "$"+.@cas$[.@i]+"_invest_result",3; + .@total_7000 = 1; + } + // 20,000,000z opens F2 and a chance for Hall of Abyss. + else if (.@funds[.@i] >= 2000) { + setd "$"+.@cas$[.@i]+"_invest_result",2; + .@total_2000 = 1; + } + // Anything below that opens nothing. + else + setd "$"+.@cas$[.@i]+"_invest_result",1; + } + // No further actions if 20,000,000z isn't reached. + if (!.@total_2000) + end; + // No further actions if any realm hits 70,000,000z. + if (.@total_7000) { + $2011_agit_invest = 4; + end; + } + // Otherwise, highest investment above 20,000,000z opens Hall of Abyss. + .@max = .@funds[0]; + for(.@i = 1; .@i<4; ++.@i) { + if (.@funds[.@i] > .@max) { + .@max = .@funds[.@i]; + .@ele = .@i; + deletearray .@rand$[0], getarraysize(.@rand$); + } else if (.@funds[.@i] == .@max && .@funds[.@i] >= 2000) { + if (!getarraysize(.@rand$)) + .@rand$[0] = .@cas$[.@ele]; + .@rand$[getarraysize(.@rand$)] = .@cas$[.@i]; + } + } + if (.@max < 2000) + end; + if (getarraysize(.@rand$)) { + + // Tie: declare a random winner. + if (!.@force_vote) { + .@i = rand(getarraysize(.@rand$)); + setd "$"+.@rand$[.@i]+"_invest_result",3; + $2011_agit_invest = 4; + end; + } + + // Tie: initiate a 30-minute election. + .@str$ = implode(.@rand$,"|"); + for(.@i = 0; .@i<4; ++.@i) { + if (compare(.@str$,.@cas$[.@i])) + .@election = .@election | (1<<.@i); + } + switch(.@election) { + case 3: $2011_agit_invest = 11; break; //Prontera|Payon + case 9: $2011_agit_invest = 12; break; //Prontera|Al De Baran + case 5: $2011_agit_invest = 13; break; //Prontera|Geffen + case 10: $2011_agit_invest = 14; break; //Al De Baran|Payon + case 6: $2011_agit_invest = 15; break; //Geffen|Payon + case 12: $2011_agit_invest = 16; break; //Al De Baran|Geffen + case 11: $2011_agit_invest = 17; break; //Prontera|Payon|Al De Baran + case 7: $2011_agit_invest = 18; break; //Prontera|Payon|Geffen + case 13: $2011_agit_invest = 19; break; //Prontera|Al De Baran|Geffen + case 14: $2011_agit_invest = 20; break; //Al De Baran|Payon|Geffen + case 15: $2011_agit_invest = 21; break; //Prontera|Payon|Al De Baran|Geffen + } + if ($2011_agit_invest >= 11) + donpcevent "Revoting Manager#Invest1::OnStart"; + end; + } else { + setd "$"+.@cas$[.@ele]+"_invest_result",3; + $2011_agit_invest = 4; + end; + } + end; +OnInvest_start: + announce "From now on, we are going to start the investments to connect the 'Abyss Gate' in the WOE areas: Valkyrie Realm, Greenwood Lake, Luina, Britoniah.",bc_all,0xFF0000; //FW_NORMAL 10 + $fund_prt01 = 0; + $fund_prt02 = 0; + $fund_prt03 = 0; + $fund_prt04 = 0; + $fund_prt05 = 0; + $fund_pay01 = 0; + $fund_pay02 = 0; + $fund_pay03 = 0; + $fund_pay04 = 0; + $fund_pay05 = 0; + $fund_gef01 = 0; + $fund_gef02 = 0; + $fund_gef03 = 0; + $fund_gef04 = 0; + $fund_gef05 = 0; + $fund_alde01 = 0; + $fund_alde02 = 0; + $fund_alde03 = 0; + $fund_alde04 = 0; + $fund_alde05 = 0; + donpcevent "Investment_total#fund00::OnEnable"; + end; +OnInvest_stop: + announce "We've finished the investments to connect the 'Abyss Gate'.",bc_all,0xFF0000; //FW_NORMAL 10 + donpcevent "Investment_total#fund00::OnReset"; + donpcevent "#fund_master::OnCalculate_Election"; + end; +OnResult: + announce "We've got the results of the investments for the 'Abyss Gate'. You can check through the Investment Status Board in each WOE area.",bc_all,0xFF0000; //FW_NORMAL 10 + if ($2011_agit_invest == 4) { + $fund_prt01 = 0; + $fund_prt02 = 0; + $fund_prt03 = 0; + $fund_prt04 = 0; + $fund_prt05 = 0; + $fund_prt_extra = 0; + $fund_pay01 = 0; + $fund_pay02 = 0; + $fund_pay03 = 0; + $fund_pay04 = 0; + $fund_pay05 = 0; + $fund_pay_extra = 0; + $fund_gef01 = 0; + $fund_gef02 = 0; + $fund_gef03 = 0; + $fund_gef04 = 0; + $fund_gef05 = 0; + $fund_gef_extra = 0; + $fund_alde01 = 0; + $fund_alde02 = 0; + $fund_alde03 = 0; + $fund_alde04 = 0; + $fund_alde05 = 0; + $fund_alde_extra = 0; + } else if ($2011_agit_invest == 2) + donpcevent "#fund_master::OnCalculate"; + end; +OnReset: + $2011_agit_invest = 0; + donpcevent "Investment_total#fund00::OnReset"; + end; +} + +prt_gld,2,2,0 script Investment_total#fund00 CLEAR_NPC,{ + callfunc "F_GM_NPC"; + mes "Is this not working properly?"; + next; + if (callfunc("F_GM_NPC",1854,0) == 1) { + mes "If you think the investment timer is dead, please adjust the timer."; + next; + switch(select("Turn on the timer:Cancel")) { + case 1: + donpcevent "Investment_total#fund00::OnTimerReset"; + mes "You've turned on the timer."; + close; + case 2: + mes "Canceled."; + close; + } + } else { + mes "I don't need to adjust anything now."; + close; + } + +OnInit: + if (callfunc("F_Invest_Status") == 1) { + initnpctimer; + donpcevent "Investment_total#fund00::OnVarInit"; + } else { + $agit_result_timer = 0; + $agit_result_notice = 0; + } + end; +OnVarInit: + setarray .@cas$[0],"prt","pay","gef","alde"; + for(.@i = 0; .@i<4; ++.@i) { + setd "$@vfund_"+.@cas$[.@i]+"01", getd("$fund_"+.@cas$[.@i]+"01"); + setd "$@vfund_"+.@cas$[.@i]+"02", getd("$fund_"+.@cas$[.@i]+"02"); + setd "$@vfund_"+.@cas$[.@i]+"03", getd("$fund_"+.@cas$[.@i]+"03"); + setd "$@vfund_"+.@cas$[.@i]+"04", getd("$fund_"+.@cas$[.@i]+"04"); + setd "$@vfund_"+.@cas$[.@i]+"05", getd("$fund_"+.@cas$[.@i]+"05"); + setd "$@vfund_"+.@cas$[.@i]+"_extra", getd("$fund_"+.@cas$[.@i]+"_extra"); + } + end; +OnEnable: + $agit_result_timer = 0; + $agit_result_notice = 0; + initnpctimer; + end; +OnReset: + $agit_result_timer = 0; + $agit_result_notice = 0; + stopnpctimer; + end; +OnTimerReset: + initnpctimer; + end; +OnTimer3600000: + if (callfunc("F_Invest_Status") == 1) { + if ($agit_result_timer < 59) { + $agit_result_timer = $agit_result_timer+1; + + // Trigger on multiples of 5 up to 55, and 58. + if ($agit_result_timer % 10 == 5 || $agit_result_timer % 10 == 0 || $agit_result_timer == 58) { + $agit_result_notice = $agit_result_notice+1; + donpcevent "Investment_total#fund00::OnVarInit"; + announce "No. "+$agit_result_notice+" Interim statement is now available. You can check through the Investment Status Board in each WOE area.",bc_all,0xFF0000; //FW_NORMAL 10 + } + + donpcevent "Investment_total#fund00::OnTimerReset"; + } else + stopnpctimer; + end; + } else { + donpcevent "Investment_total#fund00::OnReset"; + end; + } +} + +prt_gld,164,98,3 script Revoting Manager#Invest1 4_M_BOSSCAT,{ + mes "[Revoting Manager]"; + mes "We are not accepting additional votes."; + mes "Please wait for our results announcement."; + close; +OnInit: + .@invest_status = callfunc("F_Invest_Status"); + if (.@invest_status == 2 && $2011_agit_invest >= 11 && $agit_revoting_timer < 30) { + donpcevent "Revoting Manager#Invest2::OnEnable"; + initnpctimer; + } else if (.@invest_status == 3 && $2011_agit_invest >= 11) + donpcevent "Revoting Manager#Invest1::OnCalculate"; + donpcevent "Revoting Manager#Invest1::OnDisable"; + end; +OnCalculate: + switch($2011_agit_invest) { + case 11: setarray.@cas$[0],"prt","pay"; break; + case 12: setarray.@cas$[0],"prt","alde"; break; + case 13: setarray.@cas$[0],"prt","gef"; break; + case 14: setarray.@cas$[0],"alde","pay"; break; + case 15: setarray.@cas$[0],"gef","pay"; break; + case 16: setarray.@cas$[0],"alde","gef"; break; + case 17: setarray.@cas$[0],"prt","pay","alde"; break; + case 18: setarray.@cas$[0],"prt","pay","gef"; break; + case 19: setarray.@cas$[0],"prt","alde","gef"; break; + case 20: setarray.@cas$[0],"alde","pay","gef"; break; + case 21: setarray.@cas$[0],"prt","pay","alde","gef"; break; + default: end; + } + .@max = getd("$fund_"+.@cas$[0]+"_extra"); + for(.@i = 1; .@i .@max) { + .@max = .@funds; + .@ele = .@i; + deletearray .@rand$[0], getarraysize(.@rand$); + } else if (.@funds == .@max) { + if (!getarraysize(.@rand$)) + .@rand$[0] = .@cas$[.@ele]; + .@rand$[getarraysize(.@rand$)] = .@cas$[.@i]; + } + } + if (getarraysize(.@rand$)) { + .@i = rand(getarraysize(.@rand$)); + setd "$"+.@rand$[.@i]+"_invest_result",3; + } else + setd "$"+.@cas$[.@ele]+"_invest_result",3; + $2011_agit_invest = 4; + $agit_revoting_timer = 0; + end; +OnEnable: + enablenpc "Revoting Manager#Invest1"; + end; +OnDisable: + disablenpc "Revoting Manager#Invest1"; + end; +OnStart: + initnpctimer; + donpcevent "Revoting Manager#Invest2::OnNotice_on"; + end; +OnEnd: + stopnpctimer; + disablenpc "Revoting Manager#Invest1"; + end; +OnTimerReset: + initnpctimer; + end; +OnTimer60000: + .@revote = $agit_revoting_timer; + if (.@revote < 30) { + $agit_revoting_timer = $agit_revoting_timer+1; + donpcevent "Revoting Manager#Invest1::OnTimerReset"; + } else if (.@revote == 30) { + announce "Cat Paw Merchant Guild: Now we are going to close the additional vote. We will announce the results soon.",bc_all,0xFF0000; //FW_NORMAL 10 + donpcevent "Revoting Manager#Invest2::OnDisable"; + donpcevent "Revoting Manager#Invest1::OnEnable"; + $agit_revoting_timer = $agit_revoting_timer+1; + donpcevent "Revoting Manager#Invest1::OnTimerReset"; + } else if (.@revote == 31) { + donpcevent "Revoting Manager#Invest1::OnCalculate"; + donpcevent "Revoting Manager#Invest1::OnDisable"; + stopnpctimer; + end; + } else { + donpcevent "Revoting Manager#Invest1::OnDisable"; + stopnpctimer; + } + end; +} + +prt_gld,164,98,3 script Revoting Manager#Invest2 4_M_BOSSCAT,{ + .@invest = $2011_agit_invest; + if (.@invest < 11) { + mes "[Revoting Manager]"; + mes "No! This is not the time to take a revote."; + close2; + disablenpc "Revoting Manager#Invest2"; + end; + } + .@playtime = questprogress(7349,PLAYTIME); + if (.@playtime == 1) { + mes "[Revoting Manager]"; + mes "You've already participated in the vote."; + mes "Please relax and wait for the results."; + close; + } else if (.@playtime == 2) + erasequest 7349; + mes "[Revoting Manager]"; + mes "Would you like to participate in the vote for choosing where to connect the 'Abyss Gate'?"; + next; + if(select("Participate in the vote.:Skip for now.") == 2) { + mes "[Revoting Manager]"; + mes "You've canceled the vote."; + close; + } + mes "[Revoting Manager]"; + mes "You can vote once and won't need to invest for your choice."; + mes "Plesae choose one WOE area."; + next; + + // Create menu. + explode(.@candidates$, callsub(OnGetCandidates, .@invest),"|"); + for(.@i = 0; .@i= 4800) { + mes .@n$; + mes "You have too many Thank You Tickets to receive any more."; + mes "Cannot give you any more tickets. Please use your ticket and come back."; + mes "The ticket can be exchanged with various items in Malangdo."; + close; + } + if (callfunc("F_Invest_Status") != 1) { + mes .@n$; + mes "We do not receive investments now."; + mes "Please come back during the investment duration."; + close; + } + .@guild = getcharid(2); + for(.@i = 1; .@i<=5; ++.@i) { + .@castle_name$[.@i] = getcastlename(.@npc$+"g_cas0"+.@i); + .@owner_id[.@i] = getcastledata(.@npc$+"g_cas0"+.@i,1); + .@owner_name$[.@i] = getguildname(.@owner_id[.@i]); + if (.@guild == .@owner_id[.@i]) { + .@menu$ = .@menu$+.@castle_name$[.@i]+" ["+.@owner_name$[.@i]+"] Guild:"; + .@castles_owned = .@castles_owned | (1<<.@i); + } else + .@menu$ = .@menu$+"^aaaaaaNot the guild that claimed "+.@castle_name$[.@i]+"^000000:"; + } + mes .@n$; + mes "Would you like to invest in the ^4d4dff"+.@realm$+"^000000 region?"; + mes "If there is a castle occupied already, you will invest in the castle and the guild that is occupying it."; + next; + if (.@castles_owned) { + .@i = select(.@menu$+"Cancel"); + if (.@i == 6) { + mes .@n$; + mes "Canceled."; + close; + } + if (.@guild != .@owner_id[.@i]) { + mes .@n$; + mes "The guild that is occupying "+.@castle_name$[.@i]+" is "+.@owner_name$[.@i]+"."; + mes "Doesn't look like your guild."; + close; + } + mes .@n$; + mes "Invest under "+.@castle_name$[.@i]+"'s"+.@owner_name$[.@i]+" guild name."; + callfunc "F_Invest_Abyss","$fund_"+.@npc$+"0"+.@i,.@n$; + end; + } else { + mes .@n$; + callfunc "F_Invest_Abyss","$fund_"+.@npc$+"_extra",.@n$," for "+.@realm$; + end; + } + case 4: + mes .@n$; + mes "Is that so?"; + mes "Please come back whenever you are interested in investing in the Abyss Gate development."; + close; + } +} + +- script Gate Manager#realm -1,{ + + if (compare(strnpcinfo(4),"alde")) { + .@npc$ = "alde"; + .@name$ = "Alkor"; + .@gate$ = "Hero's Tears"; + .@realm$ = "Luina"; + } else if (compare(strnpcinfo(4),"gef")) { + .@npc$ = "gef"; + .@name$ = "Mizar"; + .@gate$ = "Hill of the Dead"; + .@realm$ = "Britoniah"; + } else if (compare(strnpcinfo(4),"pay")) { + .@npc$ = "pay"; + .@name$ = "Alkaid"; + .@gate$ = "Winds of the Ancient"; + .@realm$ = "Greenwood Lake"; + } else if (compare(strnpcinfo(4),"prt")) { + .@npc$ = "prt"; + .@name$ = "Arios"; + .@gate$ = "Way of the Warrior"; + .@realm$ = "Valkyrie Realm"; + } + .@n$ = "["+.@name$+"]"; + + if (callfunc("F_Invest_Status") != 3) { + mes .@n$; + mes "There are currently no connected dungeon gates."; + close; + } + .@status = getd("$"+.@npc$+"_invest_result"); + if (.@status == 3) { + mes .@n$; + mes "We've successfully connected the Abyss Gate ["+.@gate$+"] with the help from your investment."; + mes "The Agit dungeon will be open to everyone with a small entrance fee in "+.@realm$+"."; + next; + mes .@n$; + mes "Please visit as often as possible since the entrance fee is saved as an investment for the region."; + mes "Do you want to enter the Agit dungeon?"; + next; + .@i = select(.@realm$+" Dungeon 1F - 10000z:"+.@realm$+" Dungeon 2F - 10000z:Cancel"); + if (.@i == 3) { + mes .@n$; + mes "Canceled."; + close; + } + if (Zeny < 10000) { + mes .@n$; + mes "I'm collecting a small entrance fee."; + mes "Your contribution will be saved for the next investment."; + mes "Entrance fee is 10000z."; + close; + } + mes .@n$; + mes "I'm sending you to the "+.@realm$+" Agit Dungeon "+.@i+"F."; + Zeny -= 10000; + setd "$fund_"+.@npc$+"_extra", getd("$fund_"+.@npc$+"_extra") + 1; + close2; + if (compare(strnpcinfo(2),"alde")) + warp "gld_dun02"+((.@i == 2)?"_2":""),32,122; + else if (compare(strnpcinfo(2),"gef")) + warp "gld_dun04"+((.@i == 2)?"_2":""),39,258; + else if (compare(strnpcinfo(2),"pay")) + warp "gld_dun01"+((.@i == 2)?"_2":""),186,165; + else if (compare(strnpcinfo(2),"prt")) + warp "gld_dun03"+((.@i == 2)?"_2":""),164,268; + end; + } else if (.@status == 2) { + mes .@n$; + mes "The "+.@realm$+" Agit Dungeon 2F is now available but since it is not connected with the Abyss Gate,"; + mes "the Agit dungeon is only accessible to the Agit guild."; + close; + } else { + mes .@n$; + mes .@realm$+" was not chosen to be connected with a gate this time."; + mes "Please wait for the next investment duration."; + close; + } + end; +} + +- script Investment Status Board -1,{ + .@invest_status = callfunc("F_Invest_Status"); + if (.@invest_status == 1) { + if (compare(strnpcinfo(4),"alde")) { + .@npc$ = "alde"; + .@realm$ = "Luina"; + } else if (compare(strnpcinfo(4),"gef")) { + .@npc$ = "gef"; + .@realm$ = "Britoniah"; + } else if (compare(strnpcinfo(4),"pay")) { + .@npc$ = "pay"; + .@realm$ = "Greenwood Lake"; + } else if (compare(strnpcinfo(4),"prt")) { + .@npc$ = "prt"; + .@realm$ = "Valkyrie Realm"; + } + .@notice = $agit_result_notice; + if (.@notice < 1 || .@notice > 12) { + mes "There are currently no investment sums available."; + close; + } else if (.@notice == 1) + .@str$ = "1st"; + else if (.@notice == 2) + .@str$ = "2nd"; + else if (.@notice == 3) + .@str$ = "3rd"; + else + .@str$ = .@notice+"th"; + mes .@str$+" total (unit in 10,000z)"; + for(.@i = 1; .@i<=5; ++.@i) { + .@map$ = .@npc$+"g_cas0"+.@i; + .@fund[.@i] = getd("$@vfund_"+.@npc$+"0"+.@i); + mes getcastlename(.@map$)+" "+getguildname(getcastledata(.@map$,1))+" Guild: "+.@fund[.@i]; + } + .@fund[0] = getd("$@vfund_"+.@npc$+"_extra"); + mes .@realm$+" normal: "+.@fund[0]; + mes .@realm$+" Investment Grand Total: "+(.@fund[0]+.@fund[1]+.@fund[2]+.@fund[3]+.@fund[4]+.@fund[5]); + close; + } else if (.@invest_status == 2) { + mes "!- Notice -!"; + mes "No sums are available because the total investment amount is currently being calculated."; + mes "Please wait for the announcement of the results."; + close; + } else if (.@invest_status == 3) { + setarray .@invest_result[0], $prt_invest_result,$pay_invest_result,$gef_invest_result,$alde_invest_result; + setarray .@invest_region$[0], "Valkyrie Realm", "Greenwood Lake", "Britoniah", "Luina"; + mes "!- Investment Results of All Agit Regions -!"; + for(.@i = 0; .@i<4; ++.@i) { + if (.@invest_result[.@i] == 1) + mes "^aaaaaa["+.@invest_region$[.@i]+"] below minimum^000000"; + else if (.@invest_result[.@i] == 2) { + mes "["+.@invest_region$[.@i]+"] minimum achieved"; + mes "-> Guild Dungeon Deepest Layer (2F) available"; + } else if (.@invest_result[.@i] == 3) { + mes "^4d4dff["+.@invest_region$[.@i]+"] maximum achieved^000000"; + mes "-> Abyss Gate available"; + } else + mes "No data for ["+.@invest_region$[.@i]+"]."; + } + close; + } else { + mes "!- Notice -!"; + mes "No investment information will be announced now."; + close; + } +} + +// Inside Castles - Gate Managers +//============================================================ +- script Gate Manager#castle -1,{ + + .@id = atoi(charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1)); + if (compare(strnpcinfo(2),"alde")) { + .@npc$ = "alde"; + .@realm$ = "Luina"; + } else if (compare(strnpcinfo(2),"gef")) { + .@npc$ = "gef"; + .@realm$ = "Britoniah"; + } else if (compare(strnpcinfo(2),"pay")) { + .@npc$ = "pay"; + .@realm$ = "Greenwood Lake"; + } else if (compare(strnpcinfo(2),"prt")) { + .@npc$ = "prt"; + .@realm$ = "Valkyrie Realm"; + } + + .@GID = getcastledata(strnpcinfo(4),1); + if (getcharid(2) != .@GID) { + mes "[Gate Manager]"; + mes "You don't seem to be the member of guild owning this castle."; + mes "If you need any help, please visit any of our guild members at "+.@realm$+" Square."; + close; + } + mes "[Gate Manager]"; + mes "Hello, I am the Gate Manager from Cat Paw Merchant Guild warp department."; + mes "How may I help you today?"; + next; + switch(select("Invest for gate connection:Deepest Layer Dungeon Access:Abyss Gate Access:Cancel")) { + case 1: + if (checkweight(1201,1) == 0 || MaxWeight - Weight < 1000) { + mes "[Gate Manager]"; + mes "You have too many items to receive the Thank You Ticket as a small gift for your investment."; + mes "Please come back after making room in your inventory."; + close; + } + if (countitem(6488) >= 4800) { + mes "[Gate Manager]"; + mes "You have too many Thank You Tickets to receive any more."; + mes "Cannot give you any more tickets. Please use your ticket and come back."; + mes "The ticket can be exchanged with various items in Malangdo."; + close; + } + if (callfunc("F_Invest_Status") != 1) { + mes "[Gate Manager]"; + mes "We do not receive investments now."; + mes "Please come back during the investment duration."; + close; + } + if (getcharid(2) != .@GID) { + mes "[Gate Manager]"; + mes "You don't seem to be the member of the guild owning this castle."; + mes "Please use the normal investment from "+.@realm$+" Square."; + close; + } + mes "[Gate Manager]"; + mes "Proceed investing under your guild name."; + callfunc "F_Invest_Abyss","$fund_"+.@npc$+"0"+.@id,"[Gate Manager]"; + end; + case 2: + callsub L_Enter,1,.@realm$,.@npc$; + mes "[Gate Manager]"; + mes "You are interested in exploring the "+.@realm$+" Guild Dungeon Deepest Layer (2F)."; + mes "Let me guide you. Good luck."; + close2; + if (compare(strnpcinfo(2),"alde")) { + switch(.@id) { + case 1: warp "gld_dun02_2",32,122; end; + case 2: warp "gld_dun02_2",79,30; end; + case 3: warp "gld_dun02_2",165,38; end; + case 4: warp "gld_dun02_2",160,148; end; + case 5: warp "gld_dun02_2",103,169; end; + } + } else if (compare(strnpcinfo(2),"gef")) { + switch(.@id) { + case 1: warp "gld_dun04_2",39,258; end; + case 2: warp "gld_dun04_2",125,270; end; + case 3: warp "gld_dun04_2",268,251; end; + case 4: warp "gld_dun04_2",268,108; end; + case 5: warp "gld_dun04_2",230,35; end; + } + } else if (compare(strnpcinfo(2),"pay")) { + switch(.@id) { + case 1: warp "gld_dun01_2",186,165; end; + case 2: warp "gld_dun01_2",54,165; end; + case 3: warp "gld_dun01_2",54,39; end; + case 4: warp "gld_dun01_2",186,39; end; + case 5: warp "gld_dun01_2",223,202; end; + } + } else if (compare(strnpcinfo(2),"prt")) { + switch(.@id) { + case 1: warp "gld_dun03_2",28,251; end; + case 2: warp "gld_dun03_2",164,268; end; + case 3: warp "gld_dun03_2",164,179; end; + case 4: warp "gld_dun03_2",268,203; end; + case 5: warp "gld_dun03_2",199,28; end; + } + } + end; + case 3: + callsub L_Enter,2,.@realm$,.@npc$; + mes "[Gate Manager]"; + mes "Let me guide you to the Abyss Gap connected with "+.@realm$+", the Abyss Gate 'Way of the Warrior'."; + close2; + if (compare(strnpcinfo(2),"alde")) { + switch(.@id) { + case 1: warp "gld2_ald",175,41; end; + case 2: warp "gld2_ald",77,64; end; + case 3: warp "gld2_ald",46,127; end; + case 4: warp "gld2_ald",104,246; end; + case 5: warp "gld2_ald",241,156; end; + } + } else if (compare(strnpcinfo(2),"gef")) { + switch(.@id) { + case 1: warp "gld2_gef",28,199; end; + case 2: warp "gld2_gef",217,46; end; + case 3: warp "gld2_gef",171,195; end; + case 4: warp "gld2_gef",30,67; end; + case 5: warp "gld2_gef",115,40; end; + } + } else if (compare(strnpcinfo(2),"pay")) { + switch(.@id) { + case 1: warp "gld2_pay",33,112; end; + case 2: warp "gld2_pay",119,27; end; + case 3: warp "gld2_pay",205,111; end; + case 4: warp "gld2_pay",175,221; end; + case 5: warp "gld2_pay",61,221; end; + } + } else if (compare(strnpcinfo(2),"prt")) { + switch(.@id) { + case 1: warp "gld2_prt",10,27; end; + case 2: warp "gld2_prt",14,247; end; + case 3: warp "gld2_prt",259,236; end; + case 4: warp "gld2_prt",226,25; end; + case 5: warp "gld2_prt",97,11; end; + } + } + end; + case 4: + mes "[Gate Manager]"; + mes "Canceled."; + close; + } + end; + +L_Enter: + .@invest_status = callfunc("F_Invest_Status"); + if (.@invest_status == 3) { + .@status = getd("$"+getarg(2)+"_invest_result"); + if ((getarg(0) == 1 && .@status == 2) || .@status == 3) + return; + else { + mes "[Gate Manager]"; + mes getarg(1)+" was not chosen to be connected with a gate this time."; + mes "Please wait for the next investment duration."; + close; + } + } else if (.@invest_status < 3) { + mes "[Gate Manager]"; + mes "There are currently no connected dungeon gates."; + mes "A gate will be connected as soon as the investment results are available."; + mes "Please wait."; + close; + } else { + mes "[Gate Manager]"; + mes "The gate will disappear soon."; + mes "The dungeon is no longer accessible."; + mes "Please try again next time."; + close; + } +} + +// Item Investments +//============================================================ +malangdo,218,126,4 script Cat Paw Merchants Notice 4_BOARD3,{ + mes "<< Cat Paw Merchants Notice >>"; + mes "'^C379CEInvest Unused Items for Prizes!^000000'"; + next; + switch(select("Read Notice:Check Event 1:Check Event 2")) { + case 1: + mes "- Notice -"; + mes "Hello all Cat Paw Merchants customers! With your love, we Cat Paw Merchants are growing every day. All executives and staff members promise to do our best to further our frontier and development."; + next; + mes "- Event Notice! -"; + mes " An Event called '^C379CEInvest Unused Items for Prizes!^000000' is under way, where you could exchange unused items in your storage for Investment Certificate of the Cat Paw Merchants."; + next; + mes "Exchangeable items will be announced on a separate sheet. Thank you for your time."; + mes "- From all the employees of Cat Paw Merchants -"; + next; + mes "There is a small warning at the bottom."; + mes " "; + mes "^FF0000This event could be changed or repealed due to the Merchants' situation.^000000"; + close; + case 2: + mes "'^C379CEInvest Unused Items for Prizes!^000000'"; + mes "There are details of Event 1."; + next; + setarray .@event1$[0], + "Wings of the Insect Queen","Crown of the Fly King","I hear Dragon Scales are tough 01","The Meaning of the Mother's Nightmare", + "To refine ore","Hekekek Orcs, Orcs!!","Study of Yin-Yang","Secrets of the Pyramid King","Tick-tock the time goes", + "Planting trees on Mellow Island","Ancient language research","Weapons made of sharp teeth","Toy boss doll 01", + "A tiger is just a cat after all","The shattered spear and shield?","Toy boss doll 02","Best in summer! Cold scales", + "Piece of Thanatos' armor","I hear Dragon Scales are tough 02","The identity of the creepy eye","If only I could see!"; + .@menu$ = "Quit:"+implode(.@event1$[0],":"); + while(1) { + .@i = select(.@menu$)-1; + switch(.@i) { + case 0: close; + case 1: .@str$ = "2 Pieces of Queen's Wing"; break; + case 2: .@str$ = "2 Broken Crowns"; break; + case 3: .@str$ = "2 Fire Dragon Scales"; break; + case 4: .@str$ = "3 Mother's Nightmares"; break; + case 5: .@str$ = "5 Gemstones"; break; + case 6: .@str$ = "5 Heroic Emblems"; break; + case 7: .@str$ = "3 Taeguk Plates"; break; + case 8: .@str$ = "3 Broken Pharaoh Symbols and 3 Tutankhamen's Masks"; break; + case 9: .@str$ = "2 Pocket Watches"; break; + case 10: .@str$ = "3 Young Twigs"; break; + case 11: .@str$ = "5 Rossata Pieces"; break; + case 12: .@str$ = "5 Fangs of Garm"; break; + case 13: .@str$ = "3 Baphomet Dolls"; break; + case 14: .@str$ = "1 Tiger's Footskin and 5 Tiger Skins"; break; + case 15: .@str$ = "3 Broken Shield Pieces and 3 Shining Spear Blades"; break; + case 16: .@str$ = "3 Osiris Dolls"; break; + case 17: .@str$ = "1 Ice Scale"; break; + case 18: .@str$ = "1 Skeletal Armor Piece"; break; + case 19: .@str$ = "1 Darkred Scale Piece"; break; + case 20: .@str$ = "2 Wills of Red Darkness"; break; + case 21: .@str$ = "2 Foolishness of the Blind"; break; + } + mes "["+.@event1$[.@i-1]+"]"; + mes .@str$+" for one Cat Paw Merchants Investment Certificate."; + next; + } + case 3: + mes "Look out for the next '^C379CEInvest Unused Items for Prizes!^000000' Event 2!! Coming up real soon!"; + close; + } +} + +malangdo,218,123,1 script Namis#invest 4_CAT_SAILOR2,4,4,{ + if (checkweight(1201,1) == 0 || MaxWeight - Weight < 1000) { + mes "- Currently you're carrying -"; + mes "- too many items with you. -"; + mes "- Please try again after you -"; + mes "- lose some weight. -"; + close; + } + emotion e_omg; + emotion e_an; + emotion e_ag; + mes "[Namis]"; + mes "Purr-Purr-Purrr-Purrrr-Pur~ Meow!!"; + mes "Wh-- What? How rude. You scared me."; + next; + switch(select("What do you need? I'll invest!:What's the purpose of this event?:Were you asleep?")) { + case 1: + break; + case 2: + mes "[Namis]"; + mes "So, another pushover in contract with the Cat Paw Merchants?"; + next; + select("Huh? What! You calling me a pushover?"); + mes "[Namis]"; + mes "I'll say this just once, so you listen good!"; + mes "We, the Cat Paw Merchants have planned an event for loyal workers like yourself."; + next; + mes "[Namis]"; + mes "Run along to your storage and bring back rotting antiques to us and we'll exchange them for the oh-so valuable 'Cat Paw Merchants Investment Certificate'."; + next; + mes "[Namis]"; + mes "It will be wise for you to do so because the Cat Paw Merchants are doing this at a loss!"; + next; + mes "[Namis]"; + mes "Details are on the notice."; + close; + case 3: + mes "[Namis]"; + mes "Hick- Slurp-"; + mes "Remember, human! There's no other cat who works as hard as I do."; + close; + } + mes "[Namis]"; + mes "You must be here to participate in the '^C379CEInvest Unused Items for Prizes!^000000' event of the Cat Paw Merchants."; + next; + mes "[Namis]"; + mes "So, which event do you wish to participate in?"; + next; + switch(select("Not interested:Event 1 Items:Event 2 Items")) { + case 1: + mes "[Namis]"; + mes "Don't you mess with a busy cat!"; + close; + case 2: + mes "[Namis]"; + mes "So you're in for Event 1."; + mes "Choose from the shown list."; + next; + setarray .@event1$[0], + "Wings of the Insect Queen","Crown of the Fly King","I hear Dragon Scales are tough 01","The Meaning of the Mother's Nightmare", + "To refine ore","Hekekek Orcs, Orcs!!","Study of Yin-Yang","Secrets of the Pyramid King","Tick-tock the time goes", + "Planting trees on Mellow Island","Ancient language research","Weapons made of sharp teeth","Toy boss doll 01", + "A tiger is just a cat after all","The shattered spear and shield?","Toy boss doll 02","Best in summer! Cold scales", + "Piece of Thanatos' armor","I hear Dragon Scales are tough 02","The identity of the creepy eye","If only I could see!"; + .@i = select(implode(.@event1$[0],":"))-1; + switch(.@i+1) { + case 1: callsub L_Check,"2 Pieces of Queen's Wing",6326,2,"Wings of the Insect Queen? What a pitiful name. I would've given some cool names!",.@event1$[.@i]; + case 2: callsub L_Check,"2 Broken Crowns",7754,2,"For crying out loud! Those cats working on these events must be playing around. Can't they think of a better name?",.@event1$[.@i]; + case 3: callsub L_Check,"2 Fire Dragon Scales",7451,2,"Dragon scales? Well... I guess they are tough. But what are they going to use them for?",.@event1$[.@i]; + case 4: callsub L_Check,"3 Mother's Nightmares",7020,3,"Even though I don't have the authority to find out, I wonder what they're doing with the collected items?",.@event1$[.@i]; + case 5: callsub L_Check,"5 Gemstones",7300,5,"Something useful for a change. The ore will end up as nice pieces of jewelry.",.@event1$[.@i]; + case 6: callsub L_Check,"5 Heroic Emblems",968,5,"Good, good. This is the kind of name I wanted!",.@event1$[.@i]; + case 7: callsub L_Check,"3 Taeguk Plates",7169,3,"Taking in something like this, maybe they're up to something dangerous.",.@event1$[.@i]; + case 8: callsub L_Check,"3 Broken Pharaoh Symbols and 3 Tutankhamen's Masks",7113,3,"I hear the pyramids are in Morroc, but I've never been there. Some humans call it Morco.",.@event1$[.@i],7114,3; + case 9: callsub L_Check,"2 Pocket Watches",7513,2,"Those lazy merchants, why do they need pocket watches they don't even use?",.@event1$[.@i]; + case 10: callsub L_Check,"3 Young Twigs",7018,3,"Mellow Island has a climate like with where we cats used to live. But the trees die out sometimes due to it being an island.",.@event1$[.@i]; + case 11: callsub L_Check,"5 Rossata Pieces",7211,5,"I guess they collect these because humans have them, but what's the use of researching ancient languages?",.@event1$[.@i]; + case 12: callsub L_Check,"5 Fangs of Garm",7036,5,"Weak humans need sharp weapons, but cats already have nice and sharp claws, so why are we collecting these!!",.@event1$[.@i]; + case 13: callsub L_Check,"3 Baphomet Dolls",750,3,"Baphomet dolls are great for playing around with.",.@event1$[.@i]; + case 14: callsub L_Check,"1 Tiger's Footskin and 5 Tiger Skins",1030,1,"Did you know that tigers are cats too? Therefore, cats are better than tigers.",.@event1$[.@i],1029,5; + case 15: callsub L_Check,"3 Broken Shield Pieces and 3 Shining Spear Blades",7108,3,"I don't know what they want with these.",.@event1$[.@i],7109,3; + case 16: callsub L_Check,"3 Osiris Dolls",751,3,"Shame~ I never got to play with an Osiris doll.",.@event1$[.@i]; + case 17: callsub L_Check,"1 Ice Scale",7562,1,"Mellow Island is a fabulous place to live. But the ships are too hot.",.@event1$[.@i]; + case 18: callsub L_Check,"1 Skeletal Armor Piece",7450,1,"Ewww... Why would they collect something so creepy?",.@event1$[.@i]; + case 19: callsub L_Check,"1 Darkred Scale Piece",6091,1,"Dragon scales? Well... I guess they are tough. But what are they going to use them for?",.@event1$[.@i]; + case 20: callsub L_Check,"2 Wills of Red Darkness",7566,2,"Interesting! Does it scream or something when I poke it in the eye?",.@event1$[.@i]; + case 21: callsub L_Check,"2 Foolishness of the Blind",7021,2,"This blind man is foolish in not knowing that gathering 300 cats cures blindness...",.@event1$[.@i]; + } + case 3: + mes "[Namis]"; + mes "Participate in Event 2?"; + mes "It is not yet in motion. Wait for it!"; + close; + } + end; +L_Check: + .@args = getargcount(); + if (.@args > 5) { + if (countitem(getarg(5)) < getarg(6)) + .@items = 1; //incomplete + else + .@items = 2; //complete + } + if (countitem(getarg(1)) < getarg(2) || .@items == 1) { + mes "[Namis]"; + mes "You don't have the items?"; + mes getarg(0)+" exchange for one Cat Paw Merchants Investment Certificate."; + next; + mes "[Namis]"; + mes "Don't bother me and look up the details on the board over there!"; + close; + } + mes "[Namis]"; + mes "'^8E5601"+getarg(4)+" Event^000000'"; + mes "Seems to be the right items."; + mes getarg(3); + mes "Oh! Almost forgot. Will you invest?"; + next; + if(select("Invest:Don't Invest") == 2) { + mes "[Namis]"; + mes "Don't you mess with a busy cat!"; + close; + } + delitem getarg(1),getarg(2); + if (.@items == 2) + delitem getarg(5),getarg(6); + getitem 6489,1; //Cats_Invest_Certif + mes "[Namis]"; + mes "Here's your Certificate. Always be grateful to the Merchants for these events!"; + close; +OnTouch: + if (rand(2)) + emotion e_yawn; + else + specialeffect EF_SLEEPATTACK; + end; +} + +// Investment Rewards +//============================================================ +malangdo,215,119,4 script Thanks Ticket Machine 2_VENDING_MACHINE1,{ + if (MaxWeight - Weight < 4500 || checkweight(1201,1) == 0) { + mes "- Currently you're carrying -"; + mes "- too many items with you. -"; + mes "- Please try again after you -"; + mes "- lose some weight. -"; + close; + } + mes "[Vending Machine Notice]"; + mes "^6815EA1. Don't kick the machine please. @_@"; + mes "2. You can only insert Invest Thanks Ticket."; + mes "3. About the Jelly Box, if you open it, it gives you a random item."; + mes "4. Hope you enjoy~^000000"; + mes "- Mr. Cat, the Machine Owner -"; + next; + switch(select("Finish:Purchase:Red Paw Jelly Bag (5 Tickets):Black Paw Jelly Bag (50 Tickets)")) { + case 1: + close; + case 2: + mes "The Vending Machine is selling items in the following list."; + next; + switch(select("Finish:1 Siege Arrow Quiver A (2 Tickets):1 Siege Arrow Quiver S (2 Tickets):30 White Potion (12 Tickets):30 White Slim Potion (14 Tickets):10 Dark Water (20 Tickets):20 Siege_Violet_Potion (30 Tickets):10 Coldproof Potion (30 Tickets):10 Thunderproof Potion (30 Tickets):10 Earthproof Potion (30 Tickets):10 Fireproof Potion (30 Tickets):10 Elemental Converter[Fire] (30 Tickets)")) { + case 1: close; + case 2: callsub L_Purchase,2,12678,1; //Siege_Arrow_Quiver_A + case 3: callsub L_Purchase,2,12677,1; //Siege_Arrow_Quiver_S + case 4: callsub L_Purchase,12,504,30; //White_Potion + case 5: callsub L_Purchase,14,547,30; //White_Slim_Potion + case 6: callsub L_Purchase,20,12020,10; //Water_Of_Darkness + case 7: callsub L_Purchase,30,11547,20; //Woe_Violet_Potion + case 8: callsub L_Purchase,30,12119,10; //Resist_Water + case 9: callsub L_Purchase,30,12121,10; //Resist_Wind + case 10: callsub L_Purchase,30,12120,10; //Resist_Earth + case 11: callsub L_Purchase,30,12118,10; //Resist_Fire + case 12: callsub L_Purchase,30,12114,10,"Elemental Converter[Fire]"; //Elemental_Fire + case 13: callsub L_Purchase,30,12115,10,"Elemental Converter[Water]"; //Elemental_Water + case 14: callsub L_Purchase,30,12117,10,"Elemental Converter[Wind]"; //Elemental_Wind + case 15: callsub L_Purchase,30,12116,10,"Elemental Converter[Earth]"; //Elemental_Earth + } + end; + case 3: + mes "Red Paw Jelly Bag Button chosen. Need to insert 5 ^FF0000Invest Thanks Ticket^000000 and a random item will appear."; + next; + if (countitem(6488) < 5) { + mes "You don't have enough ^FF0000Invest Thanks Ticket^000000 to proceed."; + close; + } + delitem 6488,5; //Thanks_Invest_Ticket + .@i = rand(1,10000); + if (.@i <= 100) callsub L_Bag,12531,1; //White_Potion_Box + else if (.@i <= 200) callsub L_Bag,12549,1; //White_Slim_Pot_Box2 + else if (.@i <= 250) callsub L_Bag,11549,10; //Woe_Blue_Potion + else if (.@i <= 660) callsub L_Bag,617,1; //Old_Violet_Box + else if (.@i <= 710) callsub L_Bag,12532,1; //Royal_Jelly_Box2 + else if (.@i <= 760) callsub L_Bag,12533,1; //Blue_Herb_Box2 + else if (.@i <= 810) callsub L_Bag,505,5; //Blue_Potion + else if (.@i <= 1110) callsub L_Bag,644,1; //Gift_Box + else if (.@i <= 1120) callsub L_Bag,607,1; //Yggdrasilberry + else if (.@i <= 1130) callsub L_Bag,608,2; //Seed_Of_Yggdrasil + else if (.@i <= 1140) callsub L_Bag,12292,5; //Unripe_Fruit + else if (.@i <= 1150) callsub L_Bag,12293,5; //Dried_Yggdrasilberry + else if (.@i <= 1250) callsub L_Bag,12679,1; //Sg_White_Potion_Box + else if (.@i <= 1471) callsub L_Bag,603,1; //Old_Blue_Box + else if (.@i <= 1571) callsub L_Bag,12550,1,"Poison Bottle Box(30)"; //Poison_Bottle_Box2 + else if (.@i <= 1671) callsub L_Bag,12020,10; //Water_Of_Darkness + else if (.@i <= 1871) callsub L_Bag,12030,5; //Box_Of_Grudge + else if (.@i <= 2071) callsub L_Bag,12031,5; //Sleepy_Box + else if (.@i <= 2371) callsub L_Bag,12033,2; //Box_Of_Sunlight + else if (.@i <= 2571) callsub L_Bag,12114,5,"Elemental Converter[Fire]"; //Elemental_Fire + else if (.@i <= 2771) callsub L_Bag,12115,5,"Elemental Converter[Water]"; //Elemental_Water + else if (.@i <= 2971) callsub L_Bag,12117,5,"Elemental Converter[Wind]"; //Elemental_Wind + else if (.@i <= 3171) callsub L_Bag,12116,5,"Elemental Converter[Earth]"; //Elemental_Earth + else if (.@i <= 3271) callsub L_Bag,12680,1; //Sg_Blue_Potion_Box + else if (.@i <= 3471) callsub L_Bag,12118,5; //Resist_Fire + else if (.@i <= 3671) callsub L_Bag,12119,5; //Resist_Water + else if (.@i <= 3871) callsub L_Bag,12121,5; //Resist_Wind + else if (.@i <= 4071) callsub L_Bag,12120,5; //Resist_Earth + else if (.@i <= 4271) callsub L_Bag,929,20; //Immortal_Heart + else if (.@i <= 4471) callsub L_Bag,1059,20; //Transparent_Cloth + else if (.@i <= 4671) callsub L_Bag,905,20; //Stem + else if (.@i <= 4871) callsub L_Bag,606,10; //Aloebera + else if (.@i <= 5071) callsub L_Bag,609,10; //Amulet + else if (.@i <= 5271) callsub L_Bag,710,2; //Illusion_Flower + else if (.@i <= 5471) callsub L_Bag,576,20; //Prickly_Fruit + else if (.@i <= 5671) callsub L_Bag,621,10; //Bitter_Herb + else if (.@i <= 5871) callsub L_Bag,709,10; //Izidor + else if (.@i <= 6071) callsub L_Bag,605,10; //Anodyne + else if (.@i <= 6171) callsub L_Bag,11548,10; //Woe_White_Potion + else if (.@i <= 6371) callsub L_Bag,706,10; //Four_Leaf_Clover + else if (.@i <= 6571) callsub L_Bag,521,10; //Leaflet_Of_Aloe + else if (.@i <= 6771) callsub L_Bag,707,10; //Singing_Plant + else if (.@i <= 6971) callsub L_Bag,610,10; //Leaf_Of_Yggdrasil + else if (.@i <= 7021) callsub L_Bag,12676,1; //Sg_Violet_Potion_Box + else if (.@i <= 7171) callsub L_Bag,6249,10; //Savage_Meat + else if (.@i <= 7321) callsub L_Bag,6252,10; //Wolf_Blood + else if (.@i <= 7471) callsub L_Bag,6254,10; //Beef_Head_Meat + else if (.@i <= 7621) callsub L_Bag,6253,10; //Cold_Ice + else if (.@i <= 7771) callsub L_Bag,6256,10; //Ice_Fragment + else if (.@i <= 7921) callsub L_Bag,6257,10; //Ice_Crystal + else if (.@i <= 8071) callsub L_Bag,6260,10; //Petti_Tail + else if (.@i <= 8309) callsub L_Bag,7932,20; //Poison_Herb_Nerium + else if (.@i <= 8547) callsub L_Bag,7933,20; //Poison_Herb_Rantana + else if (.@i <= 8785) callsub L_Bag,7934,20; //Poison_Herb_Makulata + else if (.@i <= 9023) callsub L_Bag,7935,20; //Poison_Herb_Seratum + else if (.@i <= 9261) callsub L_Bag,7936,20; //Poison_Herb_Scopolia + else if (.@i <= 9499) callsub L_Bag,7937,20; //Poison_Herb_Amoena + else if (.@i <= 9699) callsub L_Bag,6217,20; //Mandragora_Flowerpot + else callsub L_Bag,12016,10; //Speed_Up_Potion + end; + case 4: + mes "Black Paw Jelly Bag Button chosen. Need to insert 50 ^FF0000Invest Thanks Ticket^000000 and a random item will appear."; + next; + if (countitem(6488) < 50) { + mes "You don't have enough ^FF0000Invest Thanks Ticket^000000 to proceed."; + close; + } + delitem 6488,50; //Thanks_Invest_Ticket + .@i = rand(1,10000); + if (.@i <= 100) callsub L_Bag,12531,1; //White_Potion_Box + else if (.@i <= 200) callsub L_Bag,12549,1; //White_Slim_Pot_Box2 + else if (.@i <= 250) callsub L_Bag,11549,20; //Woe_Blue_Potion + else if (.@i <= 450) callsub L_Bag,617,1; //Old_Violet_Box + else if (.@i <= 500) callsub L_Bag,12532,1; //Royal_Jelly_Box2 + else if (.@i <= 550) callsub L_Bag,12533,1; //Blue_Herb_Box2 + else if (.@i <= 600) callsub L_Bag,505,10; //Blue_Potion + else if (.@i <= 800) callsub L_Bag,644,1; //Gift_Box + else if (.@i <= 810) callsub L_Bag,607,2; //Yggdrasilberry + else if (.@i <= 820) callsub L_Bag,608,3; //Seed_Of_Yggdrasil + else if (.@i <= 830) callsub L_Bag,12292,10; //Unripe_Fruit + else if (.@i <= 840) callsub L_Bag,12293,10; //Dried_Yggdrasilberry + else if (.@i <= 940) callsub L_Bag,12679,1; //Sg_White_Potion_Box + else if (.@i <= 1140) callsub L_Bag,603,1; //Old_Blue_Box + else if (.@i <= 1240) callsub L_Bag,12550,1,"Poison Bottle Box(30)"; //Poison_Bottle_Box2 + else if (.@i <= 1340) callsub L_Bag,12020,20; //Water_Of_Darkness + else if (.@i <= 1440) callsub L_Bag,12030,10; //Box_Of_Grudge + else if (.@i <= 1540) callsub L_Bag,12031,10; //Sleepy_Box + else if (.@i <= 1690) callsub L_Bag,12033,4; //Box_Of_Sunlight + else if (.@i <= 1790) callsub L_Bag,12114,10,"Elemental Converter[Fire]"; //Elemental_Fire + else if (.@i <= 1890) callsub L_Bag,12115,10,"Elemental Converter[Water]"; //Elemental_Water + else if (.@i <= 1990) callsub L_Bag,12117,10,"Elemental Converter[Wind]"; //Elemental_Wind + else if (.@i <= 2090) callsub L_Bag,12116,10,"Elemental Converter[Earth]"; //Elemental_Earth + else if (.@i <= 2190) callsub L_Bag,12680,1; //Sg_Blue_Potion_Box + else if (.@i <= 2290) callsub L_Bag,12118,10; //Resist_Fire + else if (.@i <= 2390) callsub L_Bag,12119,10; //Resist_Water + else if (.@i <= 2490) callsub L_Bag,12121,10; //Resist_Wind + else if (.@i <= 2590) callsub L_Bag,12120,10; //Resist_Earth + else if (.@i <= 2690) callsub L_Bag,929,40; //Immortal_Heart + else if (.@i <= 2790) callsub L_Bag,1059,40; //Transparent_Cloth + else if (.@i <= 2890) callsub L_Bag,905,40; //Stem + else if (.@i <= 2990) callsub L_Bag,606,20; //Aloebera + else if (.@i <= 3090) callsub L_Bag,609,20; //Amulet + else if (.@i <= 3190) callsub L_Bag,710,4; //Illusion_Flower + else if (.@i <= 3290) callsub L_Bag,576,40; //Prickly_Fruit + else if (.@i <= 3390) callsub L_Bag,621,20; //Bitter_Herb + else if (.@i <= 3490) callsub L_Bag,709,20; //Izidor + else if (.@i <= 3590) callsub L_Bag,605,20; //Anodyne + else if (.@i <= 3690) callsub L_Bag,11548,20; //Woe_White_Potion + else if (.@i <= 3790) callsub L_Bag,706,20; //Four_Leaf_Clover + else if (.@i <= 3890) callsub L_Bag,521,20; //Leaflet_Of_Aloe + else if (.@i <= 3990) callsub L_Bag,707,20; //Singing_Plant + else if (.@i <= 4090) callsub L_Bag,610,20; //Leaf_Of_Yggdrasil + else if (.@i <= 4140) callsub L_Bag,12676,1; //Sg_Violet_Potion_Box + else if (.@i <= 4240) callsub L_Bag,6249,20; //Savage_Meat + else if (.@i <= 4340) callsub L_Bag,6252,20; //Wolf_Blood + else if (.@i <= 4440) callsub L_Bag,6254,20; //Beef_Head_Meat + else if (.@i <= 4540) callsub L_Bag,6253,20; //Cold_Ice + else if (.@i <= 4640) callsub L_Bag,6256,20; //Ice_Fragment + else if (.@i <= 4740) callsub L_Bag,6257,20; //Ice_Crystal + else if (.@i <= 4840) callsub L_Bag,6260,20; //Petti_Tail + else if (.@i <= 4940) callsub L_Bag,7932,40; //Poison_Herb_Nerium + else if (.@i <= 5040) callsub L_Bag,7933,40; //Poison_Herb_Rantana + else if (.@i <= 5140) callsub L_Bag,7934,40; //Poison_Herb_Makulata + else if (.@i <= 5240) callsub L_Bag,7935,40; //Poison_Herb_Seratum + else if (.@i <= 5340) callsub L_Bag,7936,40; //Poison_Herb_Scopolia + else if (.@i <= 5440) callsub L_Bag,7937,40; //Poison_Herb_Amoena + else if (.@i <= 5540) callsub L_Bag,6217,40; //Mandragora_Flowerpot + else if (.@i <= 6000) callsub L_Bag,12016,20; //Speed_Up_Potion + else if (.@i <= 6500) callsub L_Bag,2483,1; //Siege_Greave + else if (.@i <= 7000) callsub L_Bag,2484,1; //Siege_Boots + else if (.@i <= 7500) callsub L_Bag,2485,1; //Siege_Shoes + else if (.@i <= 8000) callsub L_Bag,2586,1; //Siege_Manteau + else if (.@i <= 8500) callsub L_Bag,2587,1; //Siege_Muffler + else if (.@i <= 9000) callsub L_Bag,15046,1; //Siege_Plate + else if (.@i <= 9500) callsub L_Bag,15047,1; //Siege_Suits + else callsub L_Bag,15048,1; //Siege_Robe + end; + } + end; + +//callsub L_Purchase,,,{,}; +L_Purchase: + if (countitem(6488) < getarg(0)) { + mes "You don't have enough ^FF0000Invest Thanks Ticket^000000 to proceed."; + close; + } + delitem 6488,getarg(0); //Thanks_Invest_Ticket + getitem getarg(1),getarg(2); + mes "- Done! -"; + next; + mes "The item ^0000FF"+((getargcount() > 3)?getarg(3,""):getitemname(getarg(1)))+"^000000 has been obtained."; + close; + +//callsub L_Bag,,{,}; +L_Bag: + getitem getarg(0),getarg(1); + mes "- Done! -"; + next; + mes "The item ^0000FF"+((getargcount() > 2)?getarg(2,""):getitemname(getarg(0)))+"^000000 has been obtained."; + close; +} diff --git a/npc/re/woe-fe/invest_npc.txt b/npc/re/woe-fe/invest_npc.txt new file mode 100644 index 000000000..a1d564e00 --- /dev/null +++ b/npc/re/woe-fe/invest_npc.txt @@ -0,0 +1,65 @@ +//===== Hercules Script ====================================== +//= Hall of Abyss - NPC Duplicates +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Description: ========================================= +//= [Official Conversion] +//= Expansion for War of Emperium FE. +//= Invest in each realm to unlock new maps: +//= - Guild Dungeon F2, total 20,000,000z. +//= - Hall of Abyss, total 70,000,000z. +//===== Additional Comments: ================================= +//= 1.0 First version. [Euphy] +//============================================================ + +// Realms - Merchant Guilds, Gate Managers, Status Boards +//============================================================ +alde_gld,186,157,3 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Megrez 4_CAT_MERMASTER +alde_gld,191,164,3 duplicate(Gate Manager#realm) Gate Manager#alde_f00 4_M_BOSSCAT +alde_gld,188,158,3 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Alde 4_BOARD3 + +gef_fild13,187,208,3 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Meraq 4_CAT_MERMASTER +gef_fild13,189,206,3 duplicate(Gate Manager#realm) Gate Manager#gef_f00 4_M_BOSSCAT +gef_fild13,190,209,3 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Gef 4_BOARD3 + +pay_gld,203,189,3 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Phecda 4_CAT_MERMASTER +pay_gld,206,189,3 duplicate(Gate Manager#realm) Gate Manager#pay_f00 4_M_BOSSCAT +pay_gld,200,189,5 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Pay 4_BOARD3 + +prt_gld,158,96,5 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Dubae 4_CAT_MERMASTER +prt_gld,161,96,3 duplicate(Gate Manager#realm) Gate Manager#prt_f00 4_M_BOSSCAT +prt_gld,163,99,3 duplicate(Investment Status Board) Investment Status Board::InvestStatus_Prt 4_BOARD3 + +// Inside Castles - Gate Managers +//============================================================ +aldeg_cas01,85,105,4 duplicate(Gate Manager#castle) Gate Manager#alde_f01 4_M_BOSSCAT +aldeg_cas02,124,49,3 duplicate(Gate Manager#castle) Gate Manager#alde_f02 4_M_BOSSCAT +aldeg_cas03,121,75,3 duplicate(Gate Manager#castle) Gate Manager#alde_f03 4_M_BOSSCAT +aldeg_cas04,25,67,7 duplicate(Gate Manager#castle) Gate Manager#alde_f04 4_M_BOSSCAT +aldeg_cas05,54,200,3 duplicate(Gate Manager#castle) Gate Manager#alde_f05 4_M_BOSSCAT + +gefg_cas01,39,49,4 duplicate(Gate Manager#castle) Gate Manager#gef_f01 4_M_BOSSCAT +gefg_cas02,10,65,4 duplicate(Gate Manager#castle) Gate Manager#gef_f02 4_M_BOSSCAT +gefg_cas03,100,87,4 duplicate(Gate Manager#castle) Gate Manager#gef_f03 4_M_BOSSCAT +gefg_cas04,35,44,3 duplicate(Gate Manager#castle) Gate Manager#gef_f04 4_M_BOSSCAT +gefg_cas05,84,46,3 duplicate(Gate Manager#castle) Gate Manager#gef_f05 4_M_BOSSCAT + +payg_cas01,129,59,3 duplicate(Gate Manager#castle) Gate Manager#pay_f01 4_M_BOSSCAT +payg_cas02,27,277,3 duplicate(Gate Manager#castle) Gate Manager#pay_f02 4_M_BOSSCAT +payg_cas03,51,266,3 duplicate(Gate Manager#castle) Gate Manager#pay_f03 4_M_BOSSCAT +payg_cas04,39,264,4 duplicate(Gate Manager#castle) Gate Manager#pay_f04 4_M_BOSSCAT +payg_cas05,272,252,4 duplicate(Gate Manager#castle) Gate Manager#pay_f05 4_M_BOSSCAT + +prtg_cas01,114,178,3 duplicate(Gate Manager#castle) Gate Manager#prt_f01 4_M_BOSSCAT +prtg_cas02,89,63,5 duplicate(Gate Manager#castle) Gate Manager#prt_f02 4_M_BOSSCAT +prtg_cas03,72,109,3 duplicate(Gate Manager#castle) Gate Manager#prt_f03 4_M_BOSSCAT +prtg_cas04,29,263,4 duplicate(Gate Manager#castle) Gate Manager#prt_f04 4_M_BOSSCAT +prtg_cas05,24,23,4 duplicate(Gate Manager#castle) Gate Manager#prt_f05 4_M_BOSSCAT + +// iRO NPC Locations +//============================================================ +//prt_gld,148,253,4 duplicate(Cat Paw Merchants Notice) Cat Paw Merchants Notice::CatPawNotice_iRO 4_BOARD3 +//prt_gld,145,255,6 duplicate(Namis#invest) Namis::Namis_iRO 4_CAT_SAILOR2,4,4 +//prt_gld,165,50,4 duplicate(Thanks Ticket Machine) Thanks Ticket Machine::ThanksMachine_iRO 2_VENDING_MACHINE1 diff --git a/npc/scripts_guild.conf b/npc/scripts_guild.conf deleted file mode 100644 index 90c066fcb..000000000 --- a/npc/scripts_guild.conf +++ /dev/null @@ -1,55 +0,0 @@ -// -------------------------------------------------------------- -// - Guild Wars - -// -------------------------------------------------------------- - -// ----------------------- War of Emperium ---------------------- -// - Guild WoE time settings -npc: npc/guild/agit_controller.txt -// - Guild NPC Template file -npc: npc/guild/agit_main.txt -// - Al De Baran -npc: npc/guild/aldeg_cas01.txt -npc: npc/guild/aldeg_cas02.txt -npc: npc/guild/aldeg_cas03.txt -npc: npc/guild/aldeg_cas04.txt -npc: npc/guild/aldeg_cas05.txt -// - Geffen -npc: npc/guild/gefg_cas01.txt -npc: npc/guild/gefg_cas02.txt -npc: npc/guild/gefg_cas03.txt -npc: npc/guild/gefg_cas04.txt -npc: npc/guild/gefg_cas05.txt -// - Payon -npc: npc/guild/payg_cas01.txt -npc: npc/guild/payg_cas02.txt -npc: npc/guild/payg_cas03.txt -npc: npc/guild/payg_cas04.txt -npc: npc/guild/payg_cas05.txt -// - Prontera -npc: npc/guild/prtg_cas01.txt -npc: npc/guild/prtg_cas02.txt -npc: npc/guild/prtg_cas03.txt -npc: npc/guild/prtg_cas04.txt -npc: npc/guild/prtg_cas05.txt -// - Treasure Room Protection -//npc: npc/guild/trs_rp.txt - -// --------------- War of Emperium Second Edition --------------- -// - WoE SE time settings -npc: npc/guild2/agit_start_se.txt -// - Guild NPC Template file -npc: npc/guild2/agit_main_se.txt -// - Town Flags -npc: npc/guild2/guild_flags.txt -// - Arunafeltz -npc: npc/guild2/arug_cas01.txt -npc: npc/guild2/arug_cas02.txt -npc: npc/guild2/arug_cas03.txt -npc: npc/guild2/arug_cas04.txt -npc: npc/guild2/arug_cas05.txt -// - Schwaltzvalt -npc: npc/guild2/schg_cas01.txt -npc: npc/guild2/schg_cas02.txt -npc: npc/guild2/schg_cas03.txt -npc: npc/guild2/schg_cas04.txt -npc: npc/guild2/schg_cas05.txt diff --git a/npc/scripts_woe.conf b/npc/scripts_woe.conf new file mode 100644 index 000000000..42f567c65 --- /dev/null +++ b/npc/scripts_woe.conf @@ -0,0 +1,55 @@ +// -------------------------------------------------------------- +// - Guild Wars - +// -------------------------------------------------------------- + +// ----------------------- War of Emperium ---------------------- +// - Guild WoE time settings +npc: npc/woe-fe/agit_controller.txt +// - Guild NPC Template file +npc: npc/woe-fe/agit_main.txt +// - Al De Baran +npc: npc/woe-fe/aldeg_cas01.txt +npc: npc/woe-fe/aldeg_cas02.txt +npc: npc/woe-fe/aldeg_cas03.txt +npc: npc/woe-fe/aldeg_cas04.txt +npc: npc/woe-fe/aldeg_cas05.txt +// - Geffen +npc: npc/woe-fe/gefg_cas01.txt +npc: npc/woe-fe/gefg_cas02.txt +npc: npc/woe-fe/gefg_cas03.txt +npc: npc/woe-fe/gefg_cas04.txt +npc: npc/woe-fe/gefg_cas05.txt +// - Payon +npc: npc/woe-fe/payg_cas01.txt +npc: npc/woe-fe/payg_cas02.txt +npc: npc/woe-fe/payg_cas03.txt +npc: npc/woe-fe/payg_cas04.txt +npc: npc/woe-fe/payg_cas05.txt +// - Prontera +npc: npc/woe-fe/prtg_cas01.txt +npc: npc/woe-fe/prtg_cas02.txt +npc: npc/woe-fe/prtg_cas03.txt +npc: npc/woe-fe/prtg_cas04.txt +npc: npc/woe-fe/prtg_cas05.txt +// - Treasure Room Protection +//npc: npc/woe-fe/trs_rp.txt + +// --------------- War of Emperium Second Edition --------------- +// - WoE SE time settings +npc: npc/woe-se/agit_start_se.txt +// - Guild NPC Template file +npc: npc/woe-se/agit_main_se.txt +// - Town Flags +npc: npc/woe-se/guild_flags.txt +// - Arunafeltz +npc: npc/woe-se/arug_cas01.txt +npc: npc/woe-se/arug_cas02.txt +npc: npc/woe-se/arug_cas03.txt +npc: npc/woe-se/arug_cas04.txt +npc: npc/woe-se/arug_cas05.txt +// - Schwaltzvalt +npc: npc/woe-se/schg_cas01.txt +npc: npc/woe-se/schg_cas02.txt +npc: npc/woe-se/schg_cas03.txt +npc: npc/woe-se/schg_cas04.txt +npc: npc/woe-se/schg_cas05.txt diff --git a/npc/woe-fe/agit_controller.txt b/npc/woe-fe/agit_controller.txt new file mode 100644 index 000000000..8d038c322 --- /dev/null +++ b/npc/woe-fe/agit_controller.txt @@ -0,0 +1,81 @@ +//===== Hercules Script ====================================== +//= War of Emperium - WoE Auto-Start +//===== By: ================================================== +//= kalen (1.0) +//= 1.1 by Akaru and ho|yAnge| +//===== Current Version: ===================================== +//= 2.0a +//===== 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] +//= 2.0a Removed some brackets +//============================================================ +//| 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 (.@i = 0; .@i <= 19; ++.@i) { + 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; +} diff --git a/npc/woe-fe/agit_main.txt b/npc/woe-fe/agit_main.txt new file mode 100644 index 000000000..527bebce4 --- /dev/null +++ b/npc/woe-fe/agit_main.txt @@ -0,0 +1,1350 @@ +//===== Hercules Script ====================================== +//= War of Emperium Guild Template File +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 2.0 +//===== Description: ========================================= +//= [ Aegis Conversion] +//= ---------------------------------------------------------- +//= - THIS FILE IS REQUIRED FOR GUILD CASTLES TO FUNCTION. +//= ---------------------------------------------------------- +//= - Enables AGIT Manager inside Guild Strongholds. +//= Visible Name required: Agit +//= Manages the various functions used in and out of WoE. +//= +//= - Enables Stewards inside Guild Strongholds which let's +//= the guild master invest in Defense and Economy, and +//= to summon guardians, a Kafra, and enter master's room. +//= +//= - Guardian Spawning Template +//= Visible Name required: Guardian +//= Spawn guardians when guild castle data is recieved. +//= +//= - Enables Kafra Services inside Guild Strongholds. +//= Visible Name required: Kafra Employee +//= Storage, Guild Storage, Teleport Service, Cart rental. +//= +//= - Treasure Chest spawning. +//= Chests will NOT be saved anymore in the event of crashes. +//= Treasures will NOT spawn on a location that already has +//= treasure chest spawned. +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Daily investment will now be reset. [L0ne_W0lf] +//= Template will no longer try to spawn chests. +//= 1.2 Fixed Eco Invest option charging twice. [L0ne_W0lf] +//= 1.3 Fixed a loading flag emblem for Payon 1. [L0ne_W0lf] +//= Fixed two typos regarding Guild Steward name. +//= 1.4 Fixed a typo in defense investment. [L0ne_W0lf] +//= 1.5 Fixed spawn point of the emperium in Payon 1. [L0ne_W0lf] +//= Double-investing doubles the price now. +//= 1.6 Corrected Zeny check when summoning guardians. [L0ne_W0lf] +//= Corrected cost for investing, thanks to Ai4rei. +//= Second invest is now quadruple the value of the first +//= Investing now happens at the turn of the day. +//= 1.6a Corrected conditions in the new investing blocks. [L0ne_W0lf] +//= 1.6b Moved where investments are added to eco/def. [L0ne_W0lf] +//= 1.7 Updated Agitbreak announcements, added bc_woe [L0ne_W0lf] +//= and added extended announcement format for mapannounce. +//= 1.8 Fixed a possible exploit in guild castle investment. [Brian] +//= 1.9 Partially rewrote Script. [Masao] +//= 1.9a Fixed incorrect setcastledata parameter. [Euphy] +//= 2.0 Fixed an issue where Castle Manager couldn't be fired. [Joseph] +//============================================================ + +// WoE : Main Functions +//============================================================ +- script Gld_Agit_Manager::Gld_Agit_Manager -1,{ + end; + +// War of Emperium has started. +OnAgitStart: + if (strnpcinfo(0) == "Gld_Agit_Manager") end; + maprespawnguildid strnpcinfo(2),getcastledata(strnpcinfo(2),1),6; + gvgon strnpcinfo(2); + +// Spawn (fall through), or respawn the Emperium once it has been broken. +OnStartArena: + // OnAgitStart will fall through and spawn the Emperium. + if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } + else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } + else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } + else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } + else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } + else if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } + else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } + else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } + else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } + else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } + else if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } + else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } + else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],269,265; } + else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } + else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } + else if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } + else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } + else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } + else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } + else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } + // Add custom Guild Castles here. + else { + end; + } + if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; + } + end; + +// The Emperium has been broken. +OnAgitBreak: + .@GID = getcharid(2); + // Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen) + if (.@GID <= 0) { + .@notice$ = "Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(2)+" while guildless. No data will be saved and Emperium respawned."; + logmes .@notice$; debugmes .@notice$; + donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; + end; + } + // Adjust Economy Invest Level for Castle + .@Economy = getcastledata(strnpcinfo(2),2) - 5; + if (.@Economy < 0) .@Economy = 0; + setcastledata strnpcinfo(2), 2, .@Economy; + // Adjust Defense Invest Level for Castle + .@defence = getcastledata(strnpcinfo(2),3) - 5; + if (.@defence < 0) .@defence = 0; + setcastledata strnpcinfo(2), 3, .@defence; + + // Set new Castle Occupant + setcastledata strnpcinfo(2),1, .@GID; + + // Announce that the Emperium is destroyed, and respawn all but new castle-occupants. + mapannounce strnpcinfo(2),"The emperium has been destroyed.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12; + maprespawnguildid strnpcinfo(2),.@GID,6; + + // Refresh castle data, disable Kafra and reset Invest information. + donpcevent strnpcinfo(0)+"::OnRecvCastle"; + disablenpc "Kafra Staff#"+strnpcinfo(2); + for (.@i = 4; .@i <= 9; ++.@i) { + setcastledata strnpcinfo(2), .@i, 0; + } + // Erase Guardian Database information if the new owners do not have Guardian Research. + if( getgdskilllv(.@GID,10002) == 0 ) { + for (.@i = 10; .@i <= 17; ++.@i) { + setcastledata strnpcinfo(2), .@i, 0; + } + } + // Respawn the Emperium, and display new owners. + sleep 500; // Slow down script execution slightly. + if( agitcheck() ) + donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; + sleep 7000; + announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildname(.@GID) + "] guild.",bc_all|bc_woe; + end; + +// War of Emperium has ended. +OnAgitEnd: + if (strnpcinfo(0) == "Gld_Agit_Manager") end; + gvgoff strnpcinfo(2); + // If the castle has no owner at the end of WoE, do not kill Emperium. + if (getcastledata(strnpcinfo(2),1)) { + killmonster strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; + } + end; + +// Occupying Guild has been disbanded. +OnGuildBreak: + if (strnpcinfo(0) == "Gld_Agit_Manager") end; + // Kill guardians, disable the Kafra, and set owner to 0. + killmonster strnpcinfo(2),"Guardian#"+strnpcinfo(2)+"::OnGuardianDied"; + disablenpc "Kafra Staff#"+strnpcinfo(2); + setcastledata strnpcinfo(2),1,0; + // Wait before refreshing guild information. + sleep 7000; + announce "Guild Base [" + getcastlename(strnpcinfo(2)) + "] has been abandoned.",0; + donpcevent strnpcinfo(0)+"::OnRecvCastle"; + end; + +OnAgitInit: +OnRecvCastle: + if (strnpcinfo(0) == "Gld_Agit_Manager") end; + // Spawn Monsters if the castle is empty. + .@GID = getcastledata(strnpcinfo(2),1); + if (.@GID == 0) { + killmonsterall strnpcinfo(2); + if (compare(strnpcinfo(2),"aldeg")) { + // Normal Spawns + monster strnpcinfo(2),0,0,"Evil Druid",1117,10; + monster strnpcinfo(2),0,0,"Khalitzburg",1132,4; + monster strnpcinfo(2),0,0,"Abysmal Knight",1219,2; + monster strnpcinfo(2),0,0,"Executioner",1205,1; + monster strnpcinfo(2),0,0,"Penomena",1216,10; + monster strnpcinfo(2),0,0,"Alarm",1193,18; + monster strnpcinfo(2),0,0,"Clock",1269,9; + monster strnpcinfo(2),0,0,"Raydric Archer",1276,7; + monster strnpcinfo(2),0,0,"Wanderer",1208,3; + monster strnpcinfo(2),0,0,"Alice",1275,1; + monster strnpcinfo(2),0,0,"Bloody Knight",1268,1; + monster strnpcinfo(2),0,0,"Dark Lord",1272,1; + // Set Emperium room spawn coordinates and spawn monsters. + if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } + else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } + else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } + else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } + else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Dark Lord",1272,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Tower Keeper",1270,4; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Bloody Knight",1268,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Abysmal Knight",1219,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; + } + else if (compare(strnpcinfo(2),"gefg")) { + // Normal Spawns + monster strnpcinfo(2),0,0,"Evil Druid",1117,10; + monster strnpcinfo(2),0,0,"Wind Ghost",1263,11; + monster strnpcinfo(2),0,0,"Bathory",1102,10; + monster strnpcinfo(2),0,0,"Jakk",1130,10; + monster strnpcinfo(2),0,0,"Marduk",1140,20; + monster strnpcinfo(2),0,0,"Raydric",1163,9; + monster strnpcinfo(2),0,0,"Alice",1275,1; + monster strnpcinfo(2),0,0,"Abysmal Knight",1219,1; + monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1; + monster strnpcinfo(2),0,0,"Phreeoni",1159,1; + // Set Emperium room spawn coordinates and spawn monsters. + if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } + else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } + else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } + else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } + else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Mysteltainn",1203,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Hero",1087,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"High Orc",1213,10; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Archer",1189,10; + } + else if (compare(strnpcinfo(2),"payg")) { + // Normal Spawns + monster strnpcinfo(2),0,0,"Greatest General",1277,9; + monster strnpcinfo(2),0,0,"Wanderer",1208,10; + monster strnpcinfo(2),0,0,"Mutant Dragonoid",1262,5; + monster strnpcinfo(2),0,0,"Bathory",1102,5; + monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1; + monster strnpcinfo(2),0,0,"Eddga",1115,1; + monster strnpcinfo(2),0,0,"Horong",1129,11; + monster strnpcinfo(2),0,0,"Raydric Archer",1276,5; + monster strnpcinfo(2),0,0,"Kobold Archer",1282,4; + monster strnpcinfo(2),0,0,"Gargoyle",1253,5; + // Set Emperium room spawn coordinates and spawn monsters. + if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } + else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } + else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],269,265; } + else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } + else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Moonlight Flower",1150,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Eddga",1115,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Wanderer",1208,6; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; + } + else if (compare(strnpcinfo(2),"prtg")) { + // Normal Spawns + monster strnpcinfo(2),0,0,"Raydric",1163,1; + monster strnpcinfo(2),0,0,"Khalitzburg",1132,10; + monster strnpcinfo(2),0,0,"Abysmal Knight",1219,5; + monster strnpcinfo(2),0,0,"Bloody Knight",1268,5; + monster strnpcinfo(2),0,0,"Stormy Knight",1251,1; + monster strnpcinfo(2),0,0,"Hatii",1252,1; + monster strnpcinfo(2),0,0,"Raydric Archer",1276,5; + monster strnpcinfo(2),0,0,"Gryphon",1259,2; + monster strnpcinfo(2),0,0,"Chimera",1283,3; + monster strnpcinfo(2),0,0,"Alice",1275,1; + monster strnpcinfo(2),0,0,"Zealotus",1200,1; + // Set Emperium room spawn coordinates and spawn monsters. + if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } + else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } + else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } + else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } + else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1268,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Master",1251,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Hatii",1252,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1219,1; + monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; + } + // Add custom Guild Castles here. + else { + end; + } + donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena"; + // Disable Kafra Staff... + disablenpc "Kafra Staff#"+strnpcinfo(2); + end; + } + else { + // Otherwise place the guild emblem on flags. + if (strnpcinfo(2) == "aldeg_cas01") { donpcevent "::OnRecvCastleA01"; } + else if (strnpcinfo(2) == "aldeg_cas02") { donpcevent "::OnRecvCastleA02"; } + else if (strnpcinfo(2) == "aldeg_cas03") { donpcevent "::OnRecvCastleA03"; } + else if (strnpcinfo(2) == "aldeg_cas04") { donpcevent "::OnRecvCastleA04"; } + else if (strnpcinfo(2) == "aldeg_cas05") { donpcevent "::OnRecvCastleA05"; } + else if (strnpcinfo(2) == "gefg_cas01") { donpcevent "::OnRecvCastleG01"; } + else if (strnpcinfo(2) == "gefg_cas02") { donpcevent "::OnRecvCastleG02"; } + else if (strnpcinfo(2) == "gefg_cas03") { donpcevent "::OnRecvCastleG03"; } + else if (strnpcinfo(2) == "gefg_cas04") { donpcevent "::OnRecvCastleG04"; } + else if (strnpcinfo(2) == "gefg_cas05") { donpcevent "::OnRecvCastleG05"; } + else if (strnpcinfo(2) == "payg_cas01") { donpcevent "::OnRecvCastlePy01"; } + else if (strnpcinfo(2) == "payg_cas02") { donpcevent "::OnRecvCastlePy02"; } + else if (strnpcinfo(2) == "payg_cas03") { donpcevent "::OnRecvCastlePy03"; } + else if (strnpcinfo(2) == "payg_cas04") { donpcevent "::OnRecvCastlePy04"; } + else if (strnpcinfo(2) == "payg_cas05") { donpcevent "::OnRecvCastlePy05"; } + else if (strnpcinfo(2) == "prtg_cas01") { donpcevent "::OnRecvCastlePt01"; } + else if (strnpcinfo(2) == "prtg_cas02") { donpcevent "::OnRecvCastlePt02"; } + else if (strnpcinfo(2) == "prtg_cas03") { donpcevent "::OnRecvCastlePt03"; } + else if (strnpcinfo(2) == "prtg_cas04") { donpcevent "::OnRecvCastlePt04"; } + else if (strnpcinfo(2) == "prtg_cas05") { donpcevent "::OnRecvCastlePt05"; } + // Add custom Guild Castles here. + else { + end; + } + // And load purchased Guardian in castles. + donpcevent "Guardian#"+strnpcinfo(2)+"::OnSpawnGuardians"; + // And display Kafra if purchased. + if (getcastledata(strnpcinfo(2),9) < 1) disablenpc "Kafra Staff#"+strnpcinfo(2); + } + end; +} + +// WoE : Guild Kafras +//============================================================ +- script Kafra Staff#woe::guildkafra -1,{ + + .@GID = getcastledata(strnpcinfo(2),1); + + if (compare(strnpcinfo(2),"aldeg")) { + setarray .@destination$[0],"Al De Baran","aldebaran"; + setarray .@coordinates[0],132,103; + } + else if (compare(strnpcinfo(2),"gefg")) { + setarray .@destination$[0],"Geffen","geffen"; + setarray .@coordinates[0],120,39; + } + else if (compare(strnpcinfo(2),"payg")) { + setarray .@destination$[0],"Payon","payon"; + setarray .@coordinates[0],70,100; + } + else if (compare(strnpcinfo(2),"prtg")) { + setarray .@destination$[0],"Prontera","prontera"; + setarray .@coordinates[0],278,211; + } + // Add custom Guild Castles here. + else { + end; + } + + cutin "kafra_01",2; + if (getcharid(2) == .@GID) { + mes "[Kafra Employee]"; + mes "Welcome. ^ff0000" + getguildname(.@GID) + "^000000 Member."; + mes "The Kafra Corporation will stay with you wherever you go."; + next; + switch (select("Use Storage:Use Teleport Service:Rent a Pushcart:Cancel")) { + case 1: + if (getskilllv("NV_BASIC") < 6) { + mes "[Kafra Employee]"; + mes "I'm sorry, but you"; + mes "need the Novice's"; + mes "Basic Skill Level 6 to"; + mes "use the Storage Service."; + close2; + cutin "",255; + end; + } + mes "[Kafra Employee]"; + mes "Here, let me open"; + mes "your Storage for you."; + mes "Thank you for using"; + mes "the Kafra Service."; + close2; + cutin "",255; + openstorage; + end; + case 2: + mes "[Kafra Employee]"; + mes "Please choose"; + mes "your destination."; + next; + switch (select(.@destination$+" -> 200z:Cancel")) { + case 1: + if (Zeny < 200) { + mes "[Kafra Employee]"; + mes "I'm sorry, but you don't have"; + mes "enough zeny for the Teleport"; + mes "Service. The fee to teleport"; + mes "to "+.@destination$+" is 200 zeny."; + close2; + cutin "",255; + end; + } + Zeny -= 200; + RESRVPTS += 2; + close2; + warp .@destination$[1],.@coordinates[0],.@coordinates[1]; + end; + case 2: + close2; + cutin "",255; + end; + } + case 3: + if (BaseClass != Job_Merchant) { + mes "[Kafra Employee]"; + mes "I'm sorry, but the"; + mes "Pushcart rental service"; + mes "is only available to Merchants,"; + mes "Blacksmiths, Master Smiths,"; + mes "Alchemists, Biochemists,"; + mes "Mechanics and Geneticists."; + close2; + cutin "",255; + end; + } + if (checkcart()) { + mes "[Kafra Employee]"; + mes "You already have"; + mes "a Pushcart equipped."; + mes "Unfortunately, we can't"; + mes "rent more than one to"; + mes "each customer at a time."; + close2; + cutin "",255; + end; + } + mes "[Kafra Employee]"; + mes "The Pushcart rental"; + mes "fee is 800 zeny. Would"; + mes "you like to rent a Pushcart?"; + next; + switch (select("Rent a Pushcart.:Cancel")) { + case 1: + if (Zeny < 800) { + mes "[Kafra Employee]"; + mes "I'm sorry, but you"; + mes "don't have enough"; + mes "zeny to pay the Pushcart"; + mes "rental fee of 800 zeny."; + close2; + cutin "",255; + end; + } + RESRVPTS += 8; + Zeny -= 800; + setcart; + close2; + cutin "",255; + end; + case 2: + close2; + cutin "",255; + end; + } + case 4: + mes "[Kafra Employee]"; + mes "We, here at Kafra Corporation,"; + mes "are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence."; + close2; + cutin "",255; + end; + } + } + mes "[Kafra Employee]"; + mes "I am instructed to only offer my services to the ^ff0000"+getguildname(.@GID)+"^000000 Guild. Please try another Kafra Employee around here. Sorry for the inconvenience."; + close2; + cutin "",255; + end; +} + +// WoE : Castle Managers +//============================================================ +- script Castle Manager#cm::cm -1,{ + + .@GID = getcastledata(strnpcinfo(2),1); + + // .@guardiantype = Defines the types of guardians per castle basis. + // 1 - Soldier Guardian, 2 - Archer Guardian, 3 - Knight Guardian + // .@guardianposx = Define the x spawn point for each uardian. + // [0] = 1st guardian's x spawn point. + // .@guardianposy = Define the y spawn point for each guardian. + // [0] = 1st guardian's y spawn point. + // .@masterroom = Defines the coordinates of the Treasure Room. + if (strnpcinfo(2) == "aldeg_cas01") { + setarray .@guardiantype[0],1,2,2,2,2,3,3,3; + setarray .@guardianposx[0],17,39,38,45,21,218,213,73; + setarray .@guardianposy[0],218,208,196,228,194,24,24,70; + setarray .@masterroom[0],113,223; + } + else if (strnpcinfo(2) == "aldeg_cas02") { + setarray .@guardiantype[0],3,3,3,1,1,2,2,2; + setarray .@guardianposx[0],27,88,117,60,51,21,36,210; + setarray .@guardianposy[0],184,43,46,202,183,177,183,7; + setarray .@masterroom[0],134,225; + } + else if (strnpcinfo(2) == "aldeg_cas03") { + setarray .@guardiantype[0],3,3,1,1,1,2,2,2; + setarray .@guardianposx[0],90,116,86,116,64,212,195,110; + setarray .@guardianposy[0],112,112,120,76,103,160,151,217; + setarray .@masterroom[0],229,267; + } + else if (strnpcinfo(2) == "aldeg_cas04") { + setarray .@guardiantype[0],2,2,2,1,1,1,3,3; + setarray .@guardianposx[0],187,192,148,145,169,198,48,55; + setarray .@guardianposy[0],100,42,88,209,53,77,72,88; + setarray .@masterroom[0],83,17; + } + else if (strnpcinfo(2) == "aldeg_cas05") { + setarray .@guardiantype[0],2,2,1,1,3,3,3,3; + setarray .@guardianposx[0],51,188,157,157,27,145,156,41; + setarray .@guardianposy[0],202,79,192,74,221,78,73,112; + setarray .@masterroom[0],64,8; + } + // Geffen (Britoniah) Castles + else if (strnpcinfo(2) == "gefg_cas01") { + setarray .@guardiantype[0],1,1,1,2,2,3,3,3; + setarray .@guardianposx[0],67,184,62,36,50,50,189,200; + setarray .@guardianposy[0],179,20,41,186,186,67,41,167; + setarray .@masterroom[0],152,117; + } + else if (strnpcinfo(2) == "gefg_cas02") { + setarray .@guardiantype[0],1,1,1,2,2,3,3,3; + setarray .@guardianposx[0],64,56,166,35,20,19,166,159; + setarray .@guardianposy[0],168,41,25,148,150,41,42,188; + setarray .@masterroom[0],145,115; + } + else if (strnpcinfo(2) == "gefg_cas03") { + setarray .@guardiantype[0],2,2,1,1,1,3,3,3; + setarray .@guardianposx[0],48,113,48,157,243,157,234,238; + setarray .@guardianposy[0],176,214,207,62,41,45,25,160; + setarray .@masterroom[0],275,289; + } + else if (strnpcinfo(2) == "gefg_cas04") { + setarray .@guardiantype[0],2,2,1,1,1,3,3,3; + setarray .@guardianposx[0],53,31,49,29,147,57,160,148; + setarray .@guardianposy[0],191,178,220,46,65,46,50,189; + setarray .@masterroom[0],116,123; + } + else if (strnpcinfo(2) == "gefg_cas05") { + setarray .@guardiantype[0],2,2,1,1,1,3,3,3; + setarray .@guardianposx[0],45,71,72,66,177,66,177,193; + setarray .@guardianposy[0],149,163,142,47,50,17,35,166; + setarray .@masterroom[0],149,106; + } + // Payon (Baulder) Castles + else if (strnpcinfo(2) == "payg_cas01") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],229,225,222,99,65,36,51,138; + setarray .@guardianposy[0],92,80,111,45,31,127,144,133; + setarray .@masterroom[0],295,8; + } + else if (strnpcinfo(2) == "payg_cas02") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],237,228,210,57,42,287,264,27; + setarray .@guardianposy[0],54,72,41,241,241,257,272,20; + setarray .@masterroom[0],141,149; + } + else if (strnpcinfo(2) == "payg_cas03") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],245,269,36,41,39,19,37,268; + setarray .@guardianposy[0],37,51,39,39,65,276,277,244; + setarray .@masterroom[0],163,167; + } + else if (strnpcinfo(2) == "payg_cas04") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],251,232,231,32,32,35,36,270; + setarray .@guardianposy[0],212,212,175,287,232,45,17,41; + setarray .@masterroom[0],151,47; + } + else if (strnpcinfo(2) == "payg_cas05") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],19,33,266,266,263,263,250,36; + setarray .@guardianposy[0],279,260,234,279,37,21,22,36; + setarray .@masterroom[0],153,137; + } + // Prontera (Valkyrie Realms) Castles + else if (strnpcinfo(2) == "prtg_cas01") { + setarray .@guardiantype[0],1,1,1,2,2,3,3,3; + setarray .@guardianposx[0],182,182,153,59,50,184,196,107; + setarray .@guardianposy[0],62,116,86,28,36,183,189,179; + setarray .@masterroom[0],15,209; + } + else if (strnpcinfo(2) == "prtg_cas02") { + setarray .@guardiantype[0],3,3,3,1,1,2,2,2; + setarray .@guardianposx[0],161,153,178,71,49,64,7,75; + setarray .@guardianposy[0],161,161,44,75,28,186,196,175; + setarray .@masterroom[0],207,229; + } + else if (strnpcinfo(2) == "prtg_cas03") { + setarray .@guardiantype[0],3,3,3,1,1,2,2,2; + setarray .@guardianposx[0],191,137,45,50,41,191,179,191; + setarray .@guardianposy[0],190,190,99,87,87,42,43,72; + setarray .@masterroom[0],190,130; + } + else if (strnpcinfo(2) == "prtg_cas04") { + setarray .@guardiantype[0],3,3,3,1,1,1,2,2; + setarray .@guardianposx[0],276,274,246,38,29,33,78,36; + setarray .@guardianposy[0],14,35,246,240,240,258,48,61; + setarray .@masterroom[0],275,160; + } + else if (strnpcinfo(2) == "prtg_cas05") { + setarray .@guardiantype[0],3,3,3,1,1,1,2,2; + setarray .@guardianposx[0],266,287,245,236,251,278,32,44; + setarray .@guardianposy[0],262,280,250,63,63,253,253,248; + setarray .@masterroom[0],281,176; + } + // Add custom Guild Castles here. + else { + end; + } + + if (.@GID == 0) { + mes "["+strnpcinfo(1)+"]"; + mes "I have been waiting for a master to fulfill my destiny."; + mes "Brave soul... fate will guide you towards your future..."; + close; + } + if (getguildmaster(.@GID) != strcharinfo(0)) { + mes "["+strnpcinfo(1)+"]"; + mes "No matter how much you pester me, I'll still follow my master ^ff0000"+getguildmaster(.@GID)+"^000000. Where are the Guardians?! Send these ruffians away right now!"; + close; + } + mes "["+strnpcinfo(1)+"]"; + mes "Welcome. My honorable master, ^ff0000"+strcharinfo(0)+"^000000..."; + mes "Your humble servent, "+strnpcinfo(1)+", is here to serve you."; + next; + switch (select("Castle briefing:Invest in commercial growth:Invest in Castle Defenses:Summon Guardian:Hire / Fire a Kafra Employee:Go into Master's room")) { + case 1: + mes "["+strnpcinfo(1)+"]"; + mes "I will report the Castle briefing, Master."; + mes " "; + mes "^0000ffNow, the commercial growth level is "+getcastledata(strnpcinfo(2),2)+"."; + if (getcastledata(strnpcinfo(2),4)) { + mes " You invested "+getcastledata(strnpcinfo(2),4)+" times in past 1 day."; + } + mes " Now, the Castle Defense level is "+getcastledata(strnpcinfo(2),3)+".^000000"; + if (getcastledata(strnpcinfo(2),5)) { + mes " ^0000ff- You invested "+getcastledata(strnpcinfo(2),5)+" times in past 1 day.^000000"; + } + mes " "; + mes "That's all I have to report, Master."; + close; + case 2: + .@Economy = getcastledata(strnpcinfo(2),2); + if (.@Economy < 6) { .@eco_invest = 5000; } + else if ((.@Economy >= 6) && (.@Economy <= 10)) { .@eco_invest = 10000; } + else if ((.@Economy >= 11) && (.@Economy <= 15)) { .@eco_invest = 20000; } + else if ((.@Economy >= 16) && (.@Economy <= 20)) { .@eco_invest = 35000; } + else if ((.@Economy >= 21) && (.@Economy <= 25)) { .@eco_invest = 55000; } + else if ((.@Economy >= 26) && (.@Economy <= 30)) { .@eco_invest = 80000; } + else if ((.@Economy >= 31) && (.@Economy <= 35)) { .@eco_invest = 110000; } + else if ((.@Economy >= 36) && (.@Economy <= 40)) { .@eco_invest = 145000; } + else if ((.@Economy >= 41) && (.@Economy <= 45)) { .@eco_invest = 185000; } + else if ((.@Economy >= 46) && (.@Economy <= 50)) { .@eco_invest = 230000; } + else if ((.@Economy >= 51) && (.@Economy <= 55)) { .@eco_invest = 280000; } + else if ((.@Economy >= 56) && (.@Economy <= 60)) { .@eco_invest = 335000; } + else if ((.@Economy >= 61) && (.@Economy <= 65)) { .@eco_invest = 395000; } + else if ((.@Economy >= 66) && (.@Economy <= 70)) { .@eco_invest = 460000; } + else if ((.@Economy >= 71) && (.@Economy <= 75)) { .@eco_invest = 530000; } + else if ((.@Economy >= 76) && (.@Economy <= 80)) { .@eco_invest = 605000; } + else if ((.@Economy >= 81) && (.@Economy <= 85)) { .@eco_invest = 685000; } + else if ((.@Economy >= 86) && (.@Economy <= 90)) { .@eco_invest = 770000; } + else if ((.@Economy >= 91) && (.@Economy <= 95)) { .@eco_invest = 860000; } + else if ((.@Economy >= 96) && (.@Economy <= 100)) { .@eco_invest = 955000; } + //Quadruple the cost of investing if you've already invested once. + if (getcastledata(strnpcinfo(2),4)) { + .@eco_invest *= 4; + } + mes "["+strnpcinfo(1)+"]"; + mes "If you invest in commercial growth, the quantity of goods made by the guild will increase. Therfore, if you consider our future, investments will be a necessity."; + mes " "; + mes "Initially, you are able to invest just once but if you pay more money, you will be able to invest twice."; + if (.@Economy >= 100) { + mes " "; + mes "^ff0000The commercial growth level of our Castle is at it's highest, 100%. No more investments are needed. Just as I have expected from a great economist like you, Master.^000000"; + close; + } + if (getcastledata(strnpcinfo(2),4) >= 2) { + mes " "; + mes "^ff0000You have already invested twice today. You cannot invest any more.^000000 I expect riches of the guild to grow at a high rate."; + close; + } + if (getcastledata(strnpcinfo(2),4) == 0) { + mes " "; + mes "The current investment amount required is ^ff0000"+.@eco_invest+"^000000 zeny. Will you invest?"; + } + else { + mes " "; + mes "You've invested once today... if you wish to invest once more, ^ff0000"+.@eco_invest+"^000000 more zeny will be needed."; + } + next; + switch (select("Invest in commercial growth:Cancel")) { + case 1: + if (Zeny < .@eco_invest) { + mes "["+strnpcinfo(1)+"]"; + mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master."; + close; + } + Zeny -= .@eco_invest; + setcastledata strnpcinfo(2),4,getcastledata(strnpcinfo(2),4)+1; + mes "[ "+strnpcinfo(1)+"]"; + mes "We finished the investment safely. I expect that our growth level will be increased by tomorrow."; + close; + case 2: + mes "["+strnpcinfo(1)+"]"; + mes "I'll do as you bid, my master... There is no hurry. We will do our best."; + close; + } + case 3: + .@defence = getcastledata(strnpcinfo(2),3); + if (.@defence < 6) { .@def_invest = 10000; } + else if ((.@defence >= 6) && (.@defence <= 10)) { .@def_invest = 20000; } + else if ((.@defence >= 11) && (.@defence <= 15)) { .@def_invest = 40000; } + else if ((.@defence >= 16) && (.@defence <= 20)) { .@def_invest = 70000; } + else if ((.@defence >= 21) && (.@defence <= 25)) { .@def_invest = 110000; } + else if ((.@defence >= 26) && (.@defence <= 30)) { .@def_invest = 160000; } + else if ((.@defence >= 31) && (.@defence <= 35)) { .@def_invest = 220000; } + else if ((.@defence >= 36) && (.@defence <= 40)) { .@def_invest = 290000; } + else if ((.@defence >= 41) && (.@defence <= 45)) { .@def_invest = 370000; } + else if ((.@defence >= 46) && (.@defence <= 50)) { .@def_invest = 460000; } + else if ((.@defence >= 51) && (.@defence <= 55)) { .@def_invest = 560000; } + else if ((.@defence >= 56) && (.@defence <= 60)) { .@def_invest = 670000; } + else if ((.@defence >= 61) && (.@defence <= 65)) { .@def_invest = 790000; } + else if ((.@defence >= 66) && (.@defence <= 70)) { .@def_invest = 920000; } + else if ((.@defence >= 71) && (.@defence <= 75)) { .@def_invest = 1060000; } + else if ((.@defence >= 76) && (.@defence <= 80)) { .@def_invest = 1210000; } + else if ((.@defence >= 81) && (.@defence <= 85)) { .@def_invest = 1370000; } + else if ((.@defence >= 86) && (.@defence <= 90)) { .@def_invest = 1540000; } + else if ((.@defence >= 91) && (.@defence <= 95)) { .@def_invest = 1720000; } + else if ((.@defence >= 96) && (.@defence <= 100)) { .@def_invest = 1910000; } + //Quadruple the cost of investing if you've already invested once. + if (getcastledata(strnpcinfo(2),5)) { + .@def_invest *= 4; + } + mes "["+strnpcinfo(1)+"]"; + mes "If you raise Castle Defenses, the durability of Guardians and the Emperium will increase. Therefore, if you consider our coming battles, some investment in this area will be required."; + mes " "; + mes "Originally you can invest just once but if you pay more money, you can invest twice."; + if (.@defence >= 100) { + mes " "; + mes "^ff0000But the Castle Defense level of our Castle is at it's highest, 100%. No more investments are needed. Just as I have expected from a great strategist like you, Master.^000000"; + close; + } + if (getcastledata(strnpcinfo(2),5) >= 2) { + mes " "; + mes "^ff0000You have already invested twice today. You cannot invest any more.^000000 I expect the Defenses of the guild to grow at a high rate."; + close; + } + if (getcastledata(strnpcinfo(2),5) == 0) { + mes " "; + mes "The current investment amount required is ^ff0000"+.@def_invest+"^000000 zeny. Will you invest?"; + } + else { + mes " "; + mes "You've invested once today... if you wish to invest once more, ^ff0000"+.@def_invest+"^000000 more zeny will be needed."; + } + next; + switch (select("Invest in Castle Defenses.:Cancel")) { + case 1: + if (Zeny < .@def_invest) { + mes "["+strnpcinfo(1)+"]"; + mes "I'm sorry but there is not enough zeny to invest. You will have to try again when you have the funds, Master."; + close; + } + Zeny -= .@def_invest; + setcastledata strnpcinfo(2),5,getcastledata(strnpcinfo(2),5)+1; + mes "[ "+strnpcinfo(1)+"]"; + mes "We finished the investment safely. I expect that our Castle Defense level will be increased by tomorrow."; + close; + case 2: + mes "["+strnpcinfo(1)+"]"; + mes "I'll do as you bid, my master... There is no hurry. We will do our best."; + close; + } + case 4: + mes "["+strnpcinfo(1)+"]"; + mes "Will you summon a Guardian? It'll be a protector to defend us loyally."; + mes "Please select a guardian to defend us."; + next; + for (.@i = 0; .@i <= 7; ++.@i) { + if (.@guardiantype[.@i] == 1) { .@type$ = "Guardian Soldier"; } + else if (.@guardiantype[.@i] == 2) { .@type$ = "Guardian Archer"; } + else { .@type$ = "Guardian Knight"; } + if (guardianinfo(strnpcinfo(2),.@i,0)) { + setarray .@gname$[.@i], .@type$ + " - Implemented (" + guardianinfo(strnpcinfo(2),.@i,2) + "/" + guardianinfo(strnpcinfo(2),.@i,1) + ")"; + } + else { + setarray .@gname$[.@i], .@type$ + " - Not Implemented"; + } + } + .@menu$ = .@gname$[0]+":"+.@gname$[1]+":"+.@gname$[2]+":"+.@gname$[3]+":"+.@gname$[4]+":"+.@gname$[5]+":"+.@gname$[6]+":"+.@gname$[7]; + .@GDnum = select(.@menu$)+9; + mes "["+strnpcinfo(1)+"]"; + mes "Will you summon the chosen guardian? 10,000 zeny are required to summon a Guardian."; + next; + switch (select("Summon:Cancel")) { + case 1: + if (getgdskilllv(.@GID,10002) == 0) { + mes "["+strnpcinfo(1)+"]"; + mes "Master, we have not the resources to Summon the Guardian. If you want to accumulate them, you have to learn the Guild skill. We failed to summon the Guardian."; + close; + } + if (getcastledata(strnpcinfo(2),.@GDnum) == 1) { + mes "["+strnpcinfo(1)+"]"; + mes "Master, you already have summoned that Guardian. We cannot summon another."; + close; + } + if (Zeny < 10000) { + mes "["+strnpcinfo(1)+"]"; + mes "Well... I'm sorry but we don't have funds to summon the Guardian. We failed to summon the Guardian."; + close; + } + Zeny -= 10000; + setcastledata strnpcinfo(2),.@GDnum,1; // mark as 'installed' + .@UseGID = .@GDnum - 10; + if (.@guardiantype[.@UseGID] == 1) { .@type = 1287; } + else if (.@guardiantype[.@UseGID] == 2) { .@type = 1285; } + else { .@type = 1286; } + guardian strnpcinfo(2),.@guardianposx[.@UseGID],.@guardianposy[.@UseGID],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(2)+"::OnGuardianDied",.@UseGID; + mes "["+strnpcinfo(1)+"]"; + mes "We completed the summoning of the Guardian. Our defenses are now increased with it in place."; + close; + case 2: + mes "["+strnpcinfo(1)+"]"; + mes "I did as you ordered. But please remember if you the have money to spare, it'll be better to set it up."; + close; + } + case 5: + if (getcastledata(strnpcinfo(2),9) == 1) { + mes "["+strnpcinfo(1)+"]"; + mes "We are currently hiring a Kafra Employee... Do you want to fire the Kafra Employee?"; + next; + switch (select("Fire:Cancel")) { + case 1: + cutin "kafra_01",2; + mes "[ Hired Kafra Employee ]"; + mes "I worked so hard... How can you do that, Master?... Please... Please reconsider... Check it again, Master... Please..."; + next; + switch (select("Fire:Cancel")) { + case 1: + mes "[ Hired Kafra Employee ]"; + mes "Oh, my goodness! This is nonsense!"; + next; + cutin "",255; + break; + case 2: + mes "[ Hired Kafra Employee ]"; + mes "I'll work hard for you... Thank you!"; + close; + } + break; + case 2: + mes "["+strnpcinfo(1)+"]"; + mes "She worked hard in my opinion. It was a good decision to keep her."; + close; + } + disablenpc "Kafra Staff#"+strnpcinfo(2); + setcastledata strnpcinfo(2),9,0; + mes "["+strnpcinfo(1)+"]"; + mes "...."; + mes "I have discharged the Kafra Employee... But... are you unsatisfied with something?"; + close; + } + mes "["+strnpcinfo(1)+"]"; + mes "Will you contact the kafra Main Office and Hire a Employee for our Castle?"; + mes "^ff0000 10,000 zeny is required for their services. "; + next; + switch (select("Hire.:Cancel")) { + case 1: + if (getgdskilllv(.@GID,10001) == 0) { + mes "["+strnpcinfo(1)+"]"; + mes "Master, we can't hire a Kafra Employee because we don't have a contract with the Kafra Main Office. If you want to obtain a contract with the Kafra Main Office, you will need to learn the Guild skill first."; + close; + } + if (Zeny < 10000) { + mes "["+strnpcinfo(1)+"]"; + mes "Well... I'm sorry but we don't have enough funds to hire a Kafra Employee."; + close; + } + Zeny -= 10000; + enablenpc "Kafra Staff#"+strnpcinfo(2); + setcastledata strnpcinfo(2),9,1; + mes "["+strnpcinfo(1)+"]"; + mes "We obtained a contract with the kafra Main Office, and hired a Kafra Employee."; + next; + cutin "kafra_01",2; + mes "[ Hired Kafra Employee ]"; + mes "How do you do? I was dispatched from the Main Office."; + mes "I'll do my best to not tarnish the reputation of the Guild."; + next; + cutin "",255; + mes "["+strnpcinfo(1)+"]"; + mes "The Contract terms of the hired Kafra Employee are for 1 month and after this term, you will need to to pay an additional fee."; + mes "It will be useful for our members."; + close; + case 2: + mes "["+strnpcinfo(1)+"]"; + mes "I did as you ordered, but some of our members will be unhappy. It will be better to hire a Kafra Employee quickly."; + close; + } + case 6: + mes "["+strnpcinfo(1)+"]"; + mes "Do you want to visit the room where our valuables are stored?"; + mes "That room is restricted to you... you are the only one with access to it."; + next; + switch (select("Go into Master's room.:Cancel")) { + case 1: + mes "["+strnpcinfo(1)+"]"; + mes "I'll show you the secret path. Follow me...please."; + mes "When you want to return here, please press the secret switch."; + close2; + warp strnpcinfo(2),.@masterroom[0],.@masterroom[1]; + end; + case 2: + mes "["+strnpcinfo(1)+"]"; + mes "Goods are produced once a day... if you don't remove them in time, they will not be produced anymore."; + mes "Therefore, it will be better if you check up on them from time to time."; + close; + } + } +} + +// WoE : Guild Dungeon Entrances +//============================================================ +- script Lever#gd::gdlever -1,{ + + .@GID = getcastledata(strnpcinfo(2),1); + + if (.@GID == 0) { + mes "[Ringing Voice]"; + mes "'Those who overcome an ordeal shows a great deal of bravery... and will find their way to another ordeal.'"; + close; + } + + if (compare(strnpcinfo(2),"aldeg")) { + .@destination$ = "gld_dun02"; + if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],32,122; + else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],79,30; + else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],165,38; + else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],160,148; + else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],103,169; + } + else if (compare(strnpcinfo(2),"gefg")) { + .@destination$ = "gld_dun04"; + if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],39,258; + else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],125,270; + else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],268,251; + else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],268,108; + else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],230,35; + } + else if (compare(strnpcinfo(2),"payg")) { + .@destination$ = "gld_dun01"; + if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],186,165; + else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],54,165; + else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],54,39; + else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],186,39; + else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],223,202; + } + else if (compare(strnpcinfo(2),"prtg")) { + .@destination$ = "gld_dun03"; + if (compare(strnpcinfo(2),"cas01")) setarray .@coordinates[0],28,251; + else if (compare(strnpcinfo(2),"cas02")) setarray .@coordinates[0],164,268; + else if (compare(strnpcinfo(2),"cas03")) setarray .@coordinates[0],164,179; + else if (compare(strnpcinfo(2),"cas04")) setarray .@coordinates[0],268,203; + else if (compare(strnpcinfo(2),"cas05")) setarray .@coordinates[0],199,28; + } + // Add custom Guild Castles here. + else { + end; + } + + mes "[Ringing Voice]"; + mes "'Only the truly brave can take the test.'"; + next; + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Don't pull.") == 1) { + if (getcharid(2) == .@GID) { + close2; + warp .@destination$,.@coordinates[0],.@coordinates[1]; + end; + } + mes " "; + mes "Nothing happened."; + close; + } + close; +} + +// Guardian Spawner Template +//============================================================ +- script Gld_Guard_Template::Gld_Guard_Template -1,{ +// Spawn Guardians in castles +// When adding new castles, ensure that the coordinates coincide +// with the coordinates defined in the Guild Steward template. +OnSpawnGuardians: + // Define the types of guardians on a per castle basis. + // 1 - Soldier Guardian; 2 - Archer Guardian; 3 - Knight Guardian + // Define the x spawn point for each uardian. + // [0] = 1st guardian's x spawn point. + // Define the y spawn point for each uardian. + // [0] = 1st guardian's y spawn point. + // Aldebaran (Luina) Castles + if (strnpcinfo(2) == "aldeg_cas01") { + setarray .@guardiantype[0],1,2,2,2,2,3,3,3; + setarray .@guardianposx[0],17,39,38,45,21,218,213,73; + setarray .@guardianposy[0],218,208,196,228,194,24,24,70; + } + else if (strnpcinfo(2) == "aldeg_cas02") { + setarray .@guardiantype[0],3,3,3,1,1,2,2,2; + setarray .@guardianposx[0],27,88,117,60,51,21,36,210; + setarray .@guardianposy[0],184,43,46,202,183,177,183,7; + } + else if (strnpcinfo(2) == "aldeg_cas03") { + setarray .@guardiantype[0],3,3,1,1,1,2,2,2; + setarray .@guardianposx[0],90,116,86,116,64,212,195,110; + setarray .@guardianposy[0],112,112,120,76,103,160,151,217; + } + else if (strnpcinfo(2) == "aldeg_cas04") { + setarray .@guardiantype[0],2,2,2,1,1,1,3,3; + setarray .@guardianposx[0],187,192,148,145,169,198,48,55; + setarray .@guardianposy[0],100,42,88,209,53,77,72,88; + } + else if (strnpcinfo(2) == "aldeg_cas05") { + setarray .@guardiantype[0],2,2,1,1,3,3,3,3; + setarray .@guardianposx[0],51,188,157,157,27,145,156,41; + setarray .@guardianposy[0],202,79,192,74,221,78,73,112; + } + // Geffen (Britoniah) Castles + else if (strnpcinfo(2) == "gefg_cas01") { + setarray .@guardiantype[0],1,1,1,2,2,3,3,3; + setarray .@guardianposx[0],67,184,62,36,50,50,189,200; + setarray .@guardianposy[0],179,20,41,186,186,67,41,167; + } + else if (strnpcinfo(2) == "gefg_cas02") { + setarray .@guardiantype[0],1,1,1,2,2,3,3,3; + setarray .@guardianposx[0],64,56,166,35,20,19,166,159; + setarray .@guardianposy[0],168,41,25,148,150,41,42,188; + } + else if (strnpcinfo(2) == "gefg_cas03") { + setarray .@guardiantype[0],2,2,1,1,1,3,3,3; + setarray .@guardianposx[0],48,113,48,157,243,157,234,238; + setarray .@guardianposy[0],176,214,207,62,41,45,25,160; + } + else if (strnpcinfo(2) == "gefg_cas04") { + setarray .@guardiantype[0],2,2,1,1,1,3,3,3; + setarray .@guardianposx[0],53,31,49,29,147,57,160,148; + setarray .@guardianposy[0],191,178,220,46,65,46,50,189; + } + else if (strnpcinfo(2) == "gefg_cas05") { + setarray .@guardiantype[0],2,2,1,1,1,3,3,3; + setarray .@guardianposx[0],45,71,72,66,177,66,177,193; + setarray .@guardianposy[0],149,163,142,47,50,17,35,166; + } + // Payon (Baulder) Castles + else if (strnpcinfo(2) == "payg_cas01") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],229,225,222,99,65,36,51,138; + setarray .@guardianposy[0],92,80,111,45,31,127,144,133; + } + else if (strnpcinfo(2) == "payg_cas02") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],237,228,210,57,42,287,264,27; + setarray .@guardianposy[0],54,72,41,241,241,257,272,20; + } + else if (strnpcinfo(2) == "payg_cas03") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],245,269,36,41,39,19,37,268; + setarray .@guardianposy[0],37,51,39,39,65,276,277,244; + } + else if (strnpcinfo(2) == "payg_cas04") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],251,232,231,32,32,35,36,270; + setarray .@guardianposy[0],212,212,175,287,232,45,17,41; + } + else if (strnpcinfo(2) == "payg_cas05") { + setarray .@guardiantype[0],2,2,2,2,2,2,2,3; + setarray .@guardianposx[0],19,33,266,266,263,263,250,36; + setarray .@guardianposy[0],279,260,234,279,37,21,22,36; + } + // Prontera (Valkyrie Realms) Castles + else if (strnpcinfo(2) == "prtg_cas01") { + setarray .@guardiantype[0],1,1,1,2,2,3,3,3; + setarray .@guardianposx[0],182,182,153,59,50,184,196,107; + setarray .@guardianposy[0],62,116,86,28,36,183,189,179; + } + else if (strnpcinfo(2) == "prtg_cas02") { + setarray .@guardiantype[0],3,3,3,1,1,2,2,2; + setarray .@guardianposx[0],161,153,178,71,49,64,7,75; + setarray .@guardianposy[0],161,161,44,75,28,186,196,175; + } + else if (strnpcinfo(2) == "prtg_cas03") { + setarray .@guardiantype[0],3,3,3,1,1,2,2,2; + setarray .@guardianposx[0],191,137,45,50,41,191,179,191; + setarray .@guardianposy[0],190,190,99,87,87,42,43,72; + } + else if (strnpcinfo(2) == "prtg_cas04") { + setarray .@guardiantype[0],3,3,3,1,1,1,2,2; + setarray .@guardianposx[0],276,274,246,38,29,33,78,36; + setarray .@guardianposy[0],14,35,246,240,240,258,48,61; + } + else if (strnpcinfo(2) == "prtg_cas05") { + setarray .@guardiantype[0],3,3,3,1,1,1,2,2; + setarray .@guardianposx[0],266,287,245,236,251,278,32,44; + setarray .@guardianposy[0],262,280,250,63,63,253,253,248; + } + // Add custom Guild Castles here. + else { + end; + } + + // Kill all existing guardians before spawning new ones. + // This should prevent duplicating Guardians when char Server disconnects. + killmonster strnpcinfo(2),strnpcinfo(0)+"::OnGuardianDied"; + + for (.@i = 0; .@i <= 7; ++.@i) { + .@UseGID = .@i + 10; + if (.@guardiantype[.@i] == 1) { .@type = 1287; } + else if (.@guardiantype[.@i] == 2) { .@type = 1285; } + else { .@type = 1286; } + if (getcastledata(strnpcinfo(2),.@UseGID)) { + guardian strnpcinfo(2),.@guardianposx[.@i],.@guardianposy[.@i],strmobinfo(2,.@type),.@type,"Guardian#"+strnpcinfo(2)+"::OnGuardianDied",.@i; + } + } + end; + +OnGuardianDied: + end; +} + +// Treasure Room Spawn Template +//============================================================ +- script Gld_Trea_Spawn::Gld_Trea_Spawn -1,{ + end; + +OnClock0001: + // Do nothing if this script is the template. + if (strnpcinfo(1) == "Gld_Trea_Spawn") end; + + .@GID = getcastledata(strnpcinfo(2),1); + + // If there is no owner, do nothing. + if (!.@GID) end; + + // Is there Economy in this castle? + .@Treasure = getcastledata(strnpcinfo(2),2)/5+4; + + // Set information + if (strnpcinfo(2) == "aldeg_cas01") { + .@treasurebox = 1324; + setarray .@treasurex[0],115,122,115,122,116,117,118,119,120,121,121,121,121,121,121,120,119,118,117,116,116,116,116,116; + setarray .@treasurey[0],226,226,219,219,225,225,225,225,225,225,224,223,222,221,220,220,220,220,220,220,221,222,223,224; + } + else if (strnpcinfo(2) == "aldeg_cas02") { + .@treasurebox = 1326; + setarray .@treasurex[0],134,135,135,134,132,133,134,135,136,137,137,137,137,137,137,136,135,134,133,132,132,132,132,132; + setarray .@treasurey[0],231,231,230,230,233,233,233,233,233,233,232,231,230,229,228,228,228,228,228,228,229,230,231,232; + } + else if (strnpcinfo(2) == "aldeg_cas03") { + .@treasurebox = 1328; + setarray .@treasurex[0],224,225,225,224,222,223,224,225,226,227,227,227,227,227,227,226,225,224,223,222,222,222,222,222; + setarray .@treasurey[0],269,269,268,268,271,271,271,271,271,271,270,269,268,267,266,266,266,266,266,266,267,268,269,270; + } + else if (strnpcinfo(2) == "aldeg_cas04") { + .@treasurebox = 1330; + setarray .@treasurex[0],84,85,85,84,82,83,84,85,86,87,87,87,87,87,87,86,85,84,83,82,82,82,82,82; + setarray .@treasurey[0],13,13,12,12,15,15,15,15,15,15,14,13,12,11,10,10,10,10,10,10,11,12,13,14; + } + else if (strnpcinfo(2) == "aldeg_cas05") { + .@treasurebox = 1332; + setarray .@treasurex[0],61,62,62,61,59,60,61,62,63,64,64,64,64,64,64,63,62,61,60,59,59,59,59,59; + setarray .@treasurey[0],12,12,11,11,14,14,14,14,14,14,13,12,11,10,9,9,9,9,9,9,10,11,12,13; + } + else if (strnpcinfo(2) == "gefg_cas01") { + .@treasurebox = 1334; + setarray .@treasurex[0],153,154,154,153,151,152,153,154,155,156,156,156,156,156,156,155,154,153,152,151,151,151,151,151; + setarray .@treasurey[0],113,113,112,112,115,115,115,115,115,115,114,113,112,111,110,110,110,110,110,110,111,112,113,114; + } + else if (strnpcinfo(2) == "gefg_cas02") { + .@treasurebox = 1336; + setarray .@treasurex[0],139,140,140,139,137,138,139,140,141,142,142,142,142,142,142,141,140,139,138,137,137,137,137,137; + setarray .@treasurey[0],115,115,114,114,117,117,117,117,117,117,116,115,114,113,112,112,112,112,112,112,113,114,115,116; + } + else if (strnpcinfo(2) == "gefg_cas03") { + .@treasurebox = 1338; + setarray .@treasurex[0],269,270,270,269,267,268,269,270,271,272,272,272,272,272,272,271,270,269,268,267,267,267,267,267; + setarray .@treasurey[0],291,291,290,290,293,293,293,293,293,293,292,291,290,289,288,288,288,288,288,288,289,290,291,292; + } + else if (strnpcinfo(2) == "gefg_cas04") { + .@treasurebox = 1340; + setarray .@treasurex[0],115,116,116,115,113,114,115,116,117,118,118,118,118,118,118,117,116,115,114,113,113,113,113,113; + setarray .@treasurey[0],119,119,118,118,121,121,121,121,121,121,120,119,118,117,116,116,116,116,116,116,117,118,119,120; + } + else if (strnpcinfo(2) == "gefg_cas05") { + .@treasurebox = 1342; + setarray .@treasurex[0],143,144,144,143,141,142,143,144,145,146,146,146,146,146,146,145,144,143,142,141,141,141,141,141; + setarray .@treasurey[0],110,110,109,109,112,112,112,112,112,112,111,110,109,108,107,107,107,107,107,107,108,109,110,111; + } + else if (strnpcinfo(2) == "payg_cas01") { + .@treasurebox = 1344; + setarray .@treasurex[0],289,292,292,289,288,289,290,291,292,293,293,293,293,293,293,292,291,290,289,288,288,288,288,288; + setarray .@treasurey[0],10,10,7,7,11,11,11,11,11,11,10,9,8,7,6,6,6,6,6,6,7,8,9,10; + } + else if (strnpcinfo(2) == "payg_cas02") { + .@treasurebox = 1346; + setarray .@treasurex[0],143,146,146,143,142,143,144,145,146,147,147,147,147,147,147,146,145,144,143,142,142,142,142,142; + setarray .@treasurey[0],146,146,143,143,147,147,147,147,147,147,146,145,144,143,142,142,142,142,142,142,143,144,145,146; + } + else if (strnpcinfo(2) == "payg_cas03") { + .@treasurebox = 1348; + setarray .@treasurex[0],158,159,159,158,156,157,158,159,160,161,161,161,161,161,161,160,159,158,157,156,156,156,156,156; + setarray .@treasurey[0],169,169,168,168,171,171,171,171,171,171,170,169,168,167,166,166,166,166,166,166,167,168,169,170; + } + else if (strnpcinfo(2) == "payg_cas04") { + .@treasurebox = 1350; + setarray .@treasurex[0],146,147,147,146,144,145,146,147,148,149,149,149,149,149,149,148,147,146,145,144,144,144,144,144; + setarray .@treasurey[0],48,48,47,47,50,50,50,50,50,50,49,48,47,46,45,45,45,45,45,45,46,47,48,49; + } + else if (strnpcinfo(2) == "payg_cas05") { + .@treasurebox = 1352; + setarray .@treasurex[0],155,158,158,155,154,155,156,157,158,159,159,159,159,159,159,158,157,156,155,154,154,154,154,154; + setarray .@treasurey[0],134,134,131,131,135,135,135,135,135,135,134,133,132,131,130,130,130,130,130,130,131,132,133,134; + } + else if (strnpcinfo(2) == "prtg_cas01") { + .@treasurebox = 1354; + setarray .@treasurex[0],10,11,11,10,8,9,10,11,12,13,13,13,13,13,13,12,11,10,9,8,8,8,8,8; + setarray .@treasurey[0],209,209,208,208,211,211,211,211,211,211,210,209,208,207,206,206,206,206,206,206,207,208,209,210; + } + else if (strnpcinfo(2) == "prtg_cas02") { + .@treasurebox = 1356; + setarray .@treasurex[0],201,202,202,201,199,200,201,202,203,204,204,204,204,204,204,203,202,201,200,199,199,199,199,199; + setarray .@treasurey[0],228,228,227,227,230,230,230,230,230,230,229,228,227,226,225,225,225,225,225,225,226,227,228,229; + } + else if (strnpcinfo(2) == "prtg_cas03") { + .@treasurebox = 1358; + setarray .@treasurex[0],187,188,188,187,185,186,187,188,189,190,190,190,190,190,190,189,188,187,186,185,185,185,185,185; + setarray .@treasurey[0],132,132,131,131,134,134,134,134,134,134,133,132,131,130,129,129,129,129,129,129,130,131,132,133; + } + else if (strnpcinfo(2) == "prtg_cas04") { + .@treasurebox = 1360; + setarray .@treasurex[0],269,270,270,269,267,268,269,270,271,272,272,272,272,272,272,271,270,269,268,267,267,267,267,267; + setarray .@treasurey[0],162,162,161,161,164,164,164,164,164,164,163,162,161,160,159,159,159,159,159,159,160,161,162,163; + } + else if (strnpcinfo(2) == "prtg_cas05") { + .@treasurebox = 1362; + setarray .@treasurex[0],275,276,276,275,273,274,275,276,277,278,278,278,278,278,278,277,276,275,274,273,273,273,273,273; + setarray .@treasurey[0],178,178,177,177,180,180,180,180,180,180,179,178,177,176,175,175,175,175,175,175,176,177,178,179; + } + // Add custom Guild Castles here. + else { + end; + } + + // Apply investment to Eco. and Def. Only happens if there were investments made. + // Permanent Development can only happen once per day. + if (getcastledata(strnpcinfo(2),4)) { + .@Economy = getcastledata(strnpcinfo(2),2); + setcastledata strnpcinfo(2),2,.@Economy + getcastledata(strnpcinfo(2),4) + (rand(2) && getgdskilllv(.@GID,10014)); + if (getcastledata(strnpcinfo(2),2) > 100) setcastledata strnpcinfo(2),2,100; + } + if (getcastledata(strnpcinfo(2),5)) { + .@defence = getcastledata(strnpcinfo(2),3); + setcastledata strnpcinfo(2),3,.@defence + getcastledata(strnpcinfo(2),5); + if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100; + } + // Reset daily investment limits. + setcastledata strnpcinfo(2),4,0; + setcastledata strnpcinfo(2),5,0; + + // Spawn boxes in proper order. + for (.@i = 0; .@i < .@Treasure ; ++.@i) { + // set treasure box ID + .@boxid = .@treasurebox + (.@i+2) % 2; + .@box = 1 << .@i; + // Spawn or do not spawn chests if one already exists. + if ((getd("$@"+strnpcinfo(2)+"_treasure") & .@box) == 0) { + monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",.@boxid,1,"Treasure#"+strnpcinfo(2)+"::OnTreasureDied"+.@i; + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") | .@box; + } + } + end; + +// Individual "You killed a chest" events to ensure proper spawning at the change of day. +OnTreasureDied0: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1; + end; +OnTreasureDied1: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2; + end; +OnTreasureDied2: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4; + end; +OnTreasureDied3: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8; + end; +OnTreasureDied4: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~16; + end; +OnTreasureDied5: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~32; + end; +OnTreasureDied6: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~64; + end; +OnTreasureDied7: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~128; + end; +OnTreasureDied8: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~256; + end; +OnTreasureDied9: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~512; + end; +OnTreasureDied10: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1024; + end; +OnTreasureDied11: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2048; + end; +OnTreasureDied12: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4096; + end; +OnTreasureDied13: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8192; + end; +OnTreasureDied14: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~16384; + end; +OnTreasureDied15: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~32768; + end; +OnTreasureDied16: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~65536; + end; +OnTreasureDied17: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~131072; + end; +OnTreasureDied18: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~262144; + end; +OnTreasureDied19: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~524288; + end; +OnTreasureDied20: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~1048576; + end; +OnTreasureDied21: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~2097152; + end; +OnTreasureDied22: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~4194304; + end; +OnTreasureDied23: + setd "$@"+strnpcinfo(2)+"_treasure",getd("$@"+strnpcinfo(2)+"_treasure") & ~8388608; + end; +} diff --git a/npc/woe-fe/aldeg_cas01.txt b/npc/woe-fe/aldeg_cas01.txt new file mode 100644 index 000000000..e72b121c5 --- /dev/null +++ b/npc/woe-fe/aldeg_cas01.txt @@ -0,0 +1,142 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Al De Baran) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Al De Baran Guild Castle 1 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Neuschwanstein#1::OutsideFlagsA1 GUILD_FLAG,{ + + .@GID = getcastledata("aldeg_cas01",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("aldeg_cas01",1)) { + warp "aldeg_cas01",218,170; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleA01: + flagemblem getcastledata("aldeg_cas01",1); + end; +} + +alde_gld,61,87,6 duplicate(OutsideFlagsA1) Neuschwanstein#1-2 GUILD_FLAG +alde_gld,61,79,6 duplicate(OutsideFlagsA1) Neuschwanstein#2 GUILD_FLAG +alde_gld,45,87,8 duplicate(OutsideFlagsA1) Neuschwanstein#3 GUILD_FLAG +alde_gld,51,87,8 duplicate(OutsideFlagsA1) Neuschwanstein#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Neuschwanstein#5::InsideFlagsA1 GUILD_FLAG,{ + end; + +OnRecvCastleA01: + flagemblem getcastledata("aldeg_cas01",1); + end; +} + +aldeg_cas01,30,248,4 duplicate(InsideFlagsA1) Neuschwanstein#5-2 GUILD_FLAG +aldeg_cas01,30,248,4 duplicate(InsideFlagsA1) Neuschwanstein#6 GUILD_FLAG +aldeg_cas01,37,248,4 duplicate(InsideFlagsA1) Neuschwanstein#7 GUILD_FLAG +aldeg_cas01,37,246,4 duplicate(InsideFlagsA1) Neuschwanstein#8 GUILD_FLAG +aldeg_cas01,30,246,4 duplicate(InsideFlagsA1) Neuschwanstein#9 GUILD_FLAG +aldeg_cas01,95,80,2 duplicate(InsideFlagsA1) Neuschwanstein#10 GUILD_FLAG +aldeg_cas01,95,59,2 duplicate(InsideFlagsA1) Neuschwanstein#11 GUILD_FLAG +aldeg_cas01,62,75,2 duplicate(InsideFlagsA1) Neuschwanstein#12 GUILD_FLAG +aldeg_cas01,66,75,2 duplicate(InsideFlagsA1) Neuschwanstein#13 GUILD_FLAG +aldeg_cas01,70,75,2 duplicate(InsideFlagsA1) Neuschwanstein#14 GUILD_FLAG +aldeg_cas01,74,75,2 duplicate(InsideFlagsA1) Neuschwanstein#15 GUILD_FLAG +aldeg_cas01,62,64,2 duplicate(InsideFlagsA1) Neuschwanstein#16 GUILD_FLAG +aldeg_cas01,66,64,2 duplicate(InsideFlagsA1) Neuschwanstein#17 GUILD_FLAG +aldeg_cas01,70,64,2 duplicate(InsideFlagsA1) Neuschwanstein#18 GUILD_FLAG +aldeg_cas01,74,64,2 duplicate(InsideFlagsA1) Neuschwanstein#19 GUILD_FLAG +aldeg_cas01,74,64,2 duplicate(InsideFlagsA1) Neuschwanstein#20 GUILD_FLAG +aldeg_cas01,203,150,4 duplicate(InsideFlagsA1) Neuschwanstein#21 GUILD_FLAG +aldeg_cas01,210,150,4 duplicate(InsideFlagsA1) Neuschwanstein#22 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +aldebaran,152,97,4 duplicate(InsideFlagsA1) Neuschwanstein#23 GUILD_FLAG + +// Kafra Employee +//============================================================ +aldeg_cas01,218,170,0 duplicate(guildkafra) Kafra Staff#aldeg_cas01 4_F_KAFRA1 + +// Steward +//============================================================ +aldeg_cas01,218,175,0 duplicate(cm) Alfredo#aldeg_cas01 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +aldeg_cas01,123,223,0 script #lever_A01 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "aldeg_cas01",218,176; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +aldeg_cas01,211,181,0 duplicate(gdlever) #aldeg_cas01 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +aldeg_cas01,118,223,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas01 -1 + +// AGIT Manager +//============================================================ +aldeg_cas01,216,24,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas01 -1 + +// Guardians +//============================================================ +aldeg_cas01,218,175,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas01 -1 diff --git a/npc/woe-fe/aldeg_cas02.txt b/npc/woe-fe/aldeg_cas02.txt new file mode 100644 index 000000000..938e511da --- /dev/null +++ b/npc/woe-fe/aldeg_cas02.txt @@ -0,0 +1,136 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Al De Baran) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Al De Baran Guild Castle 2 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Hohenschwangau#1::OutsideFlagsA2 GUILD_FLAG,{ + + .@GID = getcastledata("aldeg_cas02",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("aldeg_cas02",1)) { + warp "aldeg_cas02",220,190; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleA02: + flagemblem getcastledata("aldeg_cas02",1); + end; +} + +alde_gld,99,251,4 duplicate(OutsideFlagsA2) Hohenschwangau#1-2 GUILD_FLAG +alde_gld,99,244,4 duplicate(OutsideFlagsA2) Hohenschwangau#2 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Hohenschwangau#3::InsideFlagsA2 GUILD_FLAG,{ + end; + +OnRecvCastleA02: + flagemblem getcastledata("aldeg_cas02",1); + end; +} + +aldeg_cas02,82,71,2 duplicate(InsideFlagsA2) Hohenschwangau#3-2 GUILD_FLAG +aldeg_cas02,67,30,2 duplicate(InsideFlagsA2) Hohenschwangau#4 GUILD_FLAG +aldeg_cas02,183,140,2 duplicate(InsideFlagsA2) Hohenschwangau#5 GUILD_FLAG +aldeg_cas02,212,152,2 duplicate(InsideFlagsA2) Hohenschwangau#6 GUILD_FLAG +aldeg_cas02,108,39,2 duplicate(InsideFlagsA2) Hohenschwangau#7 GUILD_FLAG +aldeg_cas02,57,213,2 duplicate(InsideFlagsA2) Hohenschwangau#8 GUILD_FLAG +aldeg_cas02,103,53,2 duplicate(InsideFlagsA2) Hohenschwangau#9 GUILD_FLAG +aldeg_cas02,73,53,2 duplicate(InsideFlagsA2) Hohenschwangau#10 GUILD_FLAG +aldeg_cas02,63,41,2 duplicate(InsideFlagsA2) Hohenschwangau#11 GUILD_FLAG +aldeg_cas02,229,6,2 duplicate(InsideFlagsA2) Hohenschwangau#12 GUILD_FLAG +aldeg_cas02,230,40,2 duplicate(InsideFlagsA2) Hohenschwangau#13 GUILD_FLAG +aldeg_cas02,197,40,2 duplicate(InsideFlagsA2) Hohenschwangau#14 GUILD_FLAG +aldeg_cas02,32,213,2 duplicate(InsideFlagsA2) Hohenschwangau#15 GUILD_FLAG +aldeg_cas02,121,29,2 duplicate(InsideFlagsA2) Hohenschwangau#16 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +aldebaran,149,97,4 duplicate(InsideFlagsA2) Hohenschwangau#17 GUILD_FLAG + +// Kafra Employee +//============================================================ +aldeg_cas02,84,74,0 duplicate(guildkafra) Kafra Staff#aldeg_cas02 4_F_KAFRA1 + +// Steward +//============================================================ +aldeg_cas02,78,74,0 duplicate(cm) Chenchenlie#aldeg_cas02 1_M_JOBTESTER + +// Treasure Room Lever +//============================================================ +aldeg_cas02,139,234,0 script #lever_A02 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "aldeg_cas02",78,75; + end; + } + close; +} + +// Guild Dungeon Lever +//============================================================ +aldeg_cas02,194,136,0 duplicate(gdlever) #aldeg_cas02 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +aldeg_cas02,135,230,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas02 -1 + +// AGIT Manager +//============================================================ +aldeg_cas02,214,24,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas02 -1 + +// Guardians +//============================================================ +aldeg_cas02,78,74,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas02 -1 diff --git a/npc/woe-fe/aldeg_cas03.txt b/npc/woe-fe/aldeg_cas03.txt new file mode 100644 index 000000000..c595a8681 --- /dev/null +++ b/npc/woe-fe/aldeg_cas03.txt @@ -0,0 +1,139 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Al De Baran) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Al De Baran Guild Castle 3 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Nuernberg#1::OutsideFlagsA3 GUILD_FLAG,{ + + .@GID = getcastledata("aldeg_cas03",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("aldeg_cas03",1)) { + warp "aldeg_cas03",205,186; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleA03: + flagemblem getcastledata("aldeg_cas03",1); + end; +} + +alde_gld,146,82,8 duplicate(OutsideFlagsA3) Nuernberg#1-2 GUILD_FLAG +alde_gld,138,82,8 duplicate(OutsideFlagsA3) Nuernberg#2 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Nuernberg#3::InsideFlagsA3 GUILD_FLAG,{ + end; + +OnRecvCastleA03: + flagemblem getcastledata("aldeg_cas03",1); + end; +} + +aldeg_cas03,176,175,2 duplicate(InsideFlagsA3) Nuernberg#3-2 GUILD_FLAG +aldeg_cas03,77,115,2 duplicate(InsideFlagsA3) Nuernberg#4 GUILD_FLAG +aldeg_cas03,77,215,2 duplicate(InsideFlagsA3) Nuernberg#5 GUILD_FLAG +aldeg_cas03,112,107,2 duplicate(InsideFlagsA3) Nuernberg#6 GUILD_FLAG +aldeg_cas03,112,117,2 duplicate(InsideFlagsA3) Nuernberg#7 GUILD_FLAG +aldeg_cas03,69,71,2 duplicate(InsideFlagsA3) Nuernberg#8 GUILD_FLAG +aldeg_cas03,91,69,2 duplicate(InsideFlagsA3) Nuernberg#9 GUILD_FLAG +aldeg_cas03,108,60,2 duplicate(InsideFlagsA3) Nuernberg#10 GUILD_FLAG +aldeg_cas03,121,73,2 duplicate(InsideFlagsA3) Nuernberg#11 GUILD_FLAG +aldeg_cas03,121,73,2 duplicate(InsideFlagsA3) Nuernberg#12 GUILD_FLAG +aldeg_cas03,75,102,2 duplicate(InsideFlagsA3) Nuernberg#13 GUILD_FLAG +aldeg_cas03,199,169,2 duplicate(InsideFlagsA3) Nuernberg#14 GUILD_FLAG +aldeg_cas03,181,179,2 duplicate(InsideFlagsA3) Nuernberg#15 GUILD_FLAG +aldeg_cas03,192,44,2 duplicate(InsideFlagsA3) Nuernberg#16 GUILD_FLAG +aldeg_cas03,208,145,2 duplicate(InsideFlagsA3) Nuernberg#17 GUILD_FLAG +aldeg_cas03,207,75,2 duplicate(InsideFlagsA3) Nuernberg#18 GUILD_FLAG +aldeg_cas03,96,62,2 duplicate(InsideFlagsA3) Nuernberg#19 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +aldebaran,134,97,4 duplicate(InsideFlagsA3) Nuernberg#20 GUILD_FLAG + +// Kafra Employee +//============================================================ +aldeg_cas03,118,76,0 duplicate(guildkafra) Kafra Staff#aldeg_cas03 4_F_KAFRA1 + +// Steward +//============================================================ +aldeg_cas03,110,118,0 duplicate(cm) Nahzarf#aldeg_cas03 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +aldeg_cas03,229,267,0 script #lever_A03 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "aldeg_cas03",110,119; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +aldeg_cas03,200,177,0 duplicate(gdlever) #aldeg_cas03 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +aldeg_cas03,225,269,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas03 -1 + +// AGIT Manager +//============================================================ +aldeg_cas03,206,32,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas03 -1 + +// Guardians +//============================================================ +aldeg_cas03,110,118,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas03 -1 diff --git a/npc/woe-fe/aldeg_cas04.txt b/npc/woe-fe/aldeg_cas04.txt new file mode 100644 index 000000000..6a6b9d7ec --- /dev/null +++ b/npc/woe-fe/aldeg_cas04.txt @@ -0,0 +1,139 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Al De Baran) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Al De Baran Guild Castle 4 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Wuerzburg#1::OutsideFlagsA4 GUILD_FLAG,{ + + .@GID = getcastledata("aldeg_cas04",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("aldeg_cas04",1)) { + warp "aldeg_cas04",116,217; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleA04: + flagemblem getcastledata("aldeg_cas04",1); + end; +} + +alde_gld,239,246,2 duplicate(OutsideFlagsA4) Wuerzburg#1-2 GUILD_FLAG +alde_gld,239,239,2 duplicate(OutsideFlagsA4) Wuerzburg#2 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Wuerzburg#3::InsideFlagsA4 GUILD_FLAG,{ + end; + +OnRecvCastleA04: + flagemblem getcastledata("aldeg_cas04",1); + end; +} + +aldeg_cas04,167,61,2 duplicate(InsideFlagsA4) Wuerzburg#3-2 GUILD_FLAG +aldeg_cas04,164,90,2 duplicate(InsideFlagsA4) Wuerzburg#4 GUILD_FLAG +aldeg_cas04,129,193,2 duplicate(InsideFlagsA4) Wuerzburg#5 GUILD_FLAG +aldeg_cas04,112,206,2 duplicate(InsideFlagsA4) Wuerzburg#6 GUILD_FLAG +aldeg_cas04,113,212,2 duplicate(InsideFlagsA4) Wuerzburg#7 GUILD_FLAG +aldeg_cas04,77,117,2 duplicate(InsideFlagsA4) Wuerzburg#8 GUILD_FLAG +aldeg_cas04,186,42,2 duplicate(InsideFlagsA4) Wuerzburg#9 GUILD_FLAG +aldeg_cas04,30,69,2 duplicate(InsideFlagsA4) Wuerzburg#10 GUILD_FLAG +aldeg_cas04,55,97,2 duplicate(InsideFlagsA4) Wuerzburg#11 GUILD_FLAG +aldeg_cas04,45,98,2 duplicate(InsideFlagsA4) Wuerzburg#12 GUILD_FLAG +aldeg_cas04,33,116,2 duplicate(InsideFlagsA4) Wuerzburg#13 GUILD_FLAG +aldeg_cas04,130,180,2 duplicate(InsideFlagsA4) Wuerzburg#14 GUILD_FLAG +aldeg_cas04,129,193,2 duplicate(InsideFlagsA4) Wuerzburg#15 GUILD_FLAG +aldeg_cas04,33,107,2 duplicate(InsideFlagsA4) Wuerzburg#16 GUILD_FLAG +aldeg_cas04,133,220,2 duplicate(InsideFlagsA4) Wuerzburg#17 GUILD_FLAG +aldeg_cas04,169,22,2 duplicate(InsideFlagsA4) Wuerzburg#18 GUILD_FLAG +aldeg_cas04,169,15,2 duplicate(InsideFlagsA4) Wuerzburg#19 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +aldebaran,131,97,4 duplicate(InsideFlagsA4) Wuerzburg#20 GUILD_FLAG + +// Kafra Employee +//============================================================ +aldeg_cas04,45,88,0 duplicate(guildkafra) Kafra Staff#aldeg_cas04 4_F_KAFRA1 + +// Steward +//============================================================ +aldeg_cas04,67,116,0 duplicate(cm) Brymhensen#aldeg_cas04 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +aldeg_cas04,83,17,0 script #lever_A04 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "aldeg_cas04",67,117; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +aldeg_cas04,76,64,0 duplicate(gdlever) #aldeg_cas04 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +aldeg_cas04,84,13,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas04 -1 + +// AGIT Manager +//============================================================ +aldeg_cas04,36,218,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas04 -1 + +// Guardians +//============================================================ +aldeg_cas04,67,116,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas04 -1 diff --git a/npc/woe-fe/aldeg_cas05.txt b/npc/woe-fe/aldeg_cas05.txt new file mode 100644 index 000000000..93a78d7fb --- /dev/null +++ b/npc/woe-fe/aldeg_cas05.txt @@ -0,0 +1,138 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Al De Baran) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Al De Baran Guild Castle 5 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Rothenburg#1::OutsideFlagsA5 GUILD_FLAG,{ + + .@GID = getcastledata("aldeg_cas05",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("aldeg_cas05",1)) { + warp "aldeg_cas05",167,225; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleA05: + flagemblem getcastledata("aldeg_cas05",1); + end; +} + +alde_gld,265,93,6 duplicate(OutsideFlagsA5) Rothenburg#1-2 GUILD_FLAG +alde_gld,265,87,6 duplicate(OutsideFlagsA5) Rothenburg#2 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Rothenburg#3::InsideFlagsA5 GUILD_FLAG,{ + end; + +OnRecvCastleA05: + flagemblem getcastledata("aldeg_cas05",1); + end; +} + +aldeg_cas05,170,85,2 duplicate(InsideFlagsA5) Rothenburg#3-2 GUILD_FLAG +aldeg_cas05,142,212,2 duplicate(InsideFlagsA5) Rothenburg#4 GUILD_FLAG +aldeg_cas05,149,196,2 duplicate(InsideFlagsA5) Rothenburg#5 GUILD_FLAG +aldeg_cas05,41,180,2 duplicate(InsideFlagsA5) Rothenburg#6 GUILD_FLAG +aldeg_cas05,38,201,2 duplicate(InsideFlagsA5) Rothenburg#7 GUILD_FLAG +aldeg_cas05,65,182,2 duplicate(InsideFlagsA5) Rothenburg#8 GUILD_FLAG +aldeg_cas05,65,205,2 duplicate(InsideFlagsA5) Rothenburg#9 GUILD_FLAG +aldeg_cas05,10,218,2 duplicate(InsideFlagsA5) Rothenburg#10 GUILD_FLAG +aldeg_cas05,10,218,2 duplicate(InsideFlagsA5) Rothenburg#11 GUILD_FLAG +aldeg_cas05,164,201,2 duplicate(InsideFlagsA5) Rothenburg#12 GUILD_FLAG +aldeg_cas05,14,117,2 duplicate(InsideFlagsA5) Rothenburg#13 GUILD_FLAG +aldeg_cas05,10,225,2 duplicate(InsideFlagsA5) Rothenburg#14 GUILD_FLAG +aldeg_cas05,187,59,2 duplicate(InsideFlagsA5) Rothenburg#15 GUILD_FLAG +aldeg_cas05,154,51,2 duplicate(InsideFlagsA5) Rothenburg#16 GUILD_FLAG +aldeg_cas05,22,211,2 duplicate(InsideFlagsA5) Rothenburg#17 GUILD_FLAG +aldeg_cas05,150,202,2 duplicate(InsideFlagsA5) Rothenburg#18 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +aldebaran,128,97,4 duplicate(InsideFlagsA5) Rothenburg#19 GUILD_FLAG + +// Kafra Employee +//============================================================ +aldeg_cas05,31,190,0 duplicate(guildkafra) Kafra Staff#aldeg_cas05 4_F_KAFRA1 + +// Steward +//============================================================ +aldeg_cas05,51,179,0 duplicate(cm) Esmarehk#aldeg_cas05 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +aldeg_cas05,64,8,0 script #lever_A05 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "aldeg_cas05",51,179; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +aldeg_cas05,22,205,0 duplicate(gdlever) #aldeg_cas05 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +aldeg_cas05,62,12,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas05 -1 + +// AGIT Manager +//============================================================ +aldeg_cas05,28,102,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas05 -1 + +// Guardians +//============================================================ +aldeg_cas05,52,179,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas05 -1 diff --git a/npc/woe-fe/gefg_cas01.txt b/npc/woe-fe/gefg_cas01.txt new file mode 100644 index 000000000..6127e62f9 --- /dev/null +++ b/npc/woe-fe/gefg_cas01.txt @@ -0,0 +1,130 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Geffen) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Geffen Guild Castle 1 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Repherion#1::OutsideFlagsG1 GUILD_FLAG,{ + + .@GID = getcastledata("gefg_cas01",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("gefg_cas01",1)) { + warp "gefg_cas01",197,36; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleG01: + flagemblem getcastledata("gefg_cas01",1); + end; +} + +gef_fild13,148,51,5 duplicate(OutsideFlagsG1) Repherion#1-2 GUILD_FLAG +gef_fild13,155,54,5 duplicate(OutsideFlagsG1) Repherion#2 GUILD_FLAG +gef_fild13,212,79,6 duplicate(OutsideFlagsG1) Repherion#3 GUILD_FLAG +gef_fild13,211,71,6 duplicate(OutsideFlagsG1) Repherion#4 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Repherion#5::InsideFlagsG1 GUILD_FLAG,{ + end; + +OnRecvCastleG01: + flagemblem getcastledata("gefg_cas01",1); + end; +} + +gefg_cas01,28,157,4 duplicate(InsideFlagsG1) Repherion#5-2 GUILD_FLAG +gefg_cas01,22,156,5 duplicate(InsideFlagsG1) Repherion#6 GUILD_FLAG +gefg_cas01,68,185,3 duplicate(InsideFlagsG1) Repherion#7 GUILD_FLAG +gefg_cas01,17,171,5 duplicate(InsideFlagsG1) Repherion#8 GUILD_FLAG +gefg_cas01,59,16,4 duplicate(InsideFlagsG1) Repherion#9 GUILD_FLAG +gefg_cas01,64,16,4 duplicate(InsideFlagsG1) Repherion#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +geffen,109,123,2 duplicate(InsideFlagsG1) Repherion#11 GUILD_FLAG + +// Kafra Employee +//============================================================ +gefg_cas01,83,47,3 duplicate(guildkafra) Kafra Staff#gefg_cas01 4_F_KAFRA1 + +// Steward +//============================================================ +gefg_cas01,40,48,5 duplicate(cm) Gnahcher#gefg_cas01 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +gefg_cas01,152,117,0 script #lever_G01 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "gefg_cas01",40,49; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +gefg_cas01,78,84,0 duplicate(gdlever) #gefg_cas01 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +gefg_cas01,154,112,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas01 -1 + +// AGIT Manager +//============================================================ +gefg_cas01,198,182,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas01 -1 + +// Guardians +//============================================================ +gefg_cas01,40,48,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas01 -1 diff --git a/npc/woe-fe/gefg_cas02.txt b/npc/woe-fe/gefg_cas02.txt new file mode 100644 index 000000000..45530849a --- /dev/null +++ b/npc/woe-fe/gefg_cas02.txt @@ -0,0 +1,131 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Geffen) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Geffen Guild Castle 2 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Eeyorbriggar#1::OutsideFlagsG2 GUILD_FLAG,{ + + .@GID = getcastledata("gefg_cas02",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("gefg_cas02",1)) { + warp "gefg_cas02",178,43; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleG02: + flagemblem getcastledata("gefg_cas02",1); + end; +} + +gef_fild13,303,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#1-2 GUILD_FLAG +gef_fild13,312,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#2 GUILD_FLAG +gef_fild13,290,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#3 GUILD_FLAG +gef_fild13,324,243,4 duplicate(OutsideFlagsG2) Eeyorbriggar#4 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Eeyorbriggar#5::InsideFlagsG2 GUILD_FLAG,{ + end; + +OnRecvCastleG02: + flagemblem getcastledata("gefg_cas02",1); + end; +} + +gefg_cas02,65,130,5 duplicate(InsideFlagsG2) Eeyorbriggar#5-2 GUILD_FLAG +gefg_cas02,30,123,5 duplicate(InsideFlagsG2) Eeyorbriggar#6 GUILD_FLAG +gefg_cas02,65,139,6 duplicate(InsideFlagsG2) Eeyorbriggar#7 GUILD_FLAG +gefg_cas02,37,177,6 duplicate(InsideFlagsG2) Eeyorbriggar#8 GUILD_FLAG +gefg_cas02,37,168,6 duplicate(InsideFlagsG2) Eeyorbriggar#9 GUILD_FLAG +gefg_cas02,68,47,2 duplicate(InsideFlagsG2) Eeyorbriggar#10 GUILD_FLAG +gefg_cas02,68,36,2 duplicate(InsideFlagsG2) Eeyorbriggar#11 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +geffen,112,129,1 duplicate(InsideFlagsG2) Eeyorbriggar#12 GUILD_FLAG + +// Kafra Employee +//============================================================ +gefg_cas02,23,66,3 duplicate(guildkafra) Kafra Staff#gefg_cas02 4_F_KAFRA1 + +// Steward +//============================================================ +gefg_cas02,12,66,5 duplicate(cm) Esmarehk#gefg_cas02 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +gefg_cas02,145,114,0 script #lever_G02 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "gefg_cas02",12,67; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +gefg_cas02,167,40,0 duplicate(gdlever) #gefg_cas02 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +gefg_cas02,140,116,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas02 -1 + +// AGIT Manager +//============================================================ +gefg_cas02,176,178,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas02 -1 + +// Guardians +//============================================================ +gefg_cas02,12,66,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas02 -1 diff --git a/npc/woe-fe/gefg_cas03.txt b/npc/woe-fe/gefg_cas03.txt new file mode 100644 index 000000000..a206c8bac --- /dev/null +++ b/npc/woe-fe/gefg_cas03.txt @@ -0,0 +1,134 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Geffen) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Geffen Guild Castle 3 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Yesnelph#1::OutsideFlagsG3 GUILD_FLAG,{ + + .@GID = getcastledata("gefg_cas03",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("gefg_cas03",1)) { + warp "gefg_cas03",221,30; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleG03: + flagemblem getcastledata("gefg_cas03",1); + end; +} + +gef_fild13,78,182,4 duplicate(OutsideFlagsG3) Yesnelph#1-2 GUILD_FLAG +gef_fild13,87,182,4 duplicate(OutsideFlagsG3) Yesnelph#2 GUILD_FLAG +gef_fild13,73,295,7 duplicate(OutsideFlagsG3) Yesnelph#3 GUILD_FLAG +gef_fild13,113,274,7 duplicate(OutsideFlagsG3) Yesnelph#4 GUILD_FLAG +gef_fild13,144,235,6 duplicate(OutsideFlagsG3) Yesnelph#5 GUILD_FLAG +gef_fild13,144,244,6 duplicate(OutsideFlagsG3) Yesnelph#6 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Yesnelph#7::InsideFlagsG3 GUILD_FLAG,{ + end; + +OnRecvCastleG03: + flagemblem getcastledata("gefg_cas03",1); + end; +} + +gefg_cas03,122,220,6 duplicate(InsideFlagsG3) Yesnelph#7-2 GUILD_FLAG +gefg_cas03,122,229,6 duplicate(InsideFlagsG3) Yesnelph#8 GUILD_FLAG +gefg_cas03,91,257,7 duplicate(InsideFlagsG3) Yesnelph#9 GUILD_FLAG +gefg_cas03,52,276,7 duplicate(InsideFlagsG3) Yesnelph#10 GUILD_FLAG +gefg_cas03,56,164,4 duplicate(InsideFlagsG3) Yesnelph#11 GUILD_FLAG +gefg_cas03,65,164,4 duplicate(InsideFlagsG3) Yesnelph#12 GUILD_FLAG +gefg_cas03,37,214,1 duplicate(InsideFlagsG3) Yesnelph#13 GUILD_FLAG +gefg_cas03,34,208,1 duplicate(InsideFlagsG3) Yesnelph#14 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +geffen,120,132,8 duplicate(InsideFlagsG3) Yesnelph#15 GUILD_FLAG + +// Kafra Employee +//============================================================ +gefg_cas03,116,89,5 duplicate(guildkafra) Kafra Staff#gefg_cas03 4_F_KAFRA1 + +// Steward +//============================================================ +gefg_cas03,106,23,5 duplicate(cm) Jyang#gefg_cas03 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +gefg_cas03,275,289,0 script #lever_G03 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "gefg_cas03",106,24; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +gefg_cas03,221,43,0 duplicate(gdlever) #gefg_cas03 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +gefg_cas03,271,290,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas03 -1 + +// AGIT Manager +//============================================================ +gefg_cas03,245,167,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas03 -1 + +// Guardians +//============================================================ +gefg_cas03,106,23,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas03 -1 diff --git a/npc/woe-fe/gefg_cas04.txt b/npc/woe-fe/gefg_cas04.txt new file mode 100644 index 000000000..06d37361a --- /dev/null +++ b/npc/woe-fe/gefg_cas04.txt @@ -0,0 +1,130 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Geffen) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Geffen Guild Castle 4 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Bergel#1::OutsideFlagsG4 GUILD_FLAG,{ + + .@GID = getcastledata("gefg_cas04",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("gefg_cas04",1)) { + warp "gefg_cas04",168,43; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleG04: + flagemblem getcastledata("gefg_cas04",1); + end; +} + +gef_fild13,190,283,3 duplicate(OutsideFlagsG4) Bergel#1-2 GUILD_FLAG +gef_fild13,199,274,3 duplicate(OutsideFlagsG4) Bergel#2 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Bergel#3::InsideFlagsG4 GUILD_FLAG,{ + end; + +OnRecvCastleG04: + flagemblem getcastledata("gefg_cas04",1); + end; +} + +gefg_cas04,24,157,4 duplicate(InsideFlagsG4) Bergel#3-2 GUILD_FLAG +gefg_cas04,35,158,4 duplicate(InsideFlagsG4) Bergel#4 GUILD_FLAG +gefg_cas04,44,184,4 duplicate(InsideFlagsG4) Bergel#5 GUILD_FLAG +gefg_cas04,51,184,4 duplicate(InsideFlagsG4) Bergel#6 GUILD_FLAG +gefg_cas04,39,212,7 duplicate(InsideFlagsG4) Bergel#7 GUILD_FLAG +gefg_cas04,29,212,1 duplicate(InsideFlagsG4) Bergel#8 GUILD_FLAG +gefg_cas04,24,73,1 duplicate(InsideFlagsG4) Bergel#9 GUILD_FLAG +gefg_cas04,35,73,4 duplicate(InsideFlagsG4) Bergel#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +geffen,127,130,7 duplicate(InsideFlagsG4) Bergel#11 GUILD_FLAG + +// Kafra Employee +//============================================================ +gefg_cas04,59,70,3 duplicate(guildkafra) Kafra Staff#gefg_cas04 4_F_KAFRA1 + +// Steward +//============================================================ +gefg_cas04,73,46,3 duplicate(cm) Kellvahni#gefg_cas04 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +gefg_cas04,116,123,0 script #lever_G04 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "gefg_cas04",73,47; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +gefg_cas04,58,75,0 duplicate(gdlever) #gefg_cas04 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +gefg_cas04,116,119,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas04 -1 + +// AGIT Manager +//============================================================ +gefg_cas04,174,178,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas04 -1 + +// Guardians +//============================================================ +gefg_cas04,73,46,3 duplicate(Gld_Guard_Template) Guardian#gefg_cas04 -1 diff --git a/npc/woe-fe/gefg_cas05.txt b/npc/woe-fe/gefg_cas05.txt new file mode 100644 index 000000000..81ebd3905 --- /dev/null +++ b/npc/woe-fe/gefg_cas05.txt @@ -0,0 +1,130 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Geffen) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.2 +//===== Description: ========================================= +//= NPCs that relate to Geffen Guild Castle 5 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.2 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flag (Outside Castle) +//============================================================ +- script Mersetzdeitz#1::OutsideFlagsG5 GUILD_FLAG,{ + + .@GID = getcastledata("gefg_cas05",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("gefg_cas05",1)) { + warp "gefg_cas05",168,31; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastleG05: + flagemblem getcastledata("gefg_cas05",1); + end; +} + +gef_fild13,302,87,7 duplicate(OutsideFlagsG5) Mersetzdeitz#1-2 GUILD_FLAG +gef_fild13,313,83,0 duplicate(OutsideFlagsG5) Mersetzdeitz#2 GUILD_FLAG +gef_fild13,252,51,2 duplicate(OutsideFlagsG5) Mersetzdeitz#3 GUILD_FLAG +gef_fild13,26,147,2 duplicate(OutsideFlagsG5) Mersetzdeitz#4 GUILD_FLAG + +// Guild Flag (Inside Castle) +//============================================================ +- script Mersetzdeitz#5::InsideFlagsG5 GUILD_FLAG,{ + end; + +OnRecvCastleG05: + flagemblem getcastledata("gefg_cas05",1); + end; +} + +gefg_cas05,77,185,7 duplicate(InsideFlagsG5) Mersetzdeitz#5-2 GUILD_FLAG +gefg_cas05,92,181,0 duplicate(InsideFlagsG5) Mersetzdeitz#6 GUILD_FLAG +gefg_cas05,83,158,1 duplicate(InsideFlagsG5) Mersetzdeitz#7 GUILD_FLAG +gefg_cas05,62,144,7 duplicate(InsideFlagsG5) Mersetzdeitz#8 GUILD_FLAG +gefg_cas05,62,66,4 duplicate(InsideFlagsG5) Mersetzdeitz#9 GUILD_FLAG +gefg_cas05,69,66,4 duplicate(InsideFlagsG5) Mersetzdeitz#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +geffen,131,123,6 duplicate(InsideFlagsG5) Mersetzdeitz#11 GUILD_FLAG + +// Kafra Employee +//============================================================ +gefg_cas05,61,52,5 duplicate(guildkafra) Kafra Staff#gefg_cas05 4_F_KAFRA1 + +// Steward +//============================================================ +gefg_cas05,70,52,3 duplicate(cm) Byohre#gefg_cas05 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +gefg_cas05,149,107,0 script #lever_G05 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "gefg_cas05",70,53; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +gefg_cas05,65,22,0 duplicate(gdlever) #gefg_cas05 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +gefg_cas05,144,110,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas05 -1 + +// AGIT Manager +//============================================================ +gefg_cas05,194,184,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas05 -1 + +// Guardians +//============================================================ +gefg_cas05,70,52,3 duplicate(Gld_Guard_Template) Guardian#gefg_cas05 -1 diff --git a/npc/woe-fe/payg_cas01.txt b/npc/woe-fe/payg_cas01.txt new file mode 100644 index 000000000..1deee9a4f --- /dev/null +++ b/npc/woe-fe/payg_cas01.txt @@ -0,0 +1,133 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Payon) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.3 +//===== Description: ========================================= +//= NPCs that relate to Payon Guild Castle 1 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] +//= Fixed position of Guild dungeon switch. +//= 1.3 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Bright Arbor#1::OutsideFlagsPA1 GUILD_FLAG,{ + + .@GID = getcastledata("payg_cas01",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("payg_cas01",1)) { + warp "payg_cas01",54,144; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePy01: + flagemblem getcastledata("payg_cas01",1); + end; +} + +pay_gld,125,236,4 duplicate(OutsideFlagsPA1) Bright Arbor#1-2 GUILD_FLAG +pay_gld,110,233,4 duplicate(OutsideFlagsPA1) Bright Arbor#2 GUILD_FLAG +pay_gld,116,233,4 duplicate(OutsideFlagsPA1) Bright Arbor#3 GUILD_FLAG +pay_gld,91,239,2 duplicate(OutsideFlagsPA1) Bright Arbor#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Bright Arbor#5::InsideFlagsPA1 GUILD_FLAG,{ + end; + +OnRecvCastlePy01: + flagemblem getcastledata("payg_cas01",1); + end; +} + +payg_cas01,238,67,4 duplicate(InsideFlagsPA1) Bright Arbor#5-2 GUILD_FLAG +payg_cas01,233,67,4 duplicate(InsideFlagsPA1) Bright Arbor#6 GUILD_FLAG +payg_cas01,221,123,4 duplicate(InsideFlagsPA1) Bright Arbor#7 GUILD_FLAG +payg_cas01,221,116,4 duplicate(InsideFlagsPA1) Bright Arbor#8 GUILD_FLAG +payg_cas01,206,108,4 duplicate(InsideFlagsPA1) Bright Arbor#9 GUILD_FLAG +payg_cas01,212,108,4 duplicate(InsideFlagsPA1) Bright Arbor#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +payon,90,322,4 duplicate(InsideFlagsPA1) Bright Arbor#11 GUILD_FLAG +payon,166,177,3 duplicate(InsideFlagsPA1) Bright Arbor#12 GUILD_FLAG + +// Kafra Employee +//============================================================ +payg_cas01,128,58,3 duplicate(guildkafra) Kafra Staff#payg_cas01 4_F_KAFRA1 + +// Steward +//============================================================ +payg_cas01,120,58,4 duplicate(cm) Kurunnadi#payg_cas01 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +payg_cas01,295,8,0 script #lever_PA01 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "payg_cas01",120,59; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +payg_cas01,101,25,0 duplicate(gdlever) #payg_cas01 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +payg_cas01,291,8,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas01 -1 + +// AGIT Manager +//============================================================ +payg_cas01,139,139,0 duplicate(Gld_Agit_Manager) Agit#payg_cas01 -1 + +// Guardians +//============================================================ +payg_cas01,120,58,4 duplicate(Gld_Guard_Template) Guardian#payg_cas01 -1 diff --git a/npc/woe-fe/payg_cas02.txt b/npc/woe-fe/payg_cas02.txt new file mode 100644 index 000000000..92db92c09 --- /dev/null +++ b/npc/woe-fe/payg_cas02.txt @@ -0,0 +1,134 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Payon) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Payon Guild Castle 2 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] +//= Fixed position of Guild dungeon switch. +//= 1.3 Partially rewrote Script. [Masao] +//= 1.4 Fixed names [Streusel] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Scarlet Palace#1::OutsideFlagsPA2 GUILD_FLAG,{ + + .@GID = getcastledata("payg_cas02",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("payg_cas02",1)) { + warp "payg_cas02",278,251; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePy02: + flagemblem getcastledata("payg_cas02",1); + end; +} + +pay_gld,292,112,6 duplicate(OutsideFlagsPA2) Scarlet Palace#1-2 GUILD_FLAG +pay_gld,292,120,6 duplicate(OutsideFlagsPA2) Scarlet Palace#2 GUILD_FLAG +pay_gld,291,135,6 duplicate(OutsideFlagsPA2) Scarlet Palace#3 GUILD_FLAG +pay_gld,271,163,0 duplicate(OutsideFlagsPA2) Scarlet Palace#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Scarlet Palace#5::InsideFlagsPA2 GUILD_FLAG,{ + end; + +OnRecvCastlePy02: + flagemblem getcastledata("payg_cas02",1); + end; +} + +payg_cas02,254,40,6 duplicate(InsideFlagsPA2) Scarlet Palace#5-2 GUILD_FLAG +payg_cas02,254,48,6 duplicate(InsideFlagsPA2) Scarlet Palace#6 GUILD_FLAG +payg_cas02,202,49,0 duplicate(InsideFlagsPA2) Scarlet Palace#7 GUILD_FLAG +payg_cas02,209,49,0 duplicate(InsideFlagsPA2) Scarlet Palace#8 GUILD_FLAG +payg_cas02,59,282,4 duplicate(InsideFlagsPA2) Scarlet Palace#9 GUILD_FLAG +payg_cas02,70,282,4 duplicate(InsideFlagsPA2) Scarlet Palace#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +payon,97,322,4 duplicate(InsideFlagsPA2) Scarlet Palace#11 GUILD_FLAG +payon,166,173,3 duplicate(InsideFlagsPA2) Scarlet Palace#12 GUILD_FLAG + +// Kafra Employee +//============================================================ +payg_cas02,22,275,5 duplicate(guildkafra) Kafra Staff#payg_cas02 4_F_KAFRA1 + +// Steward +//============================================================ +payg_cas02,22,260,7 duplicate(cm) Cherieos#payg_cas02 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +payg_cas02,149,149,0 script #lever_PA02 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "payg_cas02",22,261; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +payg_cas02,278,247,0 duplicate(gdlever) #payg_cas02 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +payg_cas02,145,144,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas02 -1 + +// AGIT Manager +//============================================================ +payg_cas02,39,25,0 duplicate(Gld_Agit_Manager) Agit#payg_cas02 -1 + +// Guardians +//============================================================ +payg_cas02,22,260,7 duplicate(Gld_Guard_Template) Guardian#payg_cas02 -1 diff --git a/npc/woe-fe/payg_cas03.txt b/npc/woe-fe/payg_cas03.txt new file mode 100644 index 000000000..e0e649308 --- /dev/null +++ b/npc/woe-fe/payg_cas03.txt @@ -0,0 +1,133 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Payon) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.3 +//===== Description: ========================================= +//= NPCs that relate to Payon Guild Castle 1 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] +//= Fixed position of Guild dungeon switch. +//= 1.3 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Holy Shadow#1::OutsideFlagsPA3 GUILD_FLAG,{ + + .@GID = getcastledata("payg_cas03",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("payg_cas03",1)) { + warp "payg_cas03",9,263; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePy03: + flagemblem getcastledata("payg_cas03",1); + end; +} + +pay_gld,321,298,2 duplicate(OutsideFlagsPA3) Holy Shadow#1-2 GUILD_FLAG +pay_gld,321,289,2 duplicate(OutsideFlagsPA3) Holy Shadow#2 GUILD_FLAG +pay_gld,327,304,1 duplicate(OutsideFlagsPA3) Holy Shadow#3 GUILD_FLAG +pay_gld,333,254,4 duplicate(OutsideFlagsPA3) Holy Shadow#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Holy Shadow#5::InsideFlagsPA3 GUILD_FLAG,{ + end; + +OnRecvCastlePy03: + flagemblem getcastledata("payg_cas03",1); + end; +} + +payg_cas03,236,54,2 duplicate(InsideFlagsPA3) Holy Shadow#5-2 GUILD_FLAG +payg_cas03,236,45,2 duplicate(InsideFlagsPA3) Holy Shadow#6 GUILD_FLAG +payg_cas03,259,66,4 duplicate(InsideFlagsPA3) Holy Shadow#7 GUILD_FLAG +payg_cas03,266,66,4 duplicate(InsideFlagsPA3) Holy Shadow#8 GUILD_FLAG +payg_cas03,34,31,4 duplicate(InsideFlagsPA3) Holy Shadow#9 GUILD_FLAG +payg_cas03,43,31,4 duplicate(InsideFlagsPA3) Holy Shadow#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +payon,113,322,4 duplicate(InsideFlagsPA3) Holy Shadow#11 GUILD_FLAG +payon,166,169,3 duplicate(InsideFlagsPA3) Holy Shadow#12 GUILD_FLAG + +// Kafra Employee +//============================================================ +payg_cas03,9,263,5 duplicate(guildkafra) Kafra Staff#payg_cas03 4_F_KAFRA1 + +// Steward +//============================================================ +payg_cas03,50,261,3 duplicate(cm) Gheriot#payg_cas03 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +payg_cas03,163,167,0 script #lever_PA03 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "payg_cas03",50,261; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +payg_cas03,38,42,0 duplicate(gdlever) #payg_cas03 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +payg_cas03,159,168,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas03 -1 + +// AGIT Manager +//============================================================ +payg_cas03,269,265,0 duplicate(Gld_Agit_Manager) Agit#payg_cas03 -1 + +// Guardians +//============================================================ +payg_cas03,10,277,0 duplicate(Gld_Guard_Template) Guardian#payg_cas03 -1 diff --git a/npc/woe-fe/payg_cas04.txt b/npc/woe-fe/payg_cas04.txt new file mode 100644 index 000000000..498bc1aed --- /dev/null +++ b/npc/woe-fe/payg_cas04.txt @@ -0,0 +1,134 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Payon) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Payon Guild Castle 4 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] +//= Fixed position of Guild dungeon switch. +//= 1.3 Partially rewrote Script. [Masao] +//= 1.4 Fixed named [Streusel] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Sacred Altar#1::OutsideFlagsPA4 GUILD_FLAG,{ + + .@GID = getcastledata("payg_cas04",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("payg_cas04",1)) { + warp "payg_cas04",40,235; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePy04: + flagemblem getcastledata("payg_cas04",1); + end; +} + +pay_gld,137,160,0 duplicate(OutsideFlagsPA4) Sacred Altar#1-2 GUILD_FLAG +pay_gld,143,160,0 duplicate(OutsideFlagsPA4) Sacred Altar#2 GUILD_FLAG +pay_gld,133,151,2 duplicate(OutsideFlagsPA4) Sacred Altar#3 GUILD_FLAG +pay_gld,153,166,1 duplicate(OutsideFlagsPA4) Sacred Altar#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Sacred Altar#5::InsideFlagsPA4 GUILD_FLAG,{ + end; + +OnRecvCastlePy04: + flagemblem getcastledata("payg_cas04",1); + end; +} + +payg_cas04,255,259,0 duplicate(InsideFlagsPA4) Sacred Altar#5-2 GUILD_FLAG +payg_cas04,248,259,0 duplicate(InsideFlagsPA4) Sacred Altar#6 GUILD_FLAG +payg_cas04,248,168,6 duplicate(InsideFlagsPA4) Sacred Altar#7 GUILD_FLAG +payg_cas04,248,160,6 duplicate(InsideFlagsPA4) Sacred Altar#8 GUILD_FLAG +payg_cas04,232,181,4 duplicate(InsideFlagsPA4) Sacred Altar#9 GUILD_FLAG +payg_cas04,239,181,4 duplicate(InsideFlagsPA4) Sacred Altar#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +payon,118,322,4 duplicate(InsideFlagsPA4) Sacred Altar#11 GUILD_FLAG +payon,166,165,3 duplicate(InsideFlagsPA4) Sacred Altar#12 GUILD_FLAG + +// Kafra Employee +//============================================================ +payg_cas04,40,235,1 duplicate(guildkafra) Kafra Staff#payg_cas04 4_F_KAFRA1 + +// Steward +//============================================================ +payg_cas04,38,284,3 duplicate(cm) DJ#payg_cas04 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +payg_cas04,151,47,0 script #lever_PA04 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "payg_cas04",38,285; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +payg_cas04,52,48,0 duplicate(gdlever) #payg_cas04 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +payg_cas04,147,48,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas04 -1 + +// AGIT Manager +//============================================================ +payg_cas04,271,29,0 duplicate(Gld_Agit_Manager) Agit#payg_cas04 -1 + +// Guardians +//============================================================ +payg_cas04,38,284,3 duplicate(Gld_Guard_Template) Guardian#payg_cas04 -1 diff --git a/npc/woe-fe/payg_cas05.txt b/npc/woe-fe/payg_cas05.txt new file mode 100644 index 000000000..7b667c4ca --- /dev/null +++ b/npc/woe-fe/payg_cas05.txt @@ -0,0 +1,133 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Payon) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.3 +//===== Description: ========================================= +//= NPCs that relate to Payon Guild Castle 1 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Removed dialog from interior flags. [L0ne_W0lf] +//= Fixed position of Guild dungeon switch. +//= 1.3 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Bamboo Grove Hill#1::OutsideFlagsPA5 GUILD_FLAG,{ + + .@GID = getcastledata("payg_cas05",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("payg_cas05",1)) { + warp "payg_cas05",243,27; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePy05: + flagemblem getcastledata("payg_cas05",1); + end; +} + +pay_gld,208,268,4 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#1-2 GUILD_FLAG +pay_gld,199,268,4 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#2 GUILD_FLAG +pay_gld,190,277,3 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#3 GUILD_FLAG +pay_gld,187,294,2 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Bamboo Grove Hill#5::InsideFlagsPA5 GUILD_FLAG,{ + end; + +OnRecvCastlePy05: + flagemblem getcastledata("payg_cas05",1); + end; +} + +payg_cas05,32,249,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#5-2 GUILD_FLAG +payg_cas05,24,249,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#6 GUILD_FLAG +payg_cas05,62,271,0 duplicate(InsideFlagsPA5) Bamboo Grove Hill#7 GUILD_FLAG +payg_cas05,57,271,0 duplicate(InsideFlagsPA5) Bamboo Grove Hill#8 GUILD_FLAG +payg_cas05,55,252,2 duplicate(InsideFlagsPA5) Bamboo Grove Hill#9 GUILD_FLAG +payg_cas05,55,260,2 duplicate(InsideFlagsPA5) Bamboo Grove Hill#10 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +payon,123,322,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#11 GUILD_FLAG +payon,166,161,3 duplicate(InsideFlagsPA5) Bamboo Grove Hill#12 GUILD_FLAG + +// Kafra Employee +//============================================================ +payg_cas05,276,227,1 duplicate(guildkafra) Kafra Staff#payg_cas05 4_F_KAFRA1 + +// Steward +//============================================================ +payg_cas05,277,249,3 duplicate(cm) Nahzarf#payg_cas05 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +payg_cas05,161,136,0 script #lever_PA05 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "payg_cas05",277,250; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +payg_cas05,249,15,0 duplicate(gdlever) #payg_cas05 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +payg_cas05,157,132,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas05 -1 + +// AGIT Manager +//============================================================ +payg_cas05,30,30,0 duplicate(Gld_Agit_Manager) Agit#payg_cas05 -1 + +// Guardians +//============================================================ +payg_cas05,277,249,3 duplicate(Gld_Guard_Template) Guardian#payg_cas05 -1 diff --git a/npc/woe-fe/prtg_cas01.txt b/npc/woe-fe/prtg_cas01.txt new file mode 100644 index 000000000..961453ccd --- /dev/null +++ b/npc/woe-fe/prtg_cas01.txt @@ -0,0 +1,136 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Prontera) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Prontera Guild Castle 1 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] +//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.4 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Kriemhild#1::OutsideFlagsPR1 GUILD_FLAG,{ + + .@GID = getcastledata("prtg_cas01",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("prtg_cas01",1)) { + warp "prtg_cas01",96,173; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePt01: + flagemblem getcastledata("prtg_cas01",1); + end; +} + +prt_gld,131,60,6 duplicate(OutsideFlagsPR1) Kriemhild#1-2 GUILD_FLAG +prt_gld,138,68,6 duplicate(OutsideFlagsPR1) Kriemhild#2 GUILD_FLAG +prt_gld,138,60,6 duplicate(OutsideFlagsPR1) Kriemhild#3 GUILD_FLAG +prt_gld,135,60,6 duplicate(OutsideFlagsPR1) Kriemhild#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Kriemhild#5::InsideFlagsPR1 GUILD_FLAG,{ + end; + +OnRecvCastlePt01: + flagemblem getcastledata("prtg_cas01",1); + end; +} + +prtg_cas01,58,56,4 duplicate(InsideFlagsPR1) Kriemhild#5-2 GUILD_FLAG +prtg_cas01,64,56,4 duplicate(InsideFlagsPR1) Kriemhild#6 GUILD_FLAG +prtg_cas01,76,32,4 duplicate(InsideFlagsPR1) Kriemhild#7 GUILD_FLAG +prtg_cas01,84,32,4 duplicate(InsideFlagsPR1) Kriemhild#8 GUILD_FLAG +prtg_cas01,94,39,4 duplicate(InsideFlagsPR1) Kriemhild#9 GUILD_FLAG +prtg_cas01,94,24,4 duplicate(InsideFlagsPR1) Kriemhild#10 GUILD_FLAG +prtg_cas01,73,14,4 duplicate(InsideFlagsPR1) Kriemhild#11 GUILD_FLAG +prtg_cas01,73,6,4 duplicate(InsideFlagsPR1) Kriemhild#12 GUILD_FLAG +prtg_cas01,55,46,4 duplicate(InsideFlagsPR1) Kriemhild#13 GUILD_FLAG +prtg_cas01,45,46,4 duplicate(InsideFlagsPR1) Kriemhild#14 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +prontera,155,190,4 duplicate(InsideFlagsPR1) Kriemhild#15 GUILD_FLAG + +// Kafra Employee +//============================================================ +prtg_cas01,96,173,0 duplicate(guildkafra) Kafra Staff#prtg_cas01 4_F_KAFRA1 + +// Steward +//============================================================ +prtg_cas01,112,181,0 duplicate(cm) Ahvray#prtg_cas01 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +prtg_cas01,15,208,0 script #Lever_PR01 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "prtg_cas01",112,183; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +prtg_cas01,94,200,0 duplicate(gdlever) #prtg_cas01 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +prtg_cas01,11,208,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas01 -1 + +// AGIT Manager +//============================================================ +prtg_cas01,197,197,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas01 -1 + +// Guardians +//============================================================ +prtg_cas01,112,181,0 duplicate(Gld_Guard_Template) Guardian#prtg_cas01 -1 diff --git a/npc/woe-fe/prtg_cas02.txt b/npc/woe-fe/prtg_cas02.txt new file mode 100644 index 000000000..315478ba1 --- /dev/null +++ b/npc/woe-fe/prtg_cas02.txt @@ -0,0 +1,138 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Prontera) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Prontera Guild Castle 2 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] +//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.4 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Swanhild#1::OutsideFlagsPR2 GUILD_FLAG,{ + + .@GID = getcastledata("prtg_cas02",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("prtg_cas02",1)) { + warp "prtg_cas02",169,55; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePt02: + flagemblem getcastledata("prtg_cas02",1); + end; +} + +prt_gld,244,126,8 duplicate(OutsideFlagsPR2) Swanhild#1-2 GUILD_FLAG +prt_gld,244,128,8 duplicate(OutsideFlagsPR2) Swanhild#2 GUILD_FLAG +prt_gld,236,126,8 duplicate(OutsideFlagsPR2) Swanhild#3 GUILD_FLAG +prt_gld,236,128,8 duplicate(OutsideFlagsPR2) Swanhild#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Swanhild#5::InsideFlagsPR2 GUILD_FLAG,{ + end; + +OnRecvCastlePt02: + flagemblem getcastledata("prtg_cas02",1); + end; +} + +prtg_cas02,40,227,4 duplicate(InsideFlagsPR2) Swanhild#5-2 GUILD_FLAG +prtg_cas02,46,227,4 duplicate(InsideFlagsPR2) Swanhild#6 GUILD_FLAG +prtg_cas02,11,219,4 duplicate(InsideFlagsPR2) Swanhild#7 GUILD_FLAG +prtg_cas02,11,214,4 duplicate(InsideFlagsPR2) Swanhild#8 GUILD_FLAG +prtg_cas02,20,219,4 duplicate(InsideFlagsPR2) Swanhild#9 GUILD_FLAG +prtg_cas02,20,214,4 duplicate(InsideFlagsPR2) Swanhild#10 GUILD_FLAG +prtg_cas02,79,227,8 duplicate(InsideFlagsPR2) Swanhild#11 GUILD_FLAG +prtg_cas02,70,227,8 duplicate(InsideFlagsPR2) Swanhild#12 GUILD_FLAG +prtg_cas02,38,189,8 duplicate(InsideFlagsPR2) Swanhild#13 GUILD_FLAG +prtg_cas02,34,189,8 duplicate(InsideFlagsPR2) Swanhild#14 GUILD_FLAG +prtg_cas02,153,161,4 duplicate(InsideFlagsPR2) Swanhild#15 GUILD_FLAG +prtg_cas02,162,161,4 duplicate(InsideFlagsPR2) Swanhild#16 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +prontera,146,194,3 duplicate(InsideFlagsPR2) Swanhild#17 GUILD_FLAG + +// Kafra Employee +//============================================================ +prtg_cas02,71,36,4 duplicate(guildkafra) Kafra Staff#prtg_cas02 4_F_KAFRA1 + +// Steward +//============================================================ +prtg_cas02,94,61,4 duplicate(cm) Roy#prtg_cas02 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +prtg_cas02,207,228,0 script #Lever_PR02 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "prtg_cas02",94,62; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +prtg_cas02,84,72,0 duplicate(gdlever) #prtg_cas02 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +prtg_cas02,202,228,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas02 -1 + +// AGIT Manager +//============================================================ +prtg_cas02,158,174,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas02 -1 + +// Guardians +//============================================================ +prtg_cas02,94,61,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas02 -1 diff --git a/npc/woe-fe/prtg_cas03.txt b/npc/woe-fe/prtg_cas03.txt new file mode 100644 index 000000000..4b52dbb7f --- /dev/null +++ b/npc/woe-fe/prtg_cas03.txt @@ -0,0 +1,136 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Prontera) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Prontera Guild Castle 3 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] +//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.4 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Fadhgridh#1::OutsideFlagsPR3 GUILD_FLAG,{ + + .@GID = getcastledata("prtg_cas03",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("prtg_cas03",1)) { + warp "prtg_cas03",181,215; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePt03: + flagemblem getcastledata("prtg_cas03",1); + end; +} + +prt_gld,147,140,4 duplicate(OutsideFlagsPR3) Fadhgridh#1-2 GUILD_FLAG +prt_gld,147,136,4 duplicate(OutsideFlagsPR3) Fadhgridh#2 GUILD_FLAG +prt_gld,158,140,4 duplicate(OutsideFlagsPR3) Fadhgridh#3 GUILD_FLAG +prt_gld,158,136,4 duplicate(OutsideFlagsPR3) Fadhgridh#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Fadhgridh#5::InsideFlagsPR3 GUILD_FLAG,{ + end; + +OnRecvCastlePt03: + flagemblem getcastledata("prtg_cas03",1); + end; +} + +prtg_cas03,168,28,4 duplicate(InsideFlagsPR3) Fadhgridh#5-2 GUILD_FLAG +prtg_cas03,182,28,4 duplicate(InsideFlagsPR3) Fadhgridh#6 GUILD_FLAG +prtg_cas03,43,50,4 duplicate(InsideFlagsPR3) Fadhgridh#7 GUILD_FLAG +prtg_cas03,48,50,4 duplicate(InsideFlagsPR3) Fadhgridh#8 GUILD_FLAG +prtg_cas03,43,58,4 duplicate(InsideFlagsPR3) Fadhgridh#9 GUILD_FLAG +prtg_cas03,48,58,4 duplicate(InsideFlagsPR3) Fadhgridh#10 GUILD_FLAG +prtg_cas03,158,210,4 duplicate(InsideFlagsPR3) Fadhgridh#11 GUILD_FLAG +prtg_cas03,169,210,4 duplicate(InsideFlagsPR3) Fadhgridh#12 GUILD_FLAG +prtg_cas03,162,201,4 duplicate(InsideFlagsPR3) Fadhgridh#13 GUILD_FLAG +prtg_cas03,165,201,4 duplicate(InsideFlagsPR3) Fadhgridh#14 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +prontera,143,203,2 duplicate(InsideFlagsPR3) Fadhgridh#15 GUILD_FLAG + +// Kafra Employee +//============================================================ +prtg_cas03,181,215,4 duplicate(guildkafra) Kafra Staff#prtg_cas03 4_F_KAFRA1 + +// Steward +//============================================================ +prtg_cas03,51,100,4 duplicate(cm) Sttick#prtg_cas03 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +prtg_cas03,193,130,0 script #Lever_PR03 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "prtg_cas03",51,101; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +prtg_cas03,5,70,0 duplicate(gdlever) #prtg_cas03 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +prtg_cas03,189,132,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas03 -1 + +// AGIT Manager +//============================================================ +prtg_cas03,17,221,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas03 -1 + +// Guardians +//============================================================ +prtg_cas03,51,100,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas03 -1 diff --git a/npc/woe-fe/prtg_cas04.txt b/npc/woe-fe/prtg_cas04.txt new file mode 100644 index 000000000..8936b8451 --- /dev/null +++ b/npc/woe-fe/prtg_cas04.txt @@ -0,0 +1,136 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Prontera) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Prontera Guild Castle 4 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] +//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.4 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Skoegul#1::OutsideFlagsPR4 GUILD_FLAG,{ + + .@GID = getcastledata("prtg_cas04",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("prtg_cas04",1)) { + warp "prtg_cas04",258,247; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePt04: + flagemblem getcastledata("prtg_cas04",1); + end; +} + +prt_gld,120,243,6 duplicate(OutsideFlagsPR4) Skoegul#1-2 GUILD_FLAG +prt_gld,120,236,6 duplicate(OutsideFlagsPR4) Skoegul#2 GUILD_FLAG +prt_gld,122,243,6 duplicate(OutsideFlagsPR4) Skoegul#3 GUILD_FLAG +prt_gld,122,236,6 duplicate(OutsideFlagsPR4) Skoegul#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Skoegul#5::InsideFlagsPR4 GUILD_FLAG,{ + end; + +OnRecvCastlePt04: + flagemblem getcastledata("prtg_cas04",1); + end; +} + +prtg_cas04,82,29,4 duplicate(InsideFlagsPR4) Skoegul#5-2 GUILD_FLAG +prtg_cas04,75,29,4 duplicate(InsideFlagsPR4) Skoegul#6 GUILD_FLAG +prtg_cas04,75,27,4 duplicate(InsideFlagsPR4) Skoegul#7 GUILD_FLAG +prtg_cas04,82,27,4 duplicate(InsideFlagsPR4) Skoegul#8 GUILD_FLAG +prtg_cas04,59,29,4 duplicate(InsideFlagsPR4) Skoegul#9 GUILD_FLAG +prtg_cas04,67,29,4 duplicate(InsideFlagsPR4) Skoegul#10 GUILD_FLAG +prtg_cas04,258,25,4 duplicate(InsideFlagsPR4) Skoegul#11 GUILD_FLAG +prtg_cas04,258,20,4 duplicate(InsideFlagsPR4) Skoegul#12 GUILD_FLAG +prtg_cas04,263,20,4 duplicate(InsideFlagsPR4) Skoegul#13 GUILD_FLAG +prtg_cas04,263,27,4 duplicate(InsideFlagsPR4) Skoegul#14 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +prontera,167,203,6 duplicate(InsideFlagsPR4) Skoegul#15 GUILD_FLAG + +// Kafra Employee +//============================================================ +prtg_cas04,258,247,4 duplicate(guildkafra) Kafra Staff#prtg_cas04 4_F_KAFRA1 + +// Steward +//============================================================ +prtg_cas04,259,265,4 duplicate(cm) Van Dreth#prtg_cas04 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +prtg_cas04,275,160,0 script #Lever_PR04 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "prtg_cas04",259,265; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +prtg_cas04,56,283,0 duplicate(gdlever) #prtg_cas04 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +prtg_cas04,271,162,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas04 -1 + +// AGIT Manager +//============================================================ +prtg_cas04,292,14,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas04 -1 + +// Guardians +//============================================================ +prtg_cas04,259,265,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas04 -1 diff --git a/npc/woe-fe/prtg_cas05.txt b/npc/woe-fe/prtg_cas05.txt new file mode 100644 index 000000000..3b9652783 --- /dev/null +++ b/npc/woe-fe/prtg_cas05.txt @@ -0,0 +1,134 @@ +//===== Hercules Script ====================================== +//= War of Emperium (Prontera) +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.4 +//===== Description: ========================================= +//= NPCs that relate to Prontera Guild Castle 5 +//===== Additional Comments: ================================= +//= 1.0 First Version. No longer uses functions. [L0ne_W0lf] +//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf] +//= 1.2 Corrected treasure room switch coordinates. [L0ne_W0lf] +//= 1.3 Removed dialog from interior flags. [L0ne_W0lf] +//= 1.4 Partially rewrote Script. [Masao] +//============================================================ + +// Guild Flags (Outside Castle) +//============================================================ +- script Gondul#1::OutsideFlagsPR5 GUILD_FLAG,{ + + .@GID = getcastledata("prtg_cas05",1); + + if (.@GID == 0) { + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "We declare that"; + mes "there is no formal master of this castle."; + mes " "; + mes "2. To the one who can "; + mes "overcome all trials"; + mes "and destroy the Emperium,"; + mes "the king will endow the one with"; + mes "ownership of this castle."; + close; + } + if (getcharid(2) == .@GID) { + mes "[ Echoing Voice ]"; + mes "Brave ones..."; + mes "Do you wish to return to your honorable place?"; + next; + if(select("Return to the guild castle.:Quit.") == 1) { + close2; + if (getcharid(2) == getcastledata("prtg_cas05",1)) { + warp "prtg_cas05",52,41; + end; + } + end; + } + close; + } + mes "[ Edict of the Divine Rune-Midgarts Kingdom ]"; + mes " "; + mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, "; + mes "we approve that this place is in"; + mes "the private prossession of ^ff0000"+getguildname(.@GID)+"^000000 Guild."; + mes " "; + mes "2. The guild Master of ^ff0000"+getguildname(.@GID)+"^000000 Guild is"; + mes "^ff0000"+getguildmaster(.@GID)+"^000000"; + mes "If there is anyone who objects to this,"; + mes "prove your strength and honor with a steel blade in your hand."; + close; + +OnRecvCastlePt05: + flagemblem getcastledata("prtg_cas05",1); + end; +} + +prt_gld,199,243,2 duplicate(OutsideFlagsPR5) Gondul#1-2 GUILD_FLAG +prt_gld,199,236,2 duplicate(OutsideFlagsPR5) Gondul#2 GUILD_FLAG +prt_gld,197,243,2 duplicate(OutsideFlagsPR5) Gondul#3 GUILD_FLAG +prt_gld,197,236,2 duplicate(OutsideFlagsPR5) Gondul#4 GUILD_FLAG + +// Guild Flags (Inside Castle) +//============================================================ +- script Gondul#5::InsideFlagsPR5 GUILD_FLAG,{ + end; + +OnRecvCastlePt05: + flagemblem getcastledata("prtg_cas05",1); + end; +} + +prtg_cas05,19,247,4 duplicate(InsideFlagsPR5) Gondul#5-2 GUILD_FLAG +prtg_cas05,19,243,4 duplicate(InsideFlagsPR5) Gondul#6 GUILD_FLAG +prtg_cas05,26,247,4 duplicate(InsideFlagsPR5) Gondul#7 GUILD_FLAG +prtg_cas05,26,243,4 duplicate(InsideFlagsPR5) Gondul#8 GUILD_FLAG +prtg_cas05,249,289,4 duplicate(InsideFlagsPR5) Gondul#9 GUILD_FLAG +prtg_cas05,256,289,4 duplicate(InsideFlagsPR5) Gondul#10 GUILD_FLAG +prtg_cas05,253,271,4 duplicate(InsideFlagsPR5) Gondul#11 GUILD_FLAG +prtg_cas05,273,257,4 duplicate(InsideFlagsPR5) Gondul#12 GUILD_FLAG + +// Guild Flag (Town) +//============================================================ +prontera,165,194,5 duplicate(InsideFlagsPR5) Gondul#13 GUILD_FLAG + +// Kafra Employee +//============================================================ +prtg_cas05,52,41,4 duplicate(guildkafra) Kafra Staff#prtg_cas05 4_F_KAFRA1 + +// Steward +//============================================================ +prtg_cas05,36,37,4 duplicate(cm) Raynor#prtg_cas05 1_M_JOBTESTER + +// Treasure Room Exit +//============================================================ +prtg_cas05,281,176,0 script #Lever_PR05 HIDDEN_NPC,{ + + mes " "; + mes "There's a small lever. Will you pull it?"; + next; + if(select("Pull.:Do not.") == 1) { + close2; + warp "prtg_cas05",36,38; + end; + } + close; +} + +// Guild Dungeon Switch +//============================================================ +prtg_cas05,212,95,0 duplicate(gdlever) #prtg_cas05 HIDDEN_NPC + +// Guild Treasure Spawns +//============================================================ +prtg_cas05,276,178,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas05 -1 + +// AGIT Manager +//============================================================ +prtg_cas05,266,266,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas05 -1 + +// Guardians +//============================================================ +prtg_cas05,36,37,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas05 -1 diff --git a/npc/woe-fe/trs_rp.txt b/npc/woe-fe/trs_rp.txt new file mode 100644 index 000000000..d96bd694e --- /dev/null +++ b/npc/woe-fe/trs_rp.txt @@ -0,0 +1,55 @@ +//===== Hercules Script ====================================== +//= Treasure Room Protection +//===== By: ================================================== +//= Masao +//===== Current Version: ===================================== +//= 1.1 +//===== Description: ========================================= +//= Warps every Player out of the Treasure Room except for the +//= Guildleader. +//===== Additional Comments: ================================= +//= 1.0 Converted from the official script. +//= 1.1 Reverted back and optimized. [Daegaladh] +//============================================================ + +- script Gld_Trea_Protect::Gld_Trea_Protect -1,{ + +OnTouch: + // Store the Guild ID of castle occupant. + .@GID = getcastledata(strnpcinfo(2),1); + if (strcharinfo(0) != getguildmaster(.@GID)) { + if (compare(strnpcinfo(2),"aldeg")) + warp "aldebaran",143,112; + else if (compare(strnpcinfo(2),"gefg")) + warp "geffen",120,38; + else if (compare(strnpcinfo(2),"payg")) + warp "payon",100,100; + else if (compare(strnpcinfo(2),"prtg")) + warp "prontera",119,64; + } + end; +} + +prtg_cas01,11,208,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas01 -1,6,6 +prtg_cas02,202,228,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas02 -1,6,6 +prtg_cas03,189,132,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas03 -1,6,6 +prtg_cas04,271,162,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas04 -1,6,6 +prtg_cas05,276,178,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas05 -1,6,6 + +payg_cas01,291,8,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas01 -1,6,6 +payg_cas02,145,144,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas02 -1,6,6 +payg_cas03,159,168,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas03 -1,6,6 +payg_cas04,147,48,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas04 -1,6,6 +payg_cas05,157,132,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas05 -1,6,6 + +aldeg_cas01,118,223,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas01 -1,8,8 +aldeg_cas02,135,230,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas02 -1,8,8 +aldeg_cas03,225,269,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas03 -1,8,8 +aldeg_cas04,84,13,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas04 -1,8,8 +aldeg_cas05,62,12,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas05 -1,8,8 + +gefg_cas01,154,112,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas01 -1,6,6 +gefg_cas02,140,116,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas02 -1,6,6 +gefg_cas03,271,290,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas03 -1,6,6 +gefg_cas04,116,119,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas04 -1,6,6 +gefg_cas05,144,110,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas05 -1,6,6 diff --git a/npc/woe-se/agit_main_se.txt b/npc/woe-se/agit_main_se.txt new file mode 100644 index 000000000..bad6b27f7 --- /dev/null +++ b/npc/woe-se/agit_main_se.txt @@ -0,0 +1,1834 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Template File +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.4a +//===== Description: ========================================= +//= Like agit_main, this file is required +//= for SE castles to function. +//===== Additional Comments: ================================= +//= 0.x Previous authors: L0ne_W0lf, Zephyrus, Brian. +//= 1.0 If anything breaks, blame Maki. [Euphy] +//= 1.1 Fixed an incorrect label execution. [Euphy] +//= 1.2 Hopefully fixed a processing error. [Euphy] +//= 1.3 Fixed barricade issue in schg_cas02. [Cookie] +//= 1.4 Added OnGuildBreak event and a spawn check. [Euphy] +//= 1.4a Fixed Guardian Stone respawns. [Euphy] +//============================================================ + +// Core, triggers all other events +//============================================================ +- script Manager#template -1,{ +OnAgitInit2: +OnRecvCastle2: + if (strnpcinfo(2) == "template") end; + if (!getcastledata(strnpcinfo(2),1)) { + donpcevent strnpcinfo(0)+"::OnStart"; + // Monster spawns are identical for all castles. + monster strnpcinfo(2),0,0,"Evil Druid",1117,10; + monster strnpcinfo(2),0,0,"Khalitzburg",1132,4; + monster strnpcinfo(2),0,0,"Abysmal Knight",1219,3; + monster strnpcinfo(2),0,0,"Executioner",1205,1; + monster strnpcinfo(2),0,0,"Penomena",1216,10; + monster strnpcinfo(2),0,0,"Alarm",1193,18; + monster strnpcinfo(2),0,0,"Clock",1269,9; + monster strnpcinfo(2),0,0,"Raydric Archer",1276,12; + monster strnpcinfo(2),0,0,"Wanderer",1208,3; + monster strnpcinfo(2),0,0,"Alice",1275,1; + monster strnpcinfo(2),0,0,"Bloody Knight",1268,2; + monster strnpcinfo(2),0,0,"Dark Lord",1272,2; + monster strnpcinfo(2),0,0,"Tower Keeper",1270,4; + } + if (getcastledata(strnpcinfo(2),9) < 1) + disablenpc "Kafra Employee#"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); + end; + +OnAgitStart2: + if (strnpcinfo(2) == "template") end; + if (agitcheck2()) { + maprespawnguildid strnpcinfo(2),getcastledata(strnpcinfo(2),1),2; + gvgon strnpcinfo(2); + donpcevent strnpcinfo(0)+"::OnStart"; + } + else for(.@i = 0; .@i<4; ++.@i) + donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnDisable"; + end; + +OnAgitEnd2: + if (strnpcinfo(2) == "template") end; + gvgoff strnpcinfo(2); + if (getcastledata(strnpcinfo(2),1)) { + .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); + killmonster strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena"; + donpcevent strnpcinfo(0)+"::OnReset"; + donpcevent "Steward#"+.@str$+"::OnStop"; + } + end; + +OnGuildBreak: + if (strnpcinfo(2) == "template") end; + killmonster strnpcinfo(2),"gard1#"+strnpcinfo(2)+"::OnGuardianDied"; + killmonster strnpcinfo(2),"gard2#"+strnpcinfo(2)+"::OnGuardianDied"; + disablenpc "Kafra Employee#"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); + setcastledata strnpcinfo(2),1,0; + sleep 7000; + announce "Guild Base ["+getcastlename(strnpcinfo(2))+"] has been abandoned.",0; + donpcevent strnpcinfo(0)+"::OnRecvCastle2"; + end; + +OnStart: + // $agit_ar0x[] - $agit_sc0x[] + // 1st Guardian stone, 2nd Guardian stone, Barrier 1, Barrier 2, Barrier 3, Summon Guardians + // Settings for all but Summon Guardians: 0 = Okay | 1 = Destroyed | 2 = Repairing + // Summon Guardians: 0 = Do not Summon | 1 = Summon + if (getcastledata(strnpcinfo(2),1)) { + setarray getd("$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"[0]"),0,0,0,0,0,0; + donpcevent "df1#"+strnpcinfo(2)+"::OnEnable"; + donpcevent "df2#"+strnpcinfo(2)+"::OnEnable"; + for (.@i = 0; .@i<4; ++.@i) + donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnEnable"; + } + +OnEmpSpawn: + .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); + if (mobcount(strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena")) end; + if (compare(strnpcinfo(2),"arug")) { + if (strnpcinfo(2) == "arug_cas01") setarray .@i[0],87,219; + else if (strnpcinfo(2) == "arug_cas02") setarray .@i[0],89,256; + else setarray .@i[0],141,293; // Castles 3,4,5 are identical. + } + else { + if (strnpcinfo(2) == "schg_cas02") setarray .@i[0],162,193; + else if (strnpcinfo(2) == "schg_cas03") setarray .@i[0],338,202; + else setarray .@i[0],120,272; // Castles 1,4,5 are identical. + } + monster strnpcinfo(2),.@i[0],.@i[1],"Emperium",1288,1,"Steward#"+.@str$+"::OnStartArena"; + end; + +OnReset: + .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); + donpcevent "df1#"+strnpcinfo(2)+"::OnDisable"; + donpcevent "df2#"+strnpcinfo(2)+"::OnDisable"; + donpcevent "gard1#"+strnpcinfo(2)+"::OnReset"; + donpcevent "gard2#"+strnpcinfo(2)+"::OnReset"; + donpcevent "1st Guardian Stone#"+.@str$+"::OnDisable"; + donpcevent "2nd Guardian Stone#"+.@str$+"::OnDisable"; + for(.@i = 1; .@i<4; ++.@i) + donpcevent "Control Device0"+.@i+"#"+.@str$+"::OnDisable"; + for(.@i = 0; .@i<4; ++.@i) + donpcevent "RL"+.@i+"#"+strnpcinfo(2)+"::OnDisable"; + if (agitcheck2()) + setarray getd("$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9)+"[0]"),0,0,1,1,1,0; + end; + +OnChange: + .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); + setarray getd("$agit_"+.@str$+"[0]"),2,2,1,1,2,0; + donpcevent strnpcinfo(0)+"::OnEmpSpawn"; + donpcevent "Control Device03#"+.@str$+"::OnEnable"; + donpcevent "1st Guardian Stone#"+.@str$+"::OnEnable"; + donpcevent "2nd Guardian Stone#"+.@str$+"::OnEnable"; + end; + +OnClock0001: + // Spawn Treasure Chests based on castle economy. + if (strnpcinfo(2) == "template") end; + if (!getcastledata(strnpcinfo(2),1)) end; + killmonster strnpcinfo(2),strnpcinfo(0)+"::OnTreasureDied"; + if (getcastledata(strnpcinfo(2),4)) { + .@Economy = getcastledata(strnpcinfo(2),2); + setcastledata strnpcinfo(2),2,.@Economy+getcastledata(strnpcinfo(2),4)+(rand(2) && getgdskilllv(getcastledata(strnpcinfo(2),1),10014)); + if (getcastledata(strnpcinfo(2),2) > 100) setcastledata strnpcinfo(2),2,100; + setcastledata strnpcinfo(2),4,0; + } + if (getcastledata(strnpcinfo(2),5)) { + .@defence = getcastledata(strnpcinfo(2),3); + setcastledata strnpcinfo(2),3,.@defence+getcastledata(strnpcinfo(2),5); + if (getcastledata(strnpcinfo(2),3) > 100) setcastledata strnpcinfo(2),3,100; + setcastledata strnpcinfo(2),5,0; + } + .@Treasure = getcastledata(strnpcinfo(2),2)/5+4; + if (!.@Treasure) end; + freeloop(1); + if (compare(strnpcinfo(2),"arug")) { + if (strnpcinfo(2) == "arug_cas01") { + .@treasurebox = 1943; + setarray .@treasurex[0],251,252,253,254,255,256,257,258,251,252,253,254,255,256,257,258,251,252,253,254,255,256,257,258; + setarray .@treasurey[0],369,369,369,369,368,368,368,368,367,367,367,367,366,366,366,366,365,365,365,365,364,364,364,364; + } + else if (strnpcinfo(2) == "arug_cas02") { + .@treasurebox = 1944; + setarray .@treasurex[0],382,383,384,385,386,387,384,385,386,387,388,389,382,383,384,385,386,387,384,385,386,387,388,389; + setarray .@treasurey[0],231,231,231,231,231,231,230,230,230,230,230,230,225,225,225,225,225,225,224,224,224,224,224,224; + } + else { // Castles 3,4,5 are identical, except 4's treasure. + .@treasurebox = (strnpcinfo(2) == "arug_cas04")?1946:1945; + setarray .@treasurex[0],291,292,293,294,295,296,293,294,295,296,297,298,291,292,293,294,295,296,293,294,295,296,297,298; + setarray .@treasurey[0],276,276,276,276,276,276,274,274,274,274,274,274,272,272,272,272,272,272,269,269,269,269,269,269; + } + } + else { + if (strnpcinfo(2) == "schg_cas02") { + .@treasurebox = 1939; + setarray .@treasurex[0],249,250,251,252,253,246,247,248,249,250,250,251,252,253,246,247,248,249,250,249,250,251,252,253; + setarray .@treasurey[0],378,378,378,378,378,376,376,376,376,376,374,374,374,374,372,372,372,372,372,370,370,370,370,370; + } + else if (strnpcinfo(2) == "schg_cas03") { + .@treasurebox = 1940; + setarray .@treasurex[0],189,190,191,192,193,194,189,190,191,192,193,194,189,190,191,192,193,194,189,190,191,192,193,194; + setarray .@treasurey[0], 21, 21, 21, 21, 21, 21, 19, 19, 19, 19, 19, 19, 17, 17, 17, 17, 17, 17, 15, 15, 15, 15, 15, 15; + } + else { // Castles 1,4,5 are identical, except treasures. + if (strnpcinfo(2) == "schg_cas01") .@treasurebox = 1938; + else if (strnpcinfo(2) == "schg_cas04") .@treasurebox = 1941; + else .@treasurebox = 1942; + setarray .@treasurex[0],388,388,388,387,386,385,384,384,384,384,384,384,385,386,387,388,389,390,390,390,389,388,387,386; + setarray .@treasurey[0],388,389,390,390,390,390,389,388,387,386,385,384,384,384,384,384,384,384,385,386,386,386,386,386; + } + } + for(.@i = 0; .@i<4; ++.@i) + monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(0)+"::OnTreasureDied"; + for(.@i = 4; .@i<24; ++.@i) { + if (.@Treasure < .@i+1) break; + monster strnpcinfo(2),.@treasurex[.@i],.@treasurey[.@i],"Treasure Chest",(.@i%2)?.@treasurebox:1324,1,strnpcinfo(0)+"::OnTreasureDied"; + } + freeloop(0); + end; + +OnTreasureDied: + end; +} + +// Guild Manager +//============================================================ +- script Steward#template -1,{ + .@GID = getcastledata(strnpcinfo(4),1); + if (!.@GID) { + mes "[ Steward ]"; + mes "I await for the master"; + mes "whom destiny will choose"; + mes "for me. Do you think you"; + mes "have to courage and strength"; + mes "to conquer this stronghold?"; + close; + } + if (getcharid(2) != .@GID || strcharinfo(0) != getguildmaster(.@GID)) { + mes "[ Steward ]"; + mes "Hmpf. Your threats don't"; + mes "scare me! Guardians, drive"; + mes "this infidel away from here!"; + mes "I will always be loyal to the"; + mes "master of this stronghold,"; + mes "the one and only ^FF0000"+getguildmaster(.@GID)+"^000000."; + close; + } + mes "[ Steward ]"; + mes "Ah, Master ^FF0000"+getguildmaster(.@GID)+"^000000..."; + mes "How shall I serve you today?"; + mes "Was there an aspect of this"; + mes "stronghold's maintenance"; + mes "you wanted to discuss?"; + next; + switch(select("Stronghold Briefing:Invest in Commercial Growth:Invest in Defense growth:Hire/Fire Storage Staff:Go to Master's room")) { + case 1: + mes "[ Steward ]"; + mes "The Commercial Growth"; + mes "Level of the stronghold is ^0000ff"+getcastledata(strnpcinfo(4),2)+"."; + if (getcastledata(strnpcinfo(4),4) > 0) { + mes "Last time, you invested in"; + mes "Commercial Growth "+getcastledata(strnpcinfo(4),4)+"."; + } + next; + mes "[ Steward ]"; + mes "Our stronghold's"; + mes "safeguard level is "+getcastledata(strnpcinfo(4),3)+"."; + if (getcastledata(strnpcinfo(4),5) > 0) { + mes "Last time, you invested"; + mes "in defense "+getcastledata(strnpcinfo(4),5)+" times."; + } + mes " "; + mes "That is all, master."; + close; + case 2: + .@Economy = getcastledata(strnpcinfo(4),2); + setarray .@cost[0],5000,10000,20000,35000,55000,80000,110000,145000,185000,230000,280000,335000,395000,460000,530000,605000,685000,770000,860000,955000; + .@j = 0; + for(.@i = 6; .@i<101; .@i += 5) { + if (.@Economy < .@i) { + .@eco_invest = .@cost[.@j]; + break; + } + ++.@j; + } + // Quadruple the cost of investing if you've already invested once. + if (getcastledata(strnpcinfo(4),4)) + .@eco_invest *= 4; + mes "[ Steward ]"; + mes "Raising the stronghold's"; + mes "commercial growth will"; + mes "increase the quantity of"; + mes "goods produced for the guild."; + mes "Investing in commercial growth"; + mes "will help the guild's future."; + next; + mes "[ Steward ]"; + mes "You can make one investment"; + mes "each day, but if you can make"; + mes "two investments if you pay"; + mes "more Zeny: this will speed"; + mes "up commercial development,"; + mes "but can be quite expensive."; + next; + if (.@Economy == 100) { + mes "[ Steward ]"; + mes "However, our stronghold's"; + mes "commerical growth level is"; + mes "at 100%. It's not possible to"; + mes "develop commercial growth"; + mes "any further than that."; + close; + } + if (getcastledata(strnpcinfo(4),4) >= 2) { + mes "[ Steward ]"; + mes "You've already made two"; + mes "investments today, so you'll"; + mes "have to wait until tomorrow"; + mes "to make another investment."; + close; + } + if (getcastledata(strnpcinfo(4),4) == 0) { + mes "[ Steward ]"; + mes "You must pay ^FF0000"+.@eco_invest+"^000000 Zeny"; + mes "to make an investment"; + mes "Will you invest in this"; + mes "stronghold's commerical"; + mes "development now?"; + } + else { + mes "[ Steward ]"; + mes "You must pay ^FF0000"+.@eco_invest+"^000000"; + mes "more Zeny to make a second"; + mes "investment today. Will you"; + mes "invest one more time?"; + } + next; + switch(select("Invest in Commercial Growth:Cancel")) { + case 1: + if (getcastledata(strnpcinfo(4),4) >= 2) { + mes "[ Steward ]"; + mes "You've already made two"; + mes "investments today, so you'll"; + mes "have to wait until tomorrow"; + mes "to make another investment."; + close; + } + if (Zeny < .@eco_invest) { + mes "[ Steward ]"; + mes "I'm sorry, Master, but"; + mes "you do not have enough"; + mes "Zeny to make an investment"; + mes "for the guild today."; + close; + } + Zeny -= .@eco_invest; + setcastledata strnpcinfo(4),4,getcastledata(strnpcinfo(4),4)+1; + mes "[ Steward ]"; + mes "A wise use of the guild's"; + mes "funds, Master. We can expect"; + mes "to see the results of this"; + mes "investment by tomorrow."; + close; + case 2: + mes "[ Steward ]"; + mes "As you command, Master."; + close; + } + case 3: + .@defence = getcastledata(strnpcinfo(4),3); + setarray .@cost[0],10000,20000,40000,70000,110000,160000,220000,290000,370000,460000,560000,670000,790000,920000,1060000,1210000,1370000,1540000,1720000,1910000; + .@j = 0; + for(.@i = 6; .@i<101; .@i += 5) { + if (.@defence < .@i) { + .@def_invest = .@cost[.@j]; + break; + } + ++.@j; + } + // Quadruple the cost of investing if you've already invested once. + if (getcastledata(strnpcinfo(4),5)) + .@def_invest *= 4; + mes "[ Steward ]"; + mes "Investing in our stronghold's"; + mes "defense will enhance the"; + mes "durability of our Guardians"; + mes "and the Emperium. We'll need"; + mes "every advantage to protect"; + mes "ourselves from our enemies."; + next; + mes "[ Steward ]"; + mes "You can invest in defense"; + mes "once per day, but if you pay"; + mes "more Zeny, you can invest"; + mes "a maximum of two times daily."; + next; + mes "[ Steward ]"; + if (getcastledata(strnpcinfo(4),3) == 100) { + mes "The Defense Level of this"; + mes "stronghold is 100%, and"; + mes "cannot be increased further."; + close; + } + if (getcastledata(strnpcinfo(4),5) >= 2) { + mes "Master, you've already"; + mes "invested in Defense twice"; + mes "today. You'll need to wait"; + mes "until tomorrow if you really"; + mes "want to increase our defenses."; + close; + } + if (getcastledata(strnpcinfo(4),5) == 0) { + mes "We need ^FF0000"+.@def_invest+"^000000"; + mes "Zeny to invest in our"; + mes "stronghold's defenses."; + mes "Will you invest now?"; + } + else { + mes "We need ^FF0000"+.@def_invest+"^000000"; + mes "Zeny to invest in our"; + mes "stronghold's defenses"; + mes "a second time today."; + mes "Will you invest now?"; + } + next; + switch(select("Invest in Defense:Cancel")) { + case 1: + if (getcastledata(strnpcinfo(4),5) >= 2) { + mes "[ Steward ]"; + mes "Master, you've already"; + mes "invested in Defense twice"; + mes "today. You'll need to wait"; + mes "until tomorrow if you really"; + mes "want to increase our defenses."; + close; + } + if (Zeny < .@def_invest) { + mes "[ Steward ]"; + mes "I'm sorry, Master, but"; + mes "you do not have enough"; + mes "Zeny to make an investment"; + mes "for the guild today."; + close; + } + Zeny -= .@def_invest; + setcastledata strnpcinfo(4),5,getcastledata(strnpcinfo(4),5)+1; + mes "[ Steward ]"; + mes "A wise use of the guild's"; + mes "funds, Master. Increasing"; + mes "the frequency of treasure"; + mes "procured by the guild will"; + mes "definitely help us all."; + close; + case 2: + mes "[ Steward ]"; + mes "As you command, Master."; + close; + } + case 4: + if (getcastledata(strnpcinfo(4),9) == 1) { + mes "[ Steward ]"; + mes "Do you wish to dismiss"; + mes "the Kafra Employee that"; + mes "we've hired for the guild?"; + next; + switch(select("Dismiss:Cancel")) { + case 1: + cutin "kafra_01",2; + mes "[ Hired Kafra Employee ]"; + mes "Master, please reconsider!"; + mes "I've been working very hard"; + mes "for the success of the guild!"; + mes "I'll try harder to serve the"; + mes "guild members of this"; + mes "stronghold, I promise!"; + next; + switch(select("Dismiss:Cancel")) { + case 1: + mes "[ Hired Kafra Employee ]"; + mes "Why?! What have I done"; + mes "to deserve this? Waaah~!"; + next; + cutin "kafra_01",255; + break; + case 2: + mes "[ Hired Kafra Employee ]"; + mes "Thank you, Master!"; + mes "I'll obey your every"; + mes "command as best I can!"; + mes "You won't regret this!"; + close; + } + break; + case 2: + mes "[ Steward ]"; + mes "She works very hard,"; + mes "in my opinion. It was in"; + mes "all of our best interests to"; + mes "allow her to stay with us."; + close; + } + disablenpc "Kafra Employee#"+strnpcinfo(2); + setcastledata strnpcinfo(4),9,0; + mes "[ Steward ]"; + mes "That Kafra Employee"; + mes "has been dismissed."; + mes "Were really dissatisfied"; + mes "by the quality of her service?"; + close; + } + else { + mes "[ Steward ]"; + mes "Will you hire a"; + mes "Kafra Employee to serve"; + mes "our stronghold? You must"; + mes "pay ^FF000010,000 Zeny^000000 to hire one."; + next; + switch(select("Hire:Cancel")) { + case 1: + if (getgdskilllv(.@GID,10001) == 0) { + mes "[ Steward ]"; + mes "Master, we cannot hire a"; + mes "Kafra Employee because"; + mes "you have not yet attained"; + mes "the ^FF0000Contract with Kafra^000000"; + mes "guild skill."; + close; + } + if (Zeny < 10000) { + mes "[ Steward ]"; + mes "Master, we cannot hire a"; + mes "Kafra Employee because"; + mes "we do not have enough"; + mes "funds to pay the contract fee."; + close; + } + Zeny -= 10000; + enablenpc "Kafra Employee#"+strnpcinfo(2); + setcastledata strnpcinfo(4),9,1; + mes "[ Steward ]"; + mes "Very well. We have formed"; + mes "a contract with the Kafra"; + mes "Head Office, and hired a"; + mes "Kafra Employee for our"; + mes "stronghold. Here she is~"; + next; + cutin "kafra_01",2; + mes "[ Hired Kafra Employee ]"; + mes "How do you do? I've"; + mes "been dispatched by the"; + mes "Kafra Head Office to"; + mes "serve your guild's needs."; + mes "I'll do my best to follow"; + mes "your every command, Master."; + next; + cutin "kafra_01",255; + mes "[ Steward ]"; + mes "Our contract will expire"; + mes "after one month, so we must"; + mes "pay additional fees to keep"; + mes "this Kafra Employee in"; + mes "the service of our guild."; + close; + case 2: + mes "[ Steward ]"; + mes "As you command, Master."; + mes "However, I suggest hiring"; + mes "a Kafra Employee as soon"; + mes "as possible since our guild"; + mes "would greatly benefit from"; + mes "the convenient Kafra services."; + close; + } + } + case 5: + mes "[ Steward ]"; + mes "Do you wish to enter the"; + mes "Guild Treasure Room?"; + mes "Only you, the Guild Master,"; + mes "are permitted to enter."; + next; + mes "[ Steward ]"; + mes "Please remember to open"; + mes "the Treasure Boxes at the"; + mes "proper time. Otherwise, the"; + mes "treasure may disappear if"; + mes "something unexpected happens."; + next; + switch(select("Go to Treasure Room:Cancel")) { + case 1: + mes "[ Steward ]"; + mes "Allow me to guide you"; + mes "on the secret path to"; + mes "the Treasure Room."; + mes "Press the secret switch"; + mes "when you wish to return here."; + close2; + if (compare(strnpcinfo(4),"arug")) { + if (strnpcinfo(4) == "arug_cas01") setarray .@i[0],250,363; + else if (strnpcinfo(4) == "arug_cas02") setarray .@i[0],382,227; + else setarray .@i[0],292,266; // Castles 3,4,5 are identical. + } + else { + if (strnpcinfo(4) == "schg_cas02") setarray .@i[0],249,373; + else if (strnpcinfo(4) == "schg_cas03") setarray .@i[0],190,16; + else setarray .@i[0],381,381; // Castles 1,4,5 are identical. + } + warp strnpcinfo(4),.@i[0],.@i[1]; + end; + case 2: + mes "[ Steward ]"; + mes "Items in the Treasure Room"; + mes "are produced once each day."; + mes "Therefore, you must obtain"; + mes "the treasure items everyday."; + mes "For the sake of the guild,"; + mes "prioritize treasure harvesting!"; + close; + } + } + +OnStop: + awake strnpcinfo(0); + end; + +OnStartArena: + .@GID = getcharid(2); + .@region$ = (compare(strnpcinfo(4),"arug"))?"Valfreyja":"Nithafjoll"; + // Lower castle Economy + .@Economy = getcastledata(strnpcinfo(4),2)-5; + if (.@Economy < 0) .@Economy = 0; + setcastledata strnpcinfo(4),2,.@Economy; + // Lower Castle Defence + .@defence = getcastledata(strnpcinfo(4),3)-5; + if (.@defence < 0) .@defence = 0; + setcastledata strnpcinfo(4),3,.@defence; + // Set new owner + setcastledata strnpcinfo(4),1,.@GID; + // Clear castle's data. + for(.@i = 4; .@i<10; ++.@i) + setcastledata strnpcinfo(4),.@i,0; + // Disable Kafra + disablenpc "Kafra Employee#"+strnpcinfo(2); + + announce "The ["+getguildname(.@GID)+"] guild conquered the ["+.@region$+" "+charat(strnpcinfo(2),3)+"] stronghold of "+getcastlename(strnpcinfo(4))+"!",bc_all|bc_woe; + mapannounce strnpcinfo(4),"The emperium has been shattered!",bc_map,"0x00FF00",FW_NORMAL,20,0,40; + donpcevent "Manager#"+strnpcinfo(4)+"::OnReset"; + maprespawnguildid strnpcinfo(4),getcastledata(strnpcinfo(4),1),2; + donpcevent "Manager#"+strnpcinfo(4)+"::OnRecvCastle2"; + donpcevent "::OnRecvCastle"+ strtoupper( substr( strnpcinfo(2), 0, 0 ) ) + substr( strnpcinfo(2), 1, getstrlen( strnpcinfo(2) ) -1 ); + sleep 10000; + if (agitcheck2()) { + donpcevent "Manager#"+strnpcinfo(4)+"::OnChange"; + mapannounce strnpcinfo(4),"Rebuild this stronghold's Guardian Stones and Fortress Gates to secure your guild's new aquisition!",bc_map,"0x00FF00",FW_NORMAL,20,0,40; + } + end; +} + +// Castle Guardians +//============================================================ +- script Guardian#template -1,{ + .@GID = getcastledata(strnpcinfo(4),1); + .@n$ = "["+strnpcinfo(1)+"]"; + if (!.@GID) { + mes .@n$; + mes "Great job. Now, all you"; + mes "need to do is destroy this"; + mes "Emperium to gain ownership"; + mes "over this stronghold."; + close; + } + if (getcharid(2) == .@GID) { + if (strcharinfo(0) != getguildmaster(.@GID)) { + mes .@n$; + mes "As guardian of this"; + mes "stronghold, I answer only"; + mes "to the master of the guild"; + mes "that controls this place."; + close; + } + else { + if (!agitcheck2()) { + mes .@n$; + mes "I am "+strnpcinfo(1)+", guardian of"; + mes "this stronghold. For now,"; + mes "all is quiet in this place."; + next; + switch(select("Converse:Cancel")) { + case 1: + mes .@n$; + mes "Do you have any questions"; + mes "about this stronghold?"; + next; + switch(select("Guardian Stones:Fortress Gates:Link Flags:Battle Strategy:Cancel")) { + case 1: + mes .@n$; + mes "There is one Emperium"; + mes "and two Guardian Stones in"; + mes "each fortress. These stones"; + mes "are the first line of defense,"; + mes "and must be destroyed before"; + mes "enemies can even enter."; + next; + mes .@n$; + mes "The stones are located in"; + mes "^4D4DFFGate Houses^000000 which must be"; + mes "protected to prevent enemies"; + mes "from reaching the Emperium."; + mes "Guardian Stones can ^4D4DFFrecall"; + mes "your Guardians^000000 for protection."; + next; + mes .@n$; + mes "Fortresses with higher levels"; + mes "of defense can summon more"; + mes "Guardians: this is why it is"; + mes "so important for guilds to"; + mes "invest in Defense Growth."; + next; + mes .@n$; + mes "Guardian Stones that have"; + mes "been destroyed can be revived"; + mes "after a certain time, but one of^FFFFFF ^000000 the guild members must give"; + mes "me the order. I can also report^FFFFFF ^000000 the status of the Guardian Stones."; + close; + case 2: + mes .@n$; + mes "^4D4DFFFortress Gates^000000 are the second ^FFFFFF ^000000 line of guild stronghold defense,"; + mes "and are protected by extra barricades activated by the Guardian Stones."; + mes "These gates are located in three different parts of the fortress."; + next; + mes .@n$; + mes "Barricades are protected by"; + mes "Guardian Stones, and are"; + mes "restored when the Guardian"; + mes "Stones are retrieved. However,"; + mes "it is not as easy to restore"; + mes "destroyed Fortress Gates."; + next; + mes .@n$; + mes "Fortress Gates can only be"; + mes "restored when the ^4D4DFFguild"; + mes "master of a stronghold"; + mes "changes^000000, or if ^4D4DFFrestoration"; + mes "is requested by the guild"; + mes "master of the stronghold^000000."; + close; + case 3: + mes .@n$; + mes "Strongholds have many"; + mes "Link Flags that allow you"; + mes "to access vital areas within"; + mes "restrictions placed by the"; + mes "Barricades. Usually, ^4D4DFFFlag 1"; + mes "links to the Gate House^000000."; + next; + mes .@n$; + mes "Many flags link directly to"; + mes "the flag near the Emperium."; + mes "The final numbered flag is"; + mes "linked to the Convenience"; + mes "Facility of the stronghold's"; + mes "owner. Keep this in mind."; + close; + case 4: + mes .@n$; + mes "Strategy? It would be better"; + mes "to develop your battle plan to"; + mes "exploit your guild's advantages"; + mes "and your enemies' weaknesses."; + mes "Use the Gate Houses and Barricades, and rebuild as quickly as you can!"; + close; + case 5: + mes .@n$; + mes "You have no questions"; + mes "to ask of me? Well, I'm"; + mes "here to serve your needs."; + close; + } + case 2: + mes .@n$; + mes "I'm always here, so"; + mes "feel free to request my"; + mes "assistance whenever"; + mes "the need arises."; + close; + } + } + else { + mes .@n$; + mes "Greetings, "+strcharinfo(0)+"."; + mes "What are your orders?"; + next; + switch(select("Increase Stronghold Defense:Situational Briefing:Cancel")) { + case 1: + if (!getd("$agit_"+strnpcinfo(2)+"[5]")) { + if (getgdskilllv(.@GID,10002) == 0) { + mes .@n$; + mes "I'm sorry, but the Guardian"; + mes "Stones aren't powerful enough"; + mes "to summon Guardians yet. We"; + mes "need to accumulate more"; + mes "knowledge before they can"; + mes "summon any Guardians."; + close; + } + else { + mes .@n$; + mes "I shall endeavor to summon"; + mes "a Guardian through a Guardian"; + mes "Stone. However, keep in mind"; + mes "that this will not work if the"; + mes "Guardian Stone is destroyed."; + setd "$agit_"+strnpcinfo(2)+"[5]",1; + if (!getd("$agit_"+strnpcinfo(2)+"[0]")) + donpcevent "gard1#"+strnpcinfo(4)+"::OnEnable"; + if (!getd("$agit_"+strnpcinfo(2)+"[1]")) + donpcevent "gard2#"+strnpcinfo(4)+"::OnEnable"; + close; + } + } + else { + mes .@n$; + mes "You've already commanded"; + mes "me to summon a Guardian"; + mes "to defend the stronghold."; + close; + } + case 2: + mes .@n$; + mes "Our defense status is..."; + setarray .@status$[0],"^4D4DFFOperational","^FF0000Destroyed","^008000Repairing"; + mes "1st Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[0]")]+"^000000"; + mes "2nd Guardian Stone: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[1]")]+"^000000"; + mes "1st Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[2]")]+"^000000"; + mes "2nd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[3]")]+"^000000"; + mes "3rd Fortress Gate: "+.@status$[getd("$agit_"+strnpcinfo(2)+"[4]")]+"^000000"; + close; + case 3: + mes .@n$; + mes "I'll be standing by,"; + mes "awaiting your orders."; + close; + } + } + } + } + else { + mes .@n$; + mes "Who are you? Scoundrel!"; + mes "Leave this stronghold now!"; + close; + } + +OnInit: + setarray getd("$agit_"+strnpcinfo(2)+"[0]"),0,0,0,0,0,0; + end; +} + +// Guild Kafras +//============================================================ +- script Kafra#template -1,{ + cutin "kafra_01",2; + .@GID = getcastledata(strnpcinfo(4),1); + if (getcharid(2) == .@GID && getgdskilllv(.@GID,10001)) { + mes "[Kafra Employee]"; + mes "Welcome, proud member"; + mes "of the ^FF0000"+getguildname(.@GID)+"^000000 Guild!"; + mes "The Kafra Corporation is ready"; + mes "to assist you wherever you go!"; + next; + switch(select("Use Storage:Use Warp Service:Rent Pushcart:Cancel")) { + case 1: + if (basicskillcheck() && getskilllv("NV_BASIC") < 6) { + mes "[Kafra Employee]"; + mes "I'm so sorry, but you must"; + mes "have at least Novice Skill"; + mes "Lv.6 to use the Storage."; + } + else openstorage; + break; + case 2: + mes "[Kafra Employee]"; + mes "Please tell me your"; + mes "Warp destination."; + next; + switch(select("Rachel -> 200 z:Cancel")) { + case 1: + if (Zeny < 200) { + mes "[Kafra Employee]"; + mes "I'm sorry, but you don't"; + mes "have enough Zeny to pay"; + mes "the warp fee. Would you"; + mes "please check your funds again?"; + close2; + cutin "kafra_01",255; + end; + } + Zeny -= 200; + warp "rachel",115,125; + end; + case 2: + cutin "kafra_01",255; + break; + } + break; + case 3: + if (BaseClass != Job_Merchant) { + mes "[Kafra Employee]"; + mes "I'm sorry, but the Pushcart"; + mes "rental service can only be"; + mes "used by Merchant, Blacksmith,"; + mes "and Alchemist class characters."; + } + else if (checkcart() == 1) { + mes "[Kafra Employee]"; + mes "Hm? You've already"; + mes "rented a Pushcart."; + } + else { + mes "[Kafra Employee]"; + mes "The Pushcart rental fee"; + mes "is 800 Zeny. Would you"; + mes "like to rent a Pushcart?"; + next; + switch(select("Rent Pushcart:Cancel")) { + case 1: + if (Zeny < 800) { + mes "[Kafra Employee]"; + mes "I'm sorry, but you don't"; + mes "have enough Zeny to rent"; + mes "one of our Pushcarts."; + close2; + cutin "kafra_01",255; + end; + } + Zeny -= 800; + setcart; + break; + case 2: + break; + } + } + break; + case 4: + mes "[Kafra Employee]"; + mes "Thank you for using the"; + mes "Kafra Service. Wherever"; + mes "you go, Kafra will be"; + mes "there to support you!"; + close2; + cutin "kafra_01",255; + end; + } + close2; + cutin "kafra_01",255; + end; + } + else { + mes "[Kafra Employee]"; + mes "I'm sorry, but I've been"; + mes "exclusively contracted"; + mes "to the members of the"; + mes "^FF0000"+getguildname(.@GID)+"^000000 Guild."; + mes "You'll have to ask another"; + mes "Kafra Employee to help you..."; + close2; + cutin "kafra_01",255; + end; + } +} + +// Guardian Stones (2) +//============================================================ +- script Guardian Stone#template -1,{ + .@GID = getcastledata(strnpcinfo(4),1); + .@num = atoi(charat(strnpcinfo(1),0)); + .@var$ = "$agit_"+strnpcinfo(2); + if (getcharid(2) == .@GID) { + mes "^3355FFYou will need the"; + mes "following materials to"; + mes "rebuild a destroyed"; + mes "Guardian Stone.^000000"; + next; + mes "1 Oridecon"; + mes "1 Elunium"; + mes "30 Stones"; + mes "5 Blue Gemstones"; + mes "5 Yellow Gemstones"; + mes "5 Red Gemstones"; + next; + mes "^3355FFDo you want to continue?^000000"; + next; + if(select("No:Continue") == 1) { + mes "^3355FFWork canceled.^000000"; + close; + } + if ((countitem(984) > 0) && (countitem(985) > 0) && (countitem(7049) > 29) && (countitem(717) > 4) && (countitem(715) > 4) && (countitem(716) > 4)) { + mes "^3355FFArrange Stones, Elunium, and"; + mes "Oridecon, in that order, in the"; + mes "center. Then you must arrange"; + mes "the enchanted Gemstones to"; + mes "rebuild the Guardian Stone.^000000"; + next; + setarray .@stone$[0],"Elunium","Oridecon","Stones"; + .@i = select("Elunium:Oridecon:Stone")-1; + if (.@i == 2) .@nice += 10; + mes "^3355FF"+.@stone$[.@i]+" has been"; + mes "placed in the center.^000000"; + next; + .@i = select("Elunium:Oridecon:Stone")-1; + if (.@i == 0) .@nice += 10; + mes "^3355FFYou have lined the"; + mes "outside of the center"; + mes "with some "+.@stone$[.@i]+".^000000"; + next; + .@i = select("Elunium:Oridecon:Stone")-1; + if (.@i == 1) .@nice += 10; + mes "^3355FFYou covered the"; + mes "rest of the materials"; + mes "with some "+.@stone$[.@i]+".^000000"; + next; + mes "^3355FFNow you need to arrange"; + mes "the enchanted Gemstones"; + mes "accordingly. You can identify"; + mes "their Magic properties by"; + mes "their casting effect.^000000"; + next; + setarray .@effect[0],56,54,225; + setarray .@color$[0],"Red","Yellow","Blue"; + while(1) { + if (.@roof0 > 7) break; + .@i = rand(3); + specialeffect .@effect[.@i]; + mes "^3355FFThe Gemstones must"; + mes "be arranged in the correct"; + mes "order according to their"; + mes "magic properties and power.^000000"; + next; + .@j = select("Red Gemstone:Yellow Gemstone:Blue Gemstone")-1; + mes "^3355FFYou placed the "+.@color$[.@j]+" Gemstone.^000000"; + if (.@i == .@j) { + mes "^3355FFHowever, the Guardian Stone"; + mes "Repair System failed because"; + mes "of a magic power conflict.^000000"; + close; + } + .@nice += 10; + ++.@roof0; + specialeffect EF_STEAL; + next; + } + if (.@nice > 90) { + if (!getd(.@var$+"["+(.@num-1)+"]")) { + mes "^3355FFThe Guardian Stone"; + mes "Repair System has"; + mes "already completed.^000000"; + close; + } + else { + if (!agitcheck2()) { + mes "^3355FFIt is impossible to"; + mes "rebuild the Guardian"; + mes "Stone because the"; + mes "Emperium is not present.^000000"; + close; + } + else { + mes "^3355FFThe Gemstones have been"; + mes "arranged, and the Guardian"; + mes "Stone is successfully repaired.^000000"; + delitem 984,1; //Oridecon + delitem 985,1; //Elunium + delitem 7049,30; //Stone + delitem 717,5; //Blue_Gemstone + delitem 715,5; //Yellow_Gemstone + delitem 716,5; //Red_Gemstone + close2; + donpcevent "df"+.@num+"#"+strnpcinfo(4)+"::OnEnable"; + specialeffect EF_ICECRASH; + disablenpc strnpcinfo(0); + setd .@var$+"["+(.@num-1)+"]",0; + .@df_all = getd(.@var$+"[0]")+getd(.@var$+"[1]"); + if (!.@df_all) { + mapannounce strnpcinfo(4),"Both Guardian Stones have been erected, bolstering this stronghold's defenses!",bc_map,"0x00ff00"; + donpcevent "RL0#"+strnpcinfo(4)+"::OnEnable"; + } + else mapannounce strnpcinfo(4),"The "+strnpcinfo(1)+" has been repaired successfully.",bc_map,"0x00ff00"; + if (getd(.@var$+"[5]") == 1) + donpcevent "gard"+.@num+"#"+strnpcinfo(4)+"::OnEnable"; + end; + } + } + } + else { + mes "^3355FFAfter all of that work..."; + mes "It looks like you failed"; + mes "to fix the Guardian Stone,"; + mes "and lost some materials.^000000"; + delitem 7049,10; //Stone + delitem 717,2; //Blue_Gemstone + delitem 715,2; //Yellow_Gemstone + delitem 716,2; //Red_Gemstone + close; + } + } + else { + mes "^3355FFYou don't have enough"; + mes "materials to repair"; + mes "the Guardian Stone.^000000"; + close; + } + } + end; + +OnInit: +OnDisable: + disablenpc strnpcinfo(0); + end; + +OnEnable: + enablenpc strnpcinfo(0); + specialeffect EF_MAPPILLAR2; + end; +} + +// Control Devices (3) +//============================================================ +- script Control#template -1,{ + .@GID = getcastledata(strnpcinfo(4),1); + .@num = atoi(charat(strnpcinfo(1),15)); + .@var$ = "$agit_"+strnpcinfo(2); + if (getcharid(2) == .@GID) { + if (strcharinfo(0) == getguildmaster(.@GID)) { + if (getd(.@var$+"["+(.@num+1)+"]") == 2) { + mes "^3355FFDemolished Fortress"; + mes "Gates can be repaired,"; + mes "but you will need to gather"; + mes "the following materials.^000000"; + next; + mes "^4D4DFF10 Steel^000000,"; + mes "^4D4DFF30 Trunks^000000,"; + mes "^4D4DFF5 Oridecon^000000, and"; + mes "^4D4DFF10 Emveretarcon^000000."; + next; + select("Continue"); + if ((countitem(1019) > 29) && (countitem(999) > 9) && (countitem(1011) > 9) && (countitem(984) > 4)) { + mes "^3355FFYou will need Trunks to"; + mes "repair the support frame,"; + mes "Oridecon to enhance the"; + mes "gate's endurance, and"; + mes "Emveretarcon to basically"; + mes "hold everything together.^000000"; + next; + .@ro_of01 = rand(10,15); + while(1) { + if (.@ro_of02 == .@ro_of01) break; + else { + switch(rand(1,4)) { + case 1: + mes "^3355FFThe support frame"; + mes "is badly damaged:"; + mes "fixing this part"; + mes "is a top priority.^000000"; + next; + switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { + case 1: + mes "^3355FFThe frame has been"; + mes "reinforced with wood.^000000"; + ++.@rp_temp; + ++.@ro_of02; + specialeffect2 EF_REPAIRWEAPON; + next; + break; + case 2: + mes "^3355FFYou tried using steel,"; + mes "but it's not working very"; + mes "well. You'll have to try"; + mes "something else.^000000"; + close; + case 3: + mes "^3355FFYou tried using emveretarcon"; + mes "to reinforce the gate, but it's"; + mes "not working well at all."; + mes "You'll have to start over.^000000"; + close; + case 4: + mes "^3355FFYou tried using oridecon,"; + mes "but it's not working very"; + mes "well. You'll have to try"; + mes "something else.^000000"; + close; + } + break; + case 2: + mes "^3355FFIt looks like the gate's"; + mes "overall endurance needs to"; + mes "be reinforced with something.^000000"; + next; + switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { + case 1: + mes "^3355FFYou tried using wood"; + mes "to reinforce the gate.^000000"; + ++.@ro_of02; + next; + break; + case 2: + mes "^3355FFYou tried using steel"; + mes "to reinforce the gate, but"; + mes "it's not working well at all."; + mes "You'll have to start over.^000000"; + close; + case 3: + mes "^3355FFYou tried using emveretarcon"; + mes "to reinforce the gate, but it's"; + mes "not working well at all."; + mes "You'll have to start over.^000000"; + close; + case 4: + mes "^3355FFYou hammered the"; + mes "oridecon: it looks"; + mes "like this will work.^000000"; + ++.@rp_temp; + ++.@ro_of02; + specialeffect2 EF_REPAIRWEAPON; + next; + break; + } + break; + case 3: + mes "^3355FFThe damage to the gate"; + mes "has caused all these"; + mes "cracks. You'll have to"; + mes "weld them solid somehow.^000000"; + next; + switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { + case 1: + mes "^3355FFYou tried using wood to fix"; + mes "this problem, but it seems"; + mes "to have made it worse."; + mes "You'll have to start all over.^000000"; + close; + case 2: + mes "^3355FFYou used steel to weld"; + mes "all the cracks: the gate is"; + mes "is starting to look more solid.^000000"; + ++.@rp_temp; + ++.@ro_of02; + specialeffect2 EF_REPAIRWEAPON; + next; + break; + case 3: + mes "^3355FFYou tried using emveretarcon"; + mes "to reinforce the gate, but it's"; + mes "not working well at all."; + mes "You'll have to start over.^000000"; + close; + case 4: + mes "^3355FFYou tried using oridecon,"; + mes "but it's not working very"; + mes "well. You'll have to try"; + mes "something else.^000000"; + close; + } + break; + case 4: + mes "^3355FFNow you need to make"; + mes "sure that the gate is held"; + mes "together pretty solidly.^000000"; + next; + switch(select("Trunk:Steel:Emveretarcon:Oridecon")) { + case 1: + mes "^3355FFYou tried using wood to fix"; + mes "this problem, but it seems"; + mes "to have made it worse."; + mes "You'll have to start all over.^000000"; + close; + case 2: + mes "^3355FFYou tried using steel,"; + mes "but it's not working very"; + mes "well. You'll have to try"; + mes "something else.^000000"; + close; + case 3: + mes "^3355FFYou successfully used"; + mes "the emveretarcon to repair"; + mes "much of the gate's damage.^000000"; + ++.@rp_temp; + ++.@ro_of02; + specialeffect2 EF_REPAIRWEAPON; + next; + break; + case 4: + mes "^3355FFYou tried using oridecon,"; + mes "but it's not working very"; + mes "well. You'll have to try"; + mes "something else.^000000"; + close; + } + } + } + } + mes "^3355FFWell, it looks like"; + mes "you're just about done"; + mes "with repairing the gate.^000000"; + next; + if (!agitcheck2()) { + mes "^3355FFUnfortunately, the Fortress"; + mes "Gate can't be reconstructed:"; + mes "the Emperium is no longer here.^000000"; + close; + } + else { + if (.@rp_temp == .@ro_of01) { + mes "^3355FFThe Fortress Gate has"; + mes "been successfully repaired!^000000"; + delitem 1019,30; //Wooden_Block + delitem 999,10; //Steel + delitem 1011,10; //Emveretarcon + delitem 984,5; //Oridecon + close2; + donpcevent "RL"+.@num+"#"+strnpcinfo(4)+"::OnEnable"; + disablenpc strnpcinfo(0); + if (.@num == 1) .@str$ = "1st"; + else if (.@num == 2) .@str$ = "2nd"; + else if (.@num == 3) .@str$ = "3rd"; + mapannounce strnpcinfo(4),"The "+.@str$+" Fortress Gate has been reconstructed!",bc_map,"0x00ff00"; + if (.@num == 1) setd .@var$+"[2]",0; + else { + setarray getd(.@var$+"["+.@num+"]"),2,0; + donpcevent "Control Device0"+(.@num-1)+"#"+strnpcinfo(2)+"::OnEnable"; + } + end; + } + else { + mes "^3355FFThe wall has been breached,"; + mes "and the attempt to repair the"; + mes "Fortress Gate has failed."; + mes "You lost some of your"; + mes "repair resources...^000000"; + delitem 984,2; //Oridecon + delitem 999,4; //Steel + delitem 1019,14; //Wooden_Block + delitem 1011,3; //Emveretarcon + close; + } + } + } + else { + mes "^3355FFYou can't attempt to repair"; + mes "the Fortress Gate if you don't"; + mes "have all the needed materials.^000000"; + close; + } + } + } + } + end; + +OnInit: +OnDisable: + disablenpc strnpcinfo(0); + end; + +OnEnable: + enablenpc strnpcinfo(0); + end; +} + +// Guardian Summoners (2) +//============================================================ +- script gard#template -1,{ +OnEnable: + // .@x[i],.@y[i]: Normal coordinates, #0-21. + // .@w[x],.@w[y]: Special coordinates if 'defence' is under 11. + if (compare(strnpcinfo(2),"arug")) { + if (strnpcinfo(2) == "arug_cas01") { + setarray .@w[0],195,250,292,188; + setarray .x[0],233,252,232,201,224,196,269,252,201,224,222, 294,256,240,246,235,235,246,240,256,254,242; + setarray .y[0], 83, 81,108,130,168,137, 89, 81,130,168,129, 210,203,133, 92,132,132, 92,133,203, 95,151; + } + else if (strnpcinfo(2) == "arug_cas02") { + setarray .@w[0],20,169,268,169; + setarray .x[0],104,67,67,113,122,67, 90, 91,122, 20,67, 175,204,211,209,161,186,183,150,161,209,211; + setarray .y[0], 32,36,85, 87,112,60,167,119,112,169,85, 31, 32, 63, 88, 91,170,121,110, 91, 88, 63; + } + else { // Castles 3,4,5 are identical. + setarray .@w[0],66,157,211,159; + setarray .x[0],130,128,128,128,110,91,65, 65,110,128,128, 156,172,154,156,155,187,212,211,155,156,172; + setarray .y[0], 60, 77, 90,100, 96,53,71,103, 96,100, 77, 101, 95, 90, 77, 60, 54, 67,105, 60, 77, 95; + } + } + else { + if (strnpcinfo(2) == "schg_cas02") { + setarray .@w[0],337,95,307,222; + setarray .x[0],326,337,334,296,285,236,285,296,334,337,334, 359,300,337,317,307,300,337,317,307,359,236; + setarray .y[0], 83, 95,119, 82, 40, 41, 40, 82,119, 95,119, 85,119,154,183,222,119,154,183,222, 85, 41; + } + else if (strnpcinfo(2) == "schg_cas03") { + setarray .@w[0],306,325,364,305; + setarray .x[0],323,273,288,306,323,323,273,288,306,273,273, 338,364,365,317,338,338,364,365,317,364,329; + setarray .y[0],308,309,306,326,308,308,309,306,325,309,309, 309,305,261,318,310,309,305,261,318,305,314; + } + else { // Castles 1,4,5 are identical. + setarray .@w[0],108,32,128,42,187,15; // Contains an extra pair, for whatever reason. + setarray .x[0],111,109,65,110,88,64,47,109,111,112,120, 130,129,151,187,128,152,187,128,130,130,151; + setarray .y[0], 18, 44,22, 40,20,40,43, 48, 18, 32, 37, 22, 47, 18, 15, 42, 43, 15, 42, 22, 28, 18; + } + } + if (charat(strnpcinfo(1),4) == "2") + .@z = 11; + freeloop(1); + .@defence = getcastledata(strnpcinfo(2),3); + callsub OnSummon,.@z; + if (.@defence > 70) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),5; + else if (.@defence > 50) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),4; + else if (.@defence > 30) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),3; + else if (.@defence > 10) set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),2; + if (.@w[4] && .@z) + guardian strnpcinfo(2),.@w[4],.@w[5],"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied"; + else if (.@defence < 11) { + set getd(".MyMobCount_"+charat(strnpcinfo(1),4)+strnpcinfo(2)),2; + .@i = (.@z)?2:0; + guardian strnpcinfo(2),.@w[.@i],.@w[.@i+1],"Guardian Soldier",1899,strnpcinfo(0)+"::OnGuardianDied"; + } + else for(.@i = 1; .@i=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; +} diff --git a/npc/woe-se/arug_cas01.txt b/npc/woe-se/arug_cas01.txt new file mode 100644 index 000000000..be190c77f --- /dev/null +++ b/npc/woe-se/arug_cas01.txt @@ -0,0 +1,75 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Mardol +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#arug_cas01 -1 +- duplicate(gard#template) gard1#arug_cas01 -1 +- duplicate(gard#template) gard2#arug_cas01 -1 +- duplicate(df#template) df1#arug_cas01 -1 +- duplicate(df#template) df2#arug_cas01 -1 +- duplicate(RL#template) RL0#arug_cas01 -1 +- duplicate(RL#template) RL1#arug_cas01 -1 +- duplicate(RL#template) RL2#arug_cas01 -1 +- duplicate(RL#template) RL3#arug_cas01 -1 + +arug_cas01,92,380,3 duplicate(Steward#template) Steward#ar01 1_M_JOBTESTER +arug_cas01,112,193,1 duplicate(Guardian#template) Brace#ar01 4_M_LGTGUARD +arug_cas01,31,362,3 duplicate(Kafra#template) Kafra Employee#ar01 4_F_KAFRA1 +arug_cas01,211,234,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar01 CLEAR_NPC +arug_cas01,308,189,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar01 CLEAR_NPC +arug_cas01,247,52,0 duplicate(Control#template) Control Device01#ar01 HIDDEN_NPC +arug_cas01,118,131,0 duplicate(Control#template) Control Device02#ar01 HIDDEN_NPC +arug_cas01,82,172,0 duplicate(Control#template) Control Device03#ar01 HIDDEN_NPC +arug_cas01,259,371,0 duplicate(Switch#template) #aru01_switch HIDDEN_NPC +arug_cas01,157,345,3 duplicate(Sunflower#template) Mysterious Sunflower#06 4_RED_FLOWER + +arug_cas01,74,232,0 script LF-01#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",158,237,"Second Gate House",297,248; } +arug_cas01,77,232,0 script LF-02#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",197,144,"Defense Area 1-2",245,103; } +arug_cas01,80,232,0 script LF-03#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",256,35,"Defense Area 2-2",186,26; } +arug_cas01,83,232,0 script LF-04#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",146,65,"Defense Area 2-4",176,111; } +arug_cas01,86,232,0 script LF-05#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",94,126,"Defense Area 3-2",126,126; } +arug_cas01,89,232,0 script LF-06#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-3",68,171,"Defense Area 3-4",105,182; } +arug_cas01,92,232,0 script LF-07#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Gate House Fork",233,130; } +arug_cas01,95,232,0 script LF-08#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",197,144,"Area 2-1",256,35,"Area 3-1",146,65; } +arug_cas01,98,232,0 script LF-09#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",245,103,"Area 2-2",186,26,"Area 3-3",68,171; } +arug_cas01,101,232,0 script LF-10#arug_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",121,357; } +arug_cas01,72,176,0 script Mardol#LF_ar01_1::LF_ar01_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",67,193; } +arug_cas01,103,186,0 duplicate(LF_ar01_1) Mardol#LF_ar01_2 HIDDEN_NPC +arug_cas01,92,126,4 script Mardol#LF_ar01_3::LF_ar01_2 HIDDEN_NPC,{ + callfunc "LinkFlag","Emperium Center",67,193; + end; +OnAgitInit2: +OnRecvCastleAr01: + flagemblem getcastledata("arug_cas01",1); + end; +} +arug_cas01,127,126,4 duplicate(LF_ar01_2) Mardol#LF_ar01_3 HIDDEN_NPC +arug_cas01,150,102,0 duplicate(LF_ar01_1) Mardol#LF_ar01_4 HIDDEN_NPC +arug_cas01,208,68,0 duplicate(LF_ar01_1) Mardol#LF_ar01_5 HIDDEN_NPC +arug_cas01,249,52,0 duplicate(LF_ar01_1) Mardol#LF_ar01_6 HIDDEN_NPC +arug_cas01,234,76,0 duplicate(LF_ar01_1) Mardol#LF_ar01_7 HIDDEN_NPC +arug_cas01,249,76,0 duplicate(LF_ar01_1) Mardol#LF_ar01_8 HIDDEN_NPC +arug_cas01,204,142,0 duplicate(LF_ar01_1) Mardol#LF_ar01_9 HIDDEN_NPC +arug_cas01,183,244,0 duplicate(LF_ar01_1) Mardol#LF_ar01_10 HIDDEN_NPC +arug_cas01,292,219,0 duplicate(LF_ar01_1) Mardol#LF_ar01_11 HIDDEN_NPC +arug_cas01,102,120,4 duplicate(LF_ar01_2) Mardol#LF_ar01_12 GUILD_FLAG +arug_cas01,117,120,4 duplicate(LF_ar01_2) Mardol#LF_ar01_13 GUILD_FLAG +arug_cas01,233,140,4 duplicate(LF_ar01_2) Mardol#LF_ar01_14 GUILD_FLAG + +aru_gld,164,270,4 script Mardol#flag_Ar01_1::Ar01_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas01",1; + end; +OnAgitInit2: +OnRecvCastleAr01: + flagemblem getcastledata("arug_cas01",1); + end; +} +aru_gld,142,235,4 duplicate(Ar01_Flag) Mardol#flag_Ar01_2 GUILD_FLAG +aru_gld,164,245,5 duplicate(Ar01_Flag) Mardol#flag_Ar01_3 GUILD_FLAG +aru_gld,182,255,5 duplicate(Ar01_Flag) Mardol#flag_Ar01_4 GUILD_FLAG diff --git a/npc/woe-se/arug_cas02.txt b/npc/woe-se/arug_cas02.txt new file mode 100644 index 000000000..bf7f639eb --- /dev/null +++ b/npc/woe-se/arug_cas02.txt @@ -0,0 +1,80 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Cyr +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#arug_cas02 -1 +- duplicate(gard#template) gard1#arug_cas02 -1 +- duplicate(gard#template) gard2#arug_cas02 -1 +- duplicate(df#template) df1#arug_cas02 -1 +- duplicate(df#template) df2#arug_cas02 -1 +- duplicate(RL#template) RL0#arug_cas02 -1 +- duplicate(RL#template) RL1#arug_cas02 -1 +- duplicate(RL#template) RL2#arug_cas02 -1 +- duplicate(RL#template) RL3#arug_cas02 -1 + +arug_cas02,303,341,3 duplicate(Steward#template) Steward#ar02 1_M_JOBTESTER +arug_cas02,38,259,5 duplicate(Guardian#template) Yumenes#ar02 4_M_LGTGUARD +arug_cas02,354,326,3 duplicate(Kafra#template) Kafra Employee#ar02 4_F_KAFRA1 +arug_cas02,33,168,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar02 CLEAR_NPC +arug_cas02,245,168,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar02 CLEAR_NPC +arug_cas02,143,228,0 duplicate(Control#template) Control Device01#ar02 HIDDEN_NPC +arug_cas02,118,356,0 duplicate(Control#template) Control Device02#ar02 HIDDEN_NPC +arug_cas02,56,308,0 duplicate(Control#template) Control Device03#ar02 HIDDEN_NPC +arug_cas02,386,227,0 duplicate(Switch#template) #aru02_switch HIDDEN_NPC +arug_cas02,350,294,3 duplicate(Sunflower#template) Mysterious Sunflower#07 4_RED_FLOWER + +arug_cas02,98,270,0 script LF-01#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",10,187,"Second Gate House",268,187; } +arug_cas02,98,266,0 script LF-02#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",66,31,"Defense Area 1-2",212,31; } +arug_cas02,98,262,0 script LF-03#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",90,120,"Defense Area 1-4",188,119; } +arug_cas02,98,258,0 script LF-04#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",119,183,"Defense Area 2-2",159,183; } +arug_cas02,98,253,0 script LF-05#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",156,324,"Defense Area 2-4",174,372; } +arug_cas02,98,249,0 script LF-06#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",28,325,"Defense Area 3-2",57,325; } +arug_cas02,98,245,0 script LF-07#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Center 2nd Area",156,263,"Center 3rd Area",43,354; } +arug_cas02,98,241,0 script LF-08#arug_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",387,323; } +arug_cas02,216,92,0 script Cyr#LF_ar02_1::LF_ar02_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",43,256; } +arug_cas02,63,92,0 duplicate(LF_ar02_1) Cyr#LF_ar02_2 HIDDEN_NPC +arug_cas02,127,133,4 duplicate(LF_ar02_1) Cyr#LF_ar02_3 HIDDEN_NPC +arug_cas02,152,133,4 duplicate(LF_ar02_1) Cyr#LF_ar02_4 HIDDEN_NPC +arug_cas02,149,218,0 duplicate(LF_ar02_1) Cyr#LF_ar02_5 HIDDEN_NPC +arug_cas02,162,218,0 duplicate(LF_ar02_1) Cyr#LF_ar02_6 HIDDEN_NPC +arug_cas02,128,350,0 duplicate(LF_ar02_1) Cyr#LF_ar02_7 HIDDEN_NPC +arug_cas02,128,341,0 duplicate(LF_ar02_1) Cyr#LF_ar02_8 HIDDEN_NPC +arug_cas02,49,317,0 duplicate(LF_ar02_1) Cyr#LF_ar02_9 HIDDEN_NPC +arug_cas02,30,317,0 duplicate(LF_ar02_1) Cyr#LF_ar02_10 HIDDEN_NPC +arug_cas02,9,190,0 duplicate(LF_ar02_1) Cyr#LF_ar02_11 HIDDEN_NPC +arug_cas02,271,190,0 duplicate(LF_ar02_1) Cyr#LF_ar02_12 HIDDEN_NPC +arug_cas02,129,178,4 script Cyr#LF_ar02_13::LF_ar02_2 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",43,256; + end; +OnAgitInit2: +OnRecvCastleAr02: + flagemblem getcastledata("arug_cas02",1); + end; +} +arug_cas02,149,178,4 duplicate(LF_ar02_2) Cyr#LF_ar02_14 GUILD_FLAG +arug_cas02,132,38,4 duplicate(LF_ar02_2) Cyr#LF_ar02_15 GUILD_FLAG +arug_cas02,147,38,4 duplicate(LF_ar02_2) Cyr#LF_ar02_16 GUILD_FLAG + +aru_gld,80,41,6 script Cyr#flag_Ar02_1::Ar02_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas02",1; + end; +OnAgitInit2: +OnRecvCastleAr02: + flagemblem getcastledata("arug_cas02",1); + end; +} +aru_gld,80,52,6 duplicate(Ar02_Flag) Cyr#flag_Ar02_2 GUILD_FLAG +aru_gld,120,83,5 script Cyr#flag_Ar02_3 GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas02",0; + end; +OnAgitInit2: +OnRecvCastleAr02: + flagemblem getcastledata("arug_cas02",1); + end; +} diff --git a/npc/woe-se/arug_cas03.txt b/npc/woe-se/arug_cas03.txt new file mode 100644 index 000000000..0a1665566 --- /dev/null +++ b/npc/woe-se/arug_cas03.txt @@ -0,0 +1,72 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Horn +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#arug_cas03 -1 +- duplicate(gard#template) gard1#arug_cas03 -1 +- duplicate(gard#template) gard2#arug_cas03 -1 +- duplicate(df#template) df1#arug_cas03 -1 +- duplicate(df#template) df2#arug_cas03 -1 +- duplicate(RL#template) RL0#arug_cas03 -1 +- duplicate(RL#template) RL1#arug_cas03 -1 +- duplicate(RL#template) RL2#arug_cas03 -1 +- duplicate(RL#template) RL3#arug_cas03 -1 + +arug_cas03,328,98,3 duplicate(Steward#template) Steward#ar03 1_M_JOBTESTER +arug_cas03,146,315,3 duplicate(Guardian#template) Yehsus#ar03 4_M_LGTGUARD +arug_cas03,315,98,5 duplicate(Kafra#template) Kafra Employee#ar03 4_F_KAFRA1 +arug_cas03,65,171,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar03 CLEAR_NPC +arug_cas03,212,149,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar03 CLEAR_NPC +arug_cas03,136,158,0 duplicate(Control#template) Control Device01#ar03 HIDDEN_NPC +arug_cas03,135,212,0 duplicate(Control#template) Control Device02#ar03 HIDDEN_NPC +arug_cas03,134,266,0 duplicate(Control#template) Control Device03#ar03 HIDDEN_NPC +arug_cas03,299,277,0 duplicate(Switch#template) #aru03_switch HIDDEN_NPC +arug_cas03,312,154,3 duplicate(Sunflower#template) Mysterious Sunflower#08 4_RED_FLOWER + +arug_cas03,122,314,0 script LF-01#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",84,158,"Second Gate House",197,136; } +arug_cas03,125,314,0 script LF-02#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 1-2",211,97; } +arug_cas03,128,314,0 script LF-03#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",112,73,"Defense Area 1-4",171,73; } +arug_cas03,131,314,0 script LF-04#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",112,152,"Defense Area 2-2",172,152; } +arug_cas03,134,314,0 script LF-05#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",120,186,"Defense Area 2-4",162,186; } +arug_cas03,149,314,0 script LF-06#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",116,235,"Defense Area 3-2",164,235; } +arug_cas03,152,314,0 script LF-07#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 2-1",112,152,"Defense Area 3-1",116,235; } +arug_cas03,155,314,0 script LF-08#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-2",211,97,"Defense Area 2-2",172,152,"Defense Area 3-2",164,235; } +arug_cas03,158,314,0 script LF-09#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-4",171,73,"Defense Area 2-4",162,186; } +arug_cas03,161,314,0 script LF-10#arug_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",321,57; } +arug_cas03,45,158,0 script Horn#LF_ar03_01::LF_ar03_01 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",121,318; } +arug_cas03,226,156,0 duplicate(LF_ar03_01) Horn#LF_ar03_01 HIDDEN_NPC +arug_cas03,134,62,4 duplicate(LF_ar03_01) Horn#LF_ar03_02 HIDDEN_NPC +arug_cas03,149,62,4 duplicate(LF_ar03_01) Horn#LF_ar03_03 HIDDEN_NPC +arug_cas03,123,154,0 duplicate(LF_ar03_01) Horn#LF_ar03_04 HIDDEN_NPC +arug_cas03,160,154,0 duplicate(LF_ar03_01) Horn#LF_ar03_05 HIDDEN_NPC +arug_cas03,135,205,0 duplicate(LF_ar03_01) Horn#LF_ar03_06 HIDDEN_NPC +arug_cas03,148,205,0 duplicate(LF_ar03_01) Horn#LF_ar03_07 HIDDEN_NPC +arug_cas03,134,260,0 duplicate(LF_ar03_01) Horn#LF_ar03_08 HIDDEN_NPC +//arug_cas03,204,142,0 duplicate(LF_ar03_01) Horn#LF_ar03_09 HIDDEN_NPC +arug_cas03,148,103,4 script Horn#LF_ar03_10::LF_ar03_02 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",121,318; + end; +OnAgitInit2: +OnRecvCastleAr03: + flagemblem getcastledata("arug_cas03",1); + end; +} +arug_cas03,135,103,4 duplicate(LF_ar03_02) Horn#LF_ar03_11 GUILD_FLAG +arug_cas03,63,51,7 duplicate(LF_ar03_02) Horn#LF_ar03_12 GUILD_FLAG +arug_cas03,214,51,1 duplicate(LF_ar03_02) Horn#LF_ar03_13 GUILD_FLAG + +aru_gld,60,174,0 script Horn#flag_Ar03_1::Ar03_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas03",1; + end; +OnAgitInit2: +OnRecvCastleAr03: + flagemblem getcastledata("arug_cas03",1); + end; +} +aru_gld,74,174,0 duplicate(Ar03_Flag) Horn#flag_Ar03_2 GUILD_FLAG diff --git a/npc/woe-se/arug_cas04.txt b/npc/woe-se/arug_cas04.txt new file mode 100644 index 000000000..e6d734684 --- /dev/null +++ b/npc/woe-se/arug_cas04.txt @@ -0,0 +1,81 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Gefn +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#arug_cas04 -1 +- duplicate(gard#template) gard1#arug_cas04 -1 +- duplicate(gard#template) gard2#arug_cas04 -1 +- duplicate(df#template) df1#arug_cas04 -1 +- duplicate(df#template) df2#arug_cas04 -1 +- duplicate(RL#template) RL0#arug_cas04 -1 +- duplicate(RL#template) RL1#arug_cas04 -1 +- duplicate(RL#template) RL2#arug_cas04 -1 +- duplicate(RL#template) RL3#arug_cas04 -1 + +arug_cas04,328,98,3 duplicate(Steward#template) Steward#ar04 1_M_JOBTESTER +arug_cas04,146,315,3 duplicate(Guardian#template) Nios#ar04 4_M_LGTGUARD +arug_cas04,315,98,5 duplicate(Kafra#template) Kafra Employee#ar04 4_F_KAFRA1 +arug_cas04,65,171,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar04 CLEAR_NPC +arug_cas04,212,149,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar04 CLEAR_NPC +arug_cas04,136,158,0 duplicate(Control#template) Control Device01#ar04 HIDDEN_NPC +arug_cas04,135,212,0 duplicate(Control#template) Control Device02#ar04 HIDDEN_NPC +arug_cas04,134,266,0 duplicate(Control#template) Control Device03#ar04 HIDDEN_NPC +arug_cas04,299,277,0 duplicate(Switch#template) #aru04_switch HIDDEN_NPC +arug_cas04,312,154,3 duplicate(Sunflower#template) Mysterious Sunflower#09 4_RED_FLOWER + +arug_cas04,122,314,0 script LF-01#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",84,158,"Second Gate House",197,136; } +arug_cas04,125,314,0 script LF-02#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 1-2",211,97; } +arug_cas04,128,314,0 script LF-03#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",112,73,"Defense Area 1-4",171,73; } +arug_cas04,131,314,0 script LF-04#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",112,152,"Defense Area 2-2",172,152; } +arug_cas04,134,314,0 script LF-05#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",120,186,"Defense Area 2-4",162,186; } +arug_cas04,149,314,0 script LF-06#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",116,235,"Defense Area 3-2",164,235; } +arug_cas04,152,314,0 script LF-07#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 2-1",112,152,"Defense Area 3-1",116,235; } +arug_cas04,155,314,0 script LF-08#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-2",211,97,"Defense Area 2-2",172,152,"Defense Area 3-2",164,235; } +arug_cas04,158,314,0 script LF-09#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-4",171,73,"Defense Area 2-4",162,186; } +arug_cas04,161,314,0 script LF-10#arug_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",321,57; } +arug_cas04,45,158,0 script Gefn#LF_ar04_01::LF_ar04_01 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",121,318; } +arug_cas04,226,156,0 duplicate(LF_ar04_01) Gefn#LF_ar04_01 HIDDEN_NPC +arug_cas04,134,62,4 duplicate(LF_ar04_01) Gefn#LF_ar04_02 HIDDEN_NPC +arug_cas04,149,62,4 duplicate(LF_ar04_01) Gefn#LF_ar04_03 HIDDEN_NPC +arug_cas04,123,154,0 duplicate(LF_ar04_01) Gefn#LF_ar04_04 HIDDEN_NPC +arug_cas04,160,154,0 duplicate(LF_ar04_01) Gefn#LF_ar04_05 HIDDEN_NPC +arug_cas04,135,205,0 duplicate(LF_ar04_01) Gefn#LF_ar04_06 HIDDEN_NPC +arug_cas04,148,205,0 duplicate(LF_ar04_01) Gefn#LF_ar04_07 HIDDEN_NPC +arug_cas04,134,260,0 duplicate(LF_ar04_01) Gefn#LF_ar04_08 HIDDEN_NPC +//arug_cas04,204,142,0 duplicate(LF_ar04_01) Gefn#LF_ar04_09 HIDDEN_NPC +arug_cas04,148,103,4 script Gefn#LF_ar04_10::LF_ar04_02 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",121,318; + end; +OnAgitInit2: +OnRecvCastleAr04: + flagemblem getcastledata("arug_cas04",1); + end; +} +arug_cas04,135,103,4 duplicate(LF_ar04_02) Gefn#LF_ar04_11 GUILD_FLAG +arug_cas04,63,51,7 duplicate(LF_ar04_02) Gefn#LF_ar04_12 GUILD_FLAG +arug_cas04,214,51,1 duplicate(LF_ar04_02) Gefn#LF_ar04_13 GUILD_FLAG + +aru_gld,306,359,6 script Gefn#flag_ar04_1::ar04_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas04",1; + end; +OnAgitInit2: +OnRecvCastleAr04: + flagemblem getcastledata("arug_cas04",1); + end; +} +aru_gld,306,348,6 duplicate(ar04_Flag) Gefn#flag_ar04_2 GUILD_FLAG +aru_gld,301,318,4 script Gefn#flag_ar04_3::ar04_Flag2 GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas04",0; + end; +OnAgitInit2: +OnRecvCastleAr04: + flagemblem getcastledata("arug_cas04",1); + end; +} +aru_gld,313,318,4 duplicate(ar04_Flag2) Gefn#flag_ar04_4 GUILD_FLAG diff --git a/npc/woe-se/arug_cas05.txt b/npc/woe-se/arug_cas05.txt new file mode 100644 index 000000000..e4848b346 --- /dev/null +++ b/npc/woe-se/arug_cas05.txt @@ -0,0 +1,81 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Banadis +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#arug_cas05 -1 +- duplicate(gard#template) gard1#arug_cas05 -1 +- duplicate(gard#template) gard2#arug_cas05 -1 +- duplicate(df#template) df1#arug_cas05 -1 +- duplicate(df#template) df2#arug_cas05 -1 +- duplicate(RL#template) RL0#arug_cas05 -1 +- duplicate(RL#template) RL1#arug_cas05 -1 +- duplicate(RL#template) RL2#arug_cas05 -1 +- duplicate(RL#template) RL3#arug_cas05 -1 + +arug_cas05,328,98,3 duplicate(Steward#template) Steward#ar05 1_M_JOBTESTER +arug_cas05,146,315,3 duplicate(Guardian#template) Eeos#ar05 4_M_LGTGUARD +arug_cas05,315,98,5 duplicate(Kafra#template) Kafra Employee#ar05 4_F_KAFRA1 +arug_cas05,65,171,0 duplicate(Guardian Stone#template) 1st Guardian Stone#ar05 CLEAR_NPC +arug_cas05,212,149,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#ar05 CLEAR_NPC +arug_cas05,136,158,0 duplicate(Control#template) Control Device01#ar05 HIDDEN_NPC +arug_cas05,135,212,0 duplicate(Control#template) Control Device02#ar05 HIDDEN_NPC +arug_cas05,134,266,0 duplicate(Control#template) Control Device03#ar05 HIDDEN_NPC +arug_cas05,299,277,0 duplicate(Switch#template) #aru05_switch HIDDEN_NPC +arug_cas05,312,154,3 duplicate(Sunflower#template) Mysterious Sunflower#10 4_RED_FLOWER + +arug_cas05,122,314,0 script LF-01#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",84,158,"Second Gate House",197,136; } +arug_cas05,125,314,0 script LF-02#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 1-2",211,97; } +arug_cas05,128,314,0 script LF-03#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-3",112,73,"Defense Area 1-4",171,73; } +arug_cas05,131,314,0 script LF-04#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",112,152,"Defense Area 2-2",172,152; } +arug_cas05,134,314,0 script LF-05#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",120,186,"Defense Area 2-4",162,186; } +arug_cas05,149,314,0 script LF-06#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",116,235,"Defense Area 3-2",164,235; } +arug_cas05,152,314,0 script LF-07#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",65,94,"Defense Area 2-1",112,152,"Defense Area 3-1",116,235; } +arug_cas05,155,314,0 script LF-08#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-2",211,97,"Defense Area 2-2",172,152,"Defense Area 3-2",164,235; } +arug_cas05,158,314,0 script LF-09#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-4",171,73,"Defense Area 2-4",162,186; } +arug_cas05,161,314,0 script LF-10#arug_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",321,57; } +arug_cas05,45,158,0 script Banadis#LF_ar05_01::LF_ar05_01 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",121,318; } +arug_cas05,226,156,0 duplicate(LF_ar05_01) Banadis#LF_ar05_01 HIDDEN_NPC +arug_cas05,134,62,4 duplicate(LF_ar05_01) Banadis#LF_ar05_02 HIDDEN_NPC +arug_cas05,149,62,4 duplicate(LF_ar05_01) Banadis#LF_ar05_03 HIDDEN_NPC +arug_cas05,123,154,0 duplicate(LF_ar05_01) Banadis#LF_ar05_04 HIDDEN_NPC +arug_cas05,160,154,0 duplicate(LF_ar05_01) Banadis#LF_ar05_05 HIDDEN_NPC +arug_cas05,135,205,0 duplicate(LF_ar05_01) Banadis#LF_ar05_06 HIDDEN_NPC +arug_cas05,148,205,0 duplicate(LF_ar05_01) Banadis#LF_ar05_07 HIDDEN_NPC +arug_cas05,134,260,0 duplicate(LF_ar05_01) Banadis#LF_ar05_08 HIDDEN_NPC +//arug_cas05,204,142,0 duplicate(LF_ar05_01) Banadis#LF_ar05_09 HIDDEN_NPC +arug_cas05,148,103,4 script Banadis#LF_ar05_10::LF_ar05_02 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",121,318; + end; +OnAgitInit2: +OnRecvCastleAr05: + flagemblem getcastledata("arug_cas05",1); + end; +} +arug_cas05,135,103,4 duplicate(LF_ar05_02) Banadis#LF_ar05_11 GUILD_FLAG +arug_cas05,63,51,7 duplicate(LF_ar05_02) Banadis#LF_ar05_12 GUILD_FLAG +arug_cas05,214,51,1 duplicate(LF_ar05_02) Banadis#LF_ar05_13 GUILD_FLAG + +aru_gld,289,103,6 script Banadis#flag_ar05_1::ar05_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas05",1; + end; +OnAgitInit2: +OnRecvCastleAr05: + flagemblem getcastledata("arug_cas05",1); + end; +} +aru_gld,289,112,6 duplicate(ar05_Flag) Banadis#flag_ar05_2 GUILD_FLAG +aru_gld,350,98,6 script Banadis#flag_ar05_3::ar05_Flag2 GUILD_FLAG,{ + callfunc "ReturnFlag","arug_cas05",0; + end; +OnAgitInit2: +OnRecvCastleAr05: + flagemblem getcastledata("arug_cas05",1); + end; +} +aru_gld,350,88,6 duplicate(ar05_Flag2) Banadis#flag_ar05_4 GUILD_FLAG diff --git a/npc/woe-se/guild_flags.txt b/npc/woe-se/guild_flags.txt new file mode 100644 index 000000000..bfbca227d --- /dev/null +++ b/npc/woe-se/guild_flags.txt @@ -0,0 +1,103 @@ +//===== Hercules Script ====================================== +//= War of Emperium Second Edition +//===== By: ================================================== +//= L0ne_W0lf +//===== Current Version: ===================================== +//= 1.0 +//===== Description: ========================================= +//= WoE SE Guild Flags in Juno and Rachel +//===== Additional Comments: ================================= +//= 1.0 First Version [L0ne_W0lf] +//============================================================ + +// Juno +yuno,109,167,5 script Himinn GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleSc01: + flagemblem getcastledata("schg_cas01",1); + end; +} + +yuno,110,171,5 script Andlangr GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleSc02: + flagemblem getcastledata("schg_cas02",1); + end; +} + +yuno,111,175,5 script Viblainn GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleSc03: + flagemblem getcastledata("schg_cas03",1); + end; +} + +yuno,112,179,5 script Hljod GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleSc04: + flagemblem getcastledata("schg_cas04",1); + end; +} + +yuno,114,183,5 script Skidbladnir GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleSc05: + flagemblem getcastledata("schg_cas05",1); + end; +} + +// Arunafeltz +rachel,124,120,3 script Mardol GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleAr01: + flagemblem getcastledata("arug_cas01",1); + end; +} + +rachel,136,120,5 script Cyr GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleAr02: + flagemblem getcastledata("arug_cas02",1); + end; +} + +rachel,138,126,6 script Horn GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleAr03: + flagemblem getcastledata("arug_cas03",1); + end; +} + +rachel,135,131,7 script Gefn GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleAr04: + flagemblem getcastledata("arug_cas04",1); + end; +} + +rachel,124,130,1 script Banadis GUILD_FLAG,{ + end; + +OnAgitInit2: +OnRecvCastleAr05: + flagemblem getcastledata("arug_cas05",1); + end; +} diff --git a/npc/woe-se/schg_cas01.txt b/npc/woe-se/schg_cas01.txt new file mode 100644 index 000000000..ba9da886b --- /dev/null +++ b/npc/woe-se/schg_cas01.txt @@ -0,0 +1,72 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Himinn +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#schg_cas01 -1 +- duplicate(gard#template) gard1#schg_cas01 -1 +- duplicate(gard#template) gard2#schg_cas01 -1 +- duplicate(df#template) df1#schg_cas01 -1 +- duplicate(df#template) df2#schg_cas01 -1 +- duplicate(RL#template) RL0#schg_cas01 -1 +- duplicate(RL#template) RL1#schg_cas01 -1 +- duplicate(RL#template) RL2#schg_cas01 -1 +- duplicate(RL#template) RL3#schg_cas01 -1 + +schg_cas01,247,305,3 duplicate(Steward#template) Steward#sc01 1_M_JOBTESTER +schg_cas01,123,306,3 duplicate(Guardian#template) Ef#sc01 4_M_LGTGUARD +schg_cas01,300,287,5 duplicate(Kafra#template) Kafra Employee#sc01 4_F_KAFRA1 +schg_cas01,27,36,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc01 CLEAR_NPC +schg_cas01,208,75,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc01 CLEAR_NPC +schg_cas01,124,52,0 duplicate(Control#template) Control Device01#sc01 HIDDEN_NPC +schg_cas01,128,157,0 duplicate(Control#template) Control Device02#sc01 HIDDEN_NPC +schg_cas01,109,247,0 duplicate(Control#template) Control Device03#sc01 HIDDEN_NPC +schg_cas01,391,391,0 duplicate(Switch#template) #sch01_switch HIDDEN_NPC +schg_cas01,280,391,3 duplicate(Sunflower#template) Mysterious Sunflower#01 4_BLUE_FLOWER + +schg_cas01,106,302,0 script LF-01#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",19,26,"Second Gate House",219,90; } +schg_cas01,109,302,0 script LF-02#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",89,43,"Defense Area 1-2",141,45; } +schg_cas01,112,302,0 script LF-03#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",137,54,"Defense Area 2-2",102,54; } +schg_cas01,115,302,0 script LF-04#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",94,147,"Defense Area 2-4",163,140; } +schg_cas01,118,302,0 script LF-05#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",87,220,"Defense Area 2-4",151,220; } +schg_cas01,121,302,0 script LF-06#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",100,242,"Defense Area 3-2",136,242; } +schg_cas01,124,302,0 script LF-07#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",120,168,"Center 2 Area",119,211; } +schg_cas01,127,302,0 script LF-08#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",89,43,"Area 2-1",94,147,"Area 3-1",100,242; } +schg_cas01,130,302,0 script LF-09#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",141,45,"Area 2-3",163,140,"Area 3-2",136,243; } +schg_cas01,133,302,0 script LF-10#schg_cas01 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",275,244; } +schg_cas01,17,45,0 script Himinn#LF_sc01_1::LF_sc01_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",120,290; } +schg_cas01,207,95,0 duplicate(LF_sc01_1) Himinn#LF_sc01_2 HIDDEN_NPC +schg_cas01,111,46,4 script Himinn#LF_sc01_3::LF_sc01_2 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",120,290; + end; +OnAgitInit2: +OnRecvCastleSc01: + flagemblem getcastledata("schg_cas01",1); + end; +} +schg_cas01,129,46,4 duplicate(LF_sc01_2) Himinn#LF_sc01_4 GUILD_FLAG +schg_cas01,99,77,0 duplicate(LF_sc01_1) Himinn#LF_sc01_5 HIDDEN_NPC +schg_cas01,140,77,0 duplicate(LF_sc01_1) Himinn#LF_sc01_6 HIDDEN_NPC +schg_cas01,109,150,4 duplicate(LF_sc01_2) Himinn#LF_sc01_7 GUILD_FLAG +schg_cas01,130,150,4 duplicate(LF_sc01_2) Himinn#LF_sc01_8 GUILD_FLAG +schg_cas01,112,212,0 duplicate(LF_sc01_1) Himinn#LF_sc01_9 HIDDEN_NPC +schg_cas01,127,212,0 duplicate(LF_sc01_1) Himinn#LF_sc01_10 HIDDEN_NPC +schg_cas01,113,238,0 duplicate(LF_sc01_1) Himinn#LF_sc01_11 HIDDEN_NPC +schg_cas01,126,238,0 duplicate(LF_sc01_1) Himinn#LF_sc01_12 HIDDEN_NPC +schg_cas01,95,247,0 duplicate(LF_sc01_1) Himinn#LF_sc01_13 HIDDEN_NPC +schg_cas01,144,247,0 duplicate(LF_sc01_1) Himinn#LF_sc01_14 HIDDEN_NPC + +sch_gld,290,90,0 script Himinn#flag_sc01_1::Sc01_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","schg_cas01",1; + end; +OnAgitInit2: +OnRecvCastleSc01: + flagemblem getcastledata("schg_cas01",1); + end; +} +sch_gld,297,90,0 duplicate(Sc01_Flag) Himinn#flag_sc01_2 GUILD_FLAG diff --git a/npc/woe-se/schg_cas02.txt b/npc/woe-se/schg_cas02.txt new file mode 100644 index 000000000..798fb9c8b --- /dev/null +++ b/npc/woe-se/schg_cas02.txt @@ -0,0 +1,64 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Andlangr +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#schg_cas02 -1 +- duplicate(gard#template) gard1#schg_cas02 -1 +- duplicate(gard#template) gard2#schg_cas02 -1 +- duplicate(df#template) df1#schg_cas02 -1 +- duplicate(df#template) df2#schg_cas02 -1 +- duplicate(RL#template) RL0#schg_cas02 -1 +- duplicate(RL#template) RL1#schg_cas02 -1 +- duplicate(RL#template) RL2#schg_cas02 -1 +- duplicate(RL#template) RL3#schg_cas02 -1 + +schg_cas02,105,378,3 duplicate(Steward#template) Steward#sc02 1_M_JOBTESTER +schg_cas02,140,184,3 duplicate(Guardian#template) Endeef#sc02 4_M_LGTGUARD +schg_cas02,131,365,3 duplicate(Kafra#template) Kafra Employee#sc02 4_F_KAFRA1 +schg_cas02,231,57,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc02 CLEAR_NPC +schg_cas02,335,231,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc02 CLEAR_NPC +schg_cas02,288,97,0 duplicate(Control#template) Control Device01#sc02 HIDDEN_NPC +schg_cas02,230,209,0 duplicate(Control#template) Control Device02#sc02 HIDDEN_NPC +schg_cas02,159,143,0 duplicate(Control#template) Control Device03#sc02 HIDDEN_NPC +schg_cas02,257,369,0 duplicate(Switch#template) #sc02_switch HIDDEN_NPC +schg_cas02,174,328,3 duplicate(Sunflower#template) Mysterious Sunflower#02 4_BLUE_FLOWER + +schg_cas02,143,198,0 script LF-01#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",235,44,"Second Gate House",302,233; } +schg_cas02,143,202,0 script LF-02#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",317,83,"Defense Area 1-2",359,83; } +schg_cas02,143,206,0 script LF-03#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",283,79,"Defense Area 2-2",280,122; } +schg_cas02,145,208,0 script LF-04#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",215,110,"Defense Area 3-2",255,215; } +schg_cas02,180,208,0 script LF-05#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",338,153,"Center 2 Area",213,226; } +schg_cas02,182,206,0 script LF-06#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",317,83,"Defense Area 2-1",283,79,"Defense Area 3-1",215,110; } +schg_cas02,182,202,0 script LF-07#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",359,83,"Area 2-2",280,122,"Area 3-2",255,215; } +schg_cas02,182,198,0 script LF-08#schg_cas02 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",101,306; } +schg_cas02,235,222,0 script Andlangr#LF_sc02_1::LF_sc02_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",136,188; } +schg_cas02,157,136,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_2 HIDDEN_NPC +schg_cas02,168,136,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_3 HIDDEN_NPC +schg_cas02,320,232,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_4 HIDDEN_NPC +schg_cas02,295,109,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_5 HIDDEN_NPC +schg_cas02,295,92,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_6 HIDDEN_NPC +schg_cas02,285,90,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_7 HIDDEN_NPC +schg_cas02,285,190,4 duplicate(LF_sc02_1) Andlangr#LF_sc02_8 HIDDEN_NPC +schg_cas02,238,66,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_9 HIDDEN_NPC +schg_cas02,230,45,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_10 HIDDEN_NPC +schg_cas02,233,120,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_11 HIDDEN_NPC +schg_cas02,247,120,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_12 HIDDEN_NPC +schg_cas02,261,162,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_13 HIDDEN_NPC +schg_cas02,244,162,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_14 HIDDEN_NPC +schg_cas02,235,207,0 duplicate(LF_sc02_1) Andlangr#LF_sc02_15 HIDDEN_NPC + +sch_gld,296,247,4 script Andlangr#flag_sc02_1::Sc02_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","schg_cas02",1; + end; +OnAgitInit2: +OnRecvCastleSc02: + flagemblem getcastledata("schg_cas02",1); + end; +} +sch_gld,280,247,4 duplicate(Sc02_Flag) Andlangr#flag_sc02_2 GUILD_FLAG diff --git a/npc/woe-se/schg_cas03.txt b/npc/woe-se/schg_cas03.txt new file mode 100644 index 000000000..77d50195e --- /dev/null +++ b/npc/woe-se/schg_cas03.txt @@ -0,0 +1,72 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Vidblainn +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#schg_cas03 -1 +- duplicate(gard#template) gard1#schg_cas03 -1 +- duplicate(gard#template) gard2#schg_cas03 -1 +- duplicate(df#template) df1#schg_cas03 -1 +- duplicate(df#template) df2#schg_cas03 -1 +- duplicate(RL#template) RL0#schg_cas03 -1 +- duplicate(RL#template) RL1#schg_cas03 -1 +- duplicate(RL#template) RL2#schg_cas03 -1 +- duplicate(RL#template) RL3#schg_cas03 -1 + +schg_cas03,88,90,3 duplicate(Steward#template) Steward#sc03 1_M_JOBTESTER +schg_cas03,287,226,5 duplicate(Guardian#template) Elzee#sc03 4_M_LGTGUARD +schg_cas03,50,50,3 duplicate(Kafra#template) Kafra Employee#sc03 4_F_KAFRA1 +schg_cas03,242,309,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc03 CLEAR_NPC +schg_cas03,376,250,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc03 CLEAR_NPC +schg_cas03,335,298,0 duplicate(Control#template) Control Device01#sc03 HIDDEN_NPC +schg_cas03,200,227,0 duplicate(Control#template) Control Device02#sc03 HIDDEN_NPC +schg_cas03,273,205,0 duplicate(Control#template) Control Device03#sc03 HIDDEN_NPC +schg_cas03,199,25,0 duplicate(Switch#template) #sch03_switch HIDDEN_NPC +schg_cas03,25,22,3 duplicate(Sunflower#template) Mysterious Sunflower#03 4_BLUE_FLOWER + +schg_cas03,346,211,0 script LF-01#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",262,323,"Second Gate House",378,263; } +schg_cas03,346,207,0 script LF-02#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",306,320; } +schg_cas03,346,203,0 script LF-03#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",309,292,"Defense Area 2-2",348,292; } +schg_cas03,346,199,0 script LF-04#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Center 2 Area",266,263; } +schg_cas03,346,195,0 script LF-05#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",226,220,"Defense Area 3-2",185,249; } +schg_cas03,346,191,0 script LF-06#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Center 3 Area",271,226; } +schg_cas03,301,213,0 script LF-07#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",262,323,"Area 2-2",378,263,"Area 3-2",306,320; } +schg_cas03,301,209,0 script LF-08#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Area 2-1",309,292,"Area 2-2",348,292,"Center 2 Area",326,263; } +schg_cas03,301,194,0 script LF-09#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Area 3-1",226,220,"Area 3-2",185,249,"Center 3 Area",271,226; } +schg_cas03,301,190,0 script LF-10#schg_cas03 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",57,13; } +schg_cas03,335,305,0 script Vidblainn#LF_sc03_1::LF_sc03_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",308,202; } +schg_cas03,322,305,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_2 HIDDEN_NPC +schg_cas03,352,248,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_3 HIDDEN_NPC +schg_cas03,320,283,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_4 HIDDEN_NPC +schg_cas03,337,283,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_5 HIDDEN_NPC +schg_cas03,233,320,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_6 HIDDEN_NPC +schg_cas03,207,239,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_7 HIDDEN_NPC +schg_cas03,207,228,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_8 HIDDEN_NPC +schg_cas03,266,206,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_9 HIDDEN_NPC +schg_cas03,266,197,0 duplicate(LF_sc03_1) Vidblainn#LF_sc03_10 HIDDEN_NPC +schg_cas03,283,206,2 script Vidblainn#LF_sc03_11::LF_sc03_2 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",308,202; + end; +OnAgitInit2: +OnRecvCastleSc03: + flagemblem getcastledata("schg_cas03",1); + end; +} +schg_cas03,283,197,2 duplicate(LF_sc03_2) Vidblainn#LF_sc03_12 GUILD_FLAG +schg_cas03,332,323,6 duplicate(LF_sc03_2) Vidblainn#LF_sc03_13 GUILD_FLAG +schg_cas03,343,323,2 duplicate(LF_sc03_2) Vidblainn#LF_sc03_14 GUILD_FLAG + +sch_gld,91,191,0 script Vidblainn#flag_sc03_1::Sc03_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","schg_cas03",1; + end; +OnAgitInit2: +OnRecvCastleSc03: + flagemblem getcastledata("schg_cas03",1); + end; +} +sch_gld,104,191,0 duplicate(Sc03_Flag) Bidblind#flag_sc03_2 GUILD_FLAG diff --git a/npc/woe-se/schg_cas04.txt b/npc/woe-se/schg_cas04.txt new file mode 100644 index 000000000..dd81e16c6 --- /dev/null +++ b/npc/woe-se/schg_cas04.txt @@ -0,0 +1,72 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Hljod +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#schg_cas04 -1 +- duplicate(gard#template) gard1#schg_cas04 -1 +- duplicate(gard#template) gard2#schg_cas04 -1 +- duplicate(df#template) df1#schg_cas04 -1 +- duplicate(df#template) df2#schg_cas04 -1 +- duplicate(RL#template) RL0#schg_cas04 -1 +- duplicate(RL#template) RL1#schg_cas04 -1 +- duplicate(RL#template) RL2#schg_cas04 -1 +- duplicate(RL#template) RL3#schg_cas04 -1 + +schg_cas04,247,305,3 duplicate(Steward#template) Steward#sc04 1_M_JOBTESTER +schg_cas04,123,306,3 duplicate(Guardian#template) Ef#sc04 4_M_LGTGUARD +schg_cas04,300,287,5 duplicate(Kafra#template) Kafra Employee#sc04 4_F_KAFRA1 +schg_cas04,27,36,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc04 CLEAR_NPC +schg_cas04,208,75,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc04 CLEAR_NPC +schg_cas04,124,52,0 duplicate(Control#template) Control Device01#sc04 HIDDEN_NPC +schg_cas04,128,157,0 duplicate(Control#template) Control Device02#sc04 HIDDEN_NPC +schg_cas04,109,247,0 duplicate(Control#template) Control Device03#sc04 HIDDEN_NPC +schg_cas04,391,391,0 duplicate(Switch#template) #sch04_switch HIDDEN_NPC +schg_cas04,280,391,3 duplicate(Sunflower#template) Mysterious Sunflower#04 4_BLUE_FLOWER + +schg_cas04,106,302,0 script LF-01#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",19,26,"Second Gate House",219,90; } +schg_cas04,109,302,0 script LF-02#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",89,43,"Defense Area 1-2",141,45; } +schg_cas04,112,302,0 script LF-03#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",137,54,"Defense Area 2-2",102,54; } +schg_cas04,115,302,0 script LF-04#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",94,147,"Defense Area 2-4",163,140; } +schg_cas04,118,302,0 script LF-05#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",87,220,"Defense Area 2-4",151,220; } +schg_cas04,121,302,0 script LF-06#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",100,242,"Defense Area 3-2",136,242; } +schg_cas04,124,302,0 script LF-07#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",120,168,"Center 2 Area",119,211; } +schg_cas04,127,302,0 script LF-08#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",89,43,"Area 2-1",94,147,"Area 3-1",100,242; } +schg_cas04,130,302,0 script LF-09#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",141,45,"Area 2-3",163,140,"Area 3-2",136,243; } +schg_cas04,133,302,0 script LF-10#schg_cas04 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",275,244; } +schg_cas04,17,45,0 script Hljod#LF_sc04_1::LF_sc04_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",120,290; } +schg_cas04,207,95,0 duplicate(LF_sc04_1) Hljod#LF_sc04_2 HIDDEN_NPC +schg_cas04,111,46,4 script Hljod#LF_sc04_3::LF_sc04_2 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",120,290; + end; +OnAgitInit2: +OnRecvCastleSc04: + flagemblem getcastledata("schg_cas04",1); + end; +} +schg_cas04,129,46,4 duplicate(LF_sc04_2) Hljod#LF_sc04_4 GUILD_FLAG +schg_cas04,99,77,0 duplicate(LF_sc04_1) Hljod#LF_sc04_5 HIDDEN_NPC +schg_cas04,140,77,0 duplicate(LF_sc04_1) Hljod#LF_sc04_6 HIDDEN_NPC +schg_cas04,109,150,4 duplicate(LF_sc04_2) Hljod#LF_sc04_7 GUILD_FLAG +schg_cas04,130,150,4 duplicate(LF_sc04_2) Hljod#LF_sc04_8 GUILD_FLAG +schg_cas04,112,212,0 duplicate(LF_sc04_1) Hljod#LF_sc04_9 HIDDEN_NPC +schg_cas04,127,212,0 duplicate(LF_sc04_1) Hljod#LF_sc04_10 HIDDEN_NPC +schg_cas04,113,238,0 duplicate(LF_sc04_1) Hljod#LF_sc04_11 HIDDEN_NPC +schg_cas04,126,238,0 duplicate(LF_sc04_1) Hljod#LF_sc04_12 HIDDEN_NPC +schg_cas04,95,247,0 duplicate(LF_sc04_1) Hljod#LF_sc04_13 HIDDEN_NPC +schg_cas04,144,247,0 duplicate(LF_sc04_1) Hljod#LF_sc04_14 HIDDEN_NPC + +sch_gld,134,97,4 script Hljod#flag_sc04_1::sc04_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","schg_cas04",1; + end; +OnAgitInit2: +OnRecvCastleSc04: + flagemblem getcastledata("schg_cas04",1); + end; +} +sch_gld,141,97,4 duplicate(sc04_Flag) Hljod#flag_sc04_2 GUILD_FLAG diff --git a/npc/woe-se/schg_cas05.txt b/npc/woe-se/schg_cas05.txt new file mode 100644 index 000000000..ca69a2dd6 --- /dev/null +++ b/npc/woe-se/schg_cas05.txt @@ -0,0 +1,74 @@ +//===== Hercules Script ====================================== +//= War of Emperium SE - Skidbladnir +//===== By: ================================================== +//= Euphy +//===== Current Version: ===================================== +//= 1.0 +//===== Additional Comments: ================================= +//= 1.0 Merged to template file. +//============================================================ + +- duplicate(Manager#template) Manager#schg_cas05 -1 +- duplicate(gard#template) gard1#schg_cas05 -1 +- duplicate(gard#template) gard2#schg_cas05 -1 +- duplicate(df#template) df1#schg_cas05 -1 +- duplicate(df#template) df2#schg_cas05 -1 +- duplicate(RL#template) RL0#schg_cas05 -1 +- duplicate(RL#template) RL1#schg_cas05 -1 +- duplicate(RL#template) RL2#schg_cas05 -1 +- duplicate(RL#template) RL3#schg_cas05 -1 + +schg_cas05,247,305,3 duplicate(Steward#template) Steward#sc05 1_M_JOBTESTER +schg_cas05,123,306,3 duplicate(Guardian#template) Ef#sc05 4_M_LGTGUARD +schg_cas05,300,287,5 duplicate(Kafra#template) Kafra Employee#sc05 4_F_KAFRA1 +schg_cas05,27,36,0 duplicate(Guardian Stone#template) 1st Guardian Stone#sc05 CLEAR_NPC +schg_cas05,208,75,0 duplicate(Guardian Stone#template) 2nd Guardian Stone#sc05 CLEAR_NPC +schg_cas05,124,52,0 duplicate(Control#template) Control Device01#sc05 HIDDEN_NPC +schg_cas05,128,157,0 duplicate(Control#template) Control Device02#sc05 HIDDEN_NPC +schg_cas05,109,247,0 duplicate(Control#template) Control Device03#sc05 HIDDEN_NPC +schg_cas05,391,391,0 duplicate(Switch#template) #sch05_switch HIDDEN_NPC +schg_cas05,280,391,3 duplicate(Sunflower#template) Mysterious Sunflower#05 4_BLUE_FLOWER + +schg_cas05,106,302,0 script LF-01#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","First Gate House",19,26,"Second Gate House",219,90; } +schg_cas05,109,302,0 script LF-02#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 1-1",89,43,"Defense Area 1-2",141,45; } +schg_cas05,112,302,0 script LF-03#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-1",137,54,"Defense Area 2-2",102,54; } +schg_cas05,115,302,0 script LF-04#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",94,147,"Defense Area 2-4",163,140; } +schg_cas05,118,302,0 script LF-05#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 2-3",87,220,"Defense Area 2-4",151,220; } +schg_cas05,121,302,0 script LF-06#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Defense Area 3-1",100,242,"Defense Area 3-2",136,242; } +schg_cas05,124,302,0 script LF-07#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Center 1 Area",120,168,"Center 2 Area",119,211; } +schg_cas05,127,302,0 script LF-08#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-1",89,43,"Area 2-1",94,147,"Area 3-1",100,242; } +schg_cas05,130,302,0 script LF-09#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Area 1-2",141,45,"Area 2-3",163,140,"Area 3-2",136,243; } +schg_cas05,133,302,0 script LF-10#schg_cas05 HIDDEN_NPC,{ callfunc "LinkFlag","Convenience Facility",275,244; } +schg_cas05,17,45,0 script Skidbladnir#LF_sc05_1::LF_sc05_1 HIDDEN_NPC,{ callfunc "LinkFlag","Emperium Center",120,290; } +schg_cas05,207,95,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_2 HIDDEN_NPC +schg_cas05,111,46,4 script Skidbladnir#LF_sc05_3::LF_sc05_2 GUILD_FLAG,{ + callfunc "LinkFlag","Emperium Center",120,290; + end; +OnAgitInit2: +OnRecvCastleSc05: + flagemblem getcastledata("schg_cas05",1); + end; +} +schg_cas05,129,46,4 duplicate(LF_sc05_2) Skidbladnir#LF_sc05_4 GUILD_FLAG +schg_cas05,99,77,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_5 HIDDEN_NPC +schg_cas05,140,77,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_6 HIDDEN_NPC +schg_cas05,109,150,4 duplicate(LF_sc05_2) Skidbladnir#LF_sc05_7 GUILD_FLAG +schg_cas05,130,150,4 duplicate(LF_sc05_2) Skidbladnir#LF_sc05_8 GUILD_FLAG +schg_cas05,112,212,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_9 HIDDEN_NPC +schg_cas05,127,212,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_10 HIDDEN_NPC +schg_cas05,113,238,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_11 HIDDEN_NPC +schg_cas05,126,238,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_12 HIDDEN_NPC +schg_cas05,95,247,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_13 HIDDEN_NPC +schg_cas05,144,247,0 duplicate(LF_sc05_1) Skidbladnir#LF_sc05_14 HIDDEN_NPC + +sch_gld,101,284,4 script Skidbladnir#flag_sc05_1::sc05_Flag GUILD_FLAG,{ + callfunc "ReturnFlag","schg_cas05",1; + end; +OnAgitInit2: +OnRecvCastleSc05: + flagemblem getcastledata("schg_cas05",1); + end; +} +sch_gld,91,284,4 duplicate(sc05_Flag) Skidbladnir#flag_sc05_2 GUILD_FLAG +sch_gld,66,320,6 duplicate(sc05_Flag) Skidbladnir#flag_sc05_3 GUILD_FLAG +sch_gld,66,310,6 duplicate(sc05_Flag) Skidbladnir#flag_sc05_4 GUILD_FLAG -- cgit v1.2.3-60-g2f50