summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-14 17:19:13 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-14 17:19:13 -0200
commit12f6599bd11525b853d3da4381a4f49efb25e5f5 (patch)
treefb8db791233af77cc957307fe30d8b5dc2b4c603 /npc/functions/main.txt
parentf51f98404b78716831bd94aaa502bb0bb45c2a59 (diff)
downloadserverdata-12f6599bd11525b853d3da4381a4f49efb25e5f5.tar.gz
serverdata-12f6599bd11525b853d3da4381a4f49efb25e5f5.tar.bz2
serverdata-12f6599bd11525b853d3da4381a4f49efb25e5f5.tar.xz
serverdata-12f6599bd11525b853d3da4381a4f49efb25e5f5.zip
Squash bug, and add a getmap() helper for future uses
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 38034980e..8ddcd631b 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -255,6 +255,12 @@ function script any_of {
// TMW2 Custom Functions
/////////////////////////////////////////////
+function script getmap {
+ if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0)
+ return false;
+ return .@mapName$;
+}
+
function script isin {
if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0)
return false;