diff options
Diffstat (limited to 'npc/re/woe-fe')
-rw-r--r-- | npc/re/woe-fe/invest_main.txt | 139 | ||||
-rw-r--r-- | npc/re/woe-fe/invest_npc.txt | 50 |
2 files changed, 108 insertions, 81 deletions
diff --git a/npc/re/woe-fe/invest_main.txt b/npc/re/woe-fe/invest_main.txt index d8b987e41..ac9e486b8 100644 --- a/npc/re/woe-fe/invest_main.txt +++ b/npc/re/woe-fe/invest_main.txt @@ -1,65 +1,79 @@ -//===== Hercules Script ====================================== +//================= Hercules Script ======================================= +//= _ _ _ +//= | | | | | | +//= | |_| | ___ _ __ ___ _ _| | ___ ___ +//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| +//= | | | | __/ | | (__| |_| | | __/\__ \ +//= \_| |_/\___|_| \___|\__,_|_|\___||___/ +//================= License =============================================== +//= This file is part of Hercules. +//= http://herc.ws - http://github.com/HerculesWS/Hercules +//= +//= Copyright (C) 2013-2015 Hercules Dev Team +//= Copyright (C) Euphy +//= +//= Hercules is free software: you can redistribute it and/or modify +//= it under the terms of the GNU General Public License as published by +//= the Free Software Foundation, either version 3 of the License, or +//= (at your option) any later version. +//= +//= This program is distributed in the hope that it will be useful, +//= but WITHOUT ANY WARRANTY; without even the implied warranty of +//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//= GNU General Public License for more details. +//= +//= You should have received a copy of the GNU General Public License +//= along with this program. If not, see <http://www.gnu.org/licenses/>. +//========================================================================= //= Hall of Abyss - Core Scripts -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.1 -//===== Description: ========================================= -//= [Official Conversion] +//================= Description =========================================== //= 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. -*/ +//================= Current Version ======================================= +//= 1.1 +//================= Variables Used ======================================== +//= 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 -//============================================================ +//== 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(GETTIME_WEEKDAY) == WEDNESDAY && !agitcheck()) { @@ -222,8 +236,7 @@ function script F_Invest_Abyss { } } -// Script Core -//============================================================ +//== Script Core =========================================== prt_gld,1,1,0 script #fund_master CLEAR_NPC,{ end; OnInit: @@ -691,8 +704,7 @@ OnAgitInvest: } */ -// Realms - Merchant Guilds, Gate Managers, Status Boards -//============================================================ +//== Realms - Merchant Guilds, Gate Managers, Status Boards = - script Cat Paw Merchant Guild -1,{ if (compare(strnpcinfo(4),"alde")) { @@ -1083,8 +1095,7 @@ OnAgitInvest: } } -// Inside Castles - Gate Managers -//============================================================ +//== Inside Castles - Gate Managers ======================== - script Gate Manager#castle -1,{ .@id = atoi(charat(strnpcinfo(2),getstrlen(strnpcinfo(2))-1)); @@ -1257,8 +1268,7 @@ L_Enter: } } -// Item Investments -//============================================================ +//== 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'"; @@ -1463,8 +1473,7 @@ OnTouch: end; } -// Investment Rewards -//============================================================ +//== 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 -"; diff --git a/npc/re/woe-fe/invest_npc.txt b/npc/re/woe-fe/invest_npc.txt index a1d564e00..4b2d49f39 100644 --- a/npc/re/woe-fe/invest_npc.txt +++ b/npc/re/woe-fe/invest_npc.txt @@ -1,21 +1,41 @@ -//===== Hercules Script ====================================== +//================= Hercules Script ======================================= +//= _ _ _ +//= | | | | | | +//= | |_| | ___ _ __ ___ _ _| | ___ ___ +//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| +//= | | | | __/ | | (__| |_| | | __/\__ \ +//= \_| |_/\___|_| \___|\__,_|_|\___||___/ +//================= License =============================================== +//= This file is part of Hercules. +//= http://herc.ws - http://github.com/HerculesWS/Hercules +//= +//= Copyright (C) 2013-2015 Hercules Dev Team +//= Copyright (C) Euphy +//= +//= Hercules is free software: you can redistribute it and/or modify +//= it under the terms of the GNU General Public License as published by +//= the Free Software Foundation, either version 3 of the License, or +//= (at your option) any later version. +//= +//= This program is distributed in the hope that it will be useful, +//= but WITHOUT ANY WARRANTY; without even the implied warranty of +//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//= GNU General Public License for more details. +//= +//= You should have received a copy of the GNU General Public License +//= along with this program. If not, see <http://www.gnu.org/licenses/>. +//========================================================================= //= Hall of Abyss - NPC Duplicates -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.0 -//===== Description: ========================================= -//= [Official Conversion] +//================= Description =========================================== //= 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] -//============================================================ +//================= Current Version ======================================= +//= 1.0 +//========================================================================= -// Realms - Merchant Guilds, Gate Managers, Status Boards -//============================================================ +//== 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 @@ -32,8 +52,7 @@ prt_gld,158,96,5 duplicate(Cat Paw Merchant Guild) Cat Paw Merchant Dubae 4_CAT_ 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 -//============================================================ +//== 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 @@ -58,8 +77,7 @@ prtg_cas03,72,109,3 duplicate(Gate Manager#castle) Gate Manager#prt_f03 4_M_BOSS 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 -//============================================================ +//== 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 |