summaryrefslogtreecommitdiff
path: root/npc/other/CashShop_Functions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/other/CashShop_Functions.txt')
-rw-r--r--npc/other/CashShop_Functions.txt101
1 files changed, 54 insertions, 47 deletions
diff --git a/npc/other/CashShop_Functions.txt b/npc/other/CashShop_Functions.txt
index f87b191b3..ef53ef858 100644
--- a/npc/other/CashShop_Functions.txt
+++ b/npc/other/CashShop_Functions.txt
@@ -1,32 +1,44 @@
-//===== Hercules Script ======================================
+//================= Hercules Script =======================================
+//= _ _ _
+//= | | | | | |
+//= | |_| | ___ _ __ ___ _ _| | ___ ___
+//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
+//= | | | | __/ | | (__| |_| | | __/\__ \
+//= \_| |_/\___|_| \___|\__,_|_|\___||___/
+//================= License ===============================================
+//= This file is part of Hercules.
+//= http://herc.ws - http://github.com/HerculesWS/Hercules
+//=
+//= Copyright (C) 2012-2015 Hercules Dev Team
+//= Copyright (C) Euphy
+//= Copyright (C) L0ne_W0lf
+//=
+//= 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/>.
+//=========================================================================
//= Cash Shop Functions
-//===== By: ==================================================
-//= L0ne_W0lf
-//===== Current Version: =====================================
-//= 1.7
-//===== Description: =========================================
+//================= Description ===========================================
//= Used explicitly in the Item Database for Cash shop items
//= - Kafra Card
//= - Giant Fly Wing
//= - Neuralizer
//= - Dungeon Teleport Scroll
-//===== Additional Comments: =================================
-//= 1.0 First version. [L0ne_W0lf]
-//= F_CashPartyCall Optimized by Trancid.
-//= 1.1 Updated Dungeon Teleport Scroll. [L0ne_W0lf]
-//= Added Town Teleport Scroll Function
-//= Added Seige Teleport Scroll Function
-//= 1.2 Updated the dungeon teleport scroll menu. [L0ne_w0lf]
-//= 1.3 Implemented Aozi Giant Flywing Fix. (bugreport:4242) [L0ne_w0lf]
-//= 1.4 Simplified Giant Flywing function using warpparty. [L0ne_w0lf]
-//= 1.5 Neuralizer is no longer consumed upon failure. [Euphy]
-//= 1.6 Updated Teleport functions and added Curious_Snowball. [Euphy]
-//= 1.7 Added Dungeon Teleport Scroll II maps. [Euphy]
-//============================================================
+//================= Current Version =======================================
+//= 1.7
+//=========================================================================
-// Kafra Card
-//============================================================
-// - Open player's storage.
+//== Kafra Card ============================================
+// - Opens player's storage.
// - No arguments.
function script F_CashStore {
cutin "kafra_01",2;
@@ -39,11 +51,9 @@ function script F_CashStore {
return;
}
-
-// Giant Fly Wing
-//============================================================
-// - Warp party leader to random spot on the map.
-// - Summon Party members on party leader map to that location.
+//== Giant Fly Wing ========================================
+// - Warps party leader to random spot on the map.
+// - Summons Party members on party leader map to that location.
// - No arguments.
function script F_CashPartyCall {
warp "Random",0,0;
@@ -54,9 +64,8 @@ function script F_CashPartyCall {
return;
}
-// Neuralizer
-//============================================================
-// - Reset players skills. Weight must be 0, options must be off.
+//== Neuralizer ============================================
+// - Resets players skills. Weight must be 0, options must be off.
// - No arguments.
function script F_CashReset {
if (Class != Job_Novice && Weight == 0 && !checkmount() && !checkfalcon() && !checkcart() && !hascashmount()) {
@@ -67,10 +76,10 @@ function script F_CashReset {
return;
}
-// Dungeon Teleport Scroll
-//============================================================
-// - Warp player to the selected dungeon.
-// - Arg(0) = type of scroll.
+//== Dungeon Teleport Scroll ===============================
+// - Warps player to the selected dungeon.
+// - Arguments:
+// 0 = type of scroll.
function script F_CashDungeon {
switch(getarg(0)) {
case 1:
@@ -124,10 +133,10 @@ function script F_CashDungeon {
return;
}
-// Coloured Butterly Wings
-//============================================================
-// - Warp player to different cities acording to the scroll.
-// - Arg(0) = type of scroll.
+//== Colored Butterly Wings ================================
+// - Warps player to different cities according to the scroll.
+// - Arguments:
+// 0 = type of scroll.
function script F_CashCity {
switch(getarg(0)) {
case 1: // Yellow - Rune-Midgart
@@ -174,10 +183,10 @@ function script F_CashCity {
return;
}
-// Teleport Scrolls
-//============================================================
-// - Warp player to save point or city acording to the scroll.
-// - Arg(0) = type of scroll.
+//== Teleport Scrolls ======================================
+// - Warps player to save point or city according to the scroll.
+// - Arguments:
+// 0 = type of scroll.
function script F_CashTele {
switch(getarg(0)) {
case 1:
@@ -229,9 +238,8 @@ function script F_CashTele {
return;
}
-// Siege Teleport Scroll
-//============================================================
-// - Warp player to selected guild castle.
+//== Siege Teleport Scroll =================================
+// - Warps player to selected guild castle.
// - No arguments.
function script F_CashSiegeTele {
switch(select("Neuschwanstein (aldeg_cas01):Hohenschwangau (aldeg_cas02):Nuernberg (aldeg_cas03):Wuerzburg (aldeg_cas04):Rothenburg (aldeg_cas05):Repherion (gefg_cas01):Eeyorbriggar (gefg_cas02):Yesnelph (gefg_cas03):Bergel (gefg_cas04):Mersetzdeitz (gefg_cas05):Bright Arbor (payg_cas01):Sacred Altar (payg_cas02):Holy Shadow (payg_cas03):Scarlet Palace (payg_cas04):Bamboo Grove Hill (payg_cas05):Kriemhild (prtg_cas01):Swanhild (prtg_cas02):Fadhgridh (prtg_cas03):Skoegul (prtg_cas04):Gondul (prtg_cas05)")) {
@@ -259,8 +267,7 @@ function script F_CashSiegeTele {
return;
}
-// Curious Snowball
-//============================================================
+//== Curious Snowball ======================================
// - You can get an effect of Restore, Endure, or Wing of Butterfly.
// - No arguments.
function script F_Snowball {