summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-12 01:49:25 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-12 01:49:25 -0200
commit601b7e06c6c2144136504b61c3f54f7e60ec1665 (patch)
tree846170c5715dde76e2e519dadd069a5b412ff844 /npc/functions/main.txt
parentc0a48bbba20641f1161742d507807e704d823405 (diff)
downloadserverdata-601b7e06c6c2144136504b61c3f54f7e60ec1665.tar.gz
serverdata-601b7e06c6c2144136504b61c3f54f7e60ec1665.tar.bz2
serverdata-601b7e06c6c2144136504b61c3f54f7e60ec1665.tar.xz
serverdata-601b7e06c6c2144136504b61c3f54f7e60ec1665.zip
As I *always* follow priority orders (sarcasm),
Implement rewards on milestones on GHQ. Intro still broken. Grand Hunter Quest is in need of a major rewrite, I want Pet Detective to take over.
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index ca828b056..2d4d3a11a 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -259,6 +259,13 @@ function script any_of {
// TMW2 Custom Functions
/////////////////////////////////////////////
+// Function meant to be used by Grand Hunter Quest
+// VarDiffValue ( old, new, target)
+function script VarDiffValue {
+ .@val=getarg(2);
+ return (getarg(0) < .@val && getarg(1) >= .@val);
+}
+
function script getmap {
if (getmapxy(.@mapName$, .@xpos, .@ypos, getarg(0,0)) != 0)
return false;