From 12f6599bd11525b853d3da4381a4f49efb25e5f5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 14 Dec 2018 17:19:13 -0200 Subject: Squash bug, and add a getmap() helper for future uses --- npc/functions/main.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/functions') 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; -- cgit v1.2.3-60-g2f50