summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 16:00:01 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 16:00:01 -0200
commit1dab71476e7fa493966b8e389e3a8c9f3a3616ee (patch)
tree13520d64685e39060563eccdbe336d39644ddf40 /npc/functions/main.txt
parentd7b6cf2e133e1bf2ed70368df929dd53bcf04fe5 (diff)
downloadserverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.tar.gz
serverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.tar.bz2
serverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.tar.xz
serverdata-1dab71476e7fa493966b8e389e3a8c9f3a3616ee.zip
Introduce a new helper for main storyline: msObjective().
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 2d4d3a11a..05ec73fc1 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -266,6 +266,16 @@ function script VarDiffValue {
return (getarg(0) < .@val && getarg(1) >= .@val);
}
+// Function meant to be used by Main Storyline Quest
+// msObjective ( condition , message )
+function script msObjective {
+ if (getarg(0))
+ mesc getarg(1), 2;
+ else
+ mesc getarg(1), 9;
+ return;
+}
+
function script getmap {
if (getmapxy(.@mapName$, .@xpos, .@ypos, getarg(0,0)) != 0)
return false;