From 65d393fc57804447497855a6daeb981e312ec372 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 12 Nov 2015 17:45:09 +0100 Subject: Standardized header in scripts (part 7) - Now including GPL-compliant license/copyright info - Restored some missing copyrights - Battlegrounds and WoE scripts folders Signed-off-by: Haru --- npc/re/woe-fe/invest_main.txt | 139 ++++++++++++++++++++++-------------------- 1 file changed, 74 insertions(+), 65 deletions(-) (limited to 'npc/re/woe-fe/invest_main.txt') 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 . +//========================================================================= //= 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 -"; -- cgit v1.2.3-60-g2f50