summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-07 13:12:10 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-07 13:12:10 -0300
commit2ddb9cf07b3616b28f65f23a6f1772f0b0e5c094 (patch)
treee984aa14d7950ee14ebbfcfd8ad5754fd1a2bfb5 /npc
parent426c794eec6b6ea6293a09adf5d646f7c56af30c (diff)
downloadserverdata-2ddb9cf07b3616b28f65f23a6f1772f0b0e5c094.tar.gz
serverdata-2ddb9cf07b3616b28f65f23a6f1772f0b0e5c094.tar.bz2
serverdata-2ddb9cf07b3616b28f65f23a6f1772f0b0e5c094.tar.xz
serverdata-2ddb9cf07b3616b28f65f23a6f1772f0b0e5c094.zip
isin()
Diffstat (limited to 'npc')
-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 097c21060..e4bda0d1a 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -220,6 +220,16 @@ function script npctalkonce {
return true;
}
+function script isin {
+ if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0)
+ return false;
+ if (.@mapName$ != getarg(0))
+ return false;
+ if (.@xpos >= getarg(1) && .@xpos <= getarg(3) && .@ypos >= getarg(2) && .@ypos <= getarg(4))
+ return true;
+ return false;
+}
+
function script getquestlink {
return "[@@q" + getarg(0) + "|@@]";
}