summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) + "|@@]";
}