summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-27 15:18:38 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-27 15:18:38 -0300
commit66b0dbef764d7d1e2bd8386c08caa47c256a1d8e (patch)
treecdc199422c2b2e46fbb8c1f21d423f646beaba47 /npc
parent525bfcd0c24038abc05c9d540b2a4ca2191858d5 (diff)
downloadserverdata-66b0dbef764d7d1e2bd8386c08caa47c256a1d8e.tar.gz
serverdata-66b0dbef764d7d1e2bd8386c08caa47c256a1d8e.tar.bz2
serverdata-66b0dbef764d7d1e2bd8386c08caa47c256a1d8e.tar.xz
serverdata-66b0dbef764d7d1e2bd8386c08caa47c256a1d8e.zip
Handle properly the warp to Fortress Town
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/teleporter.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/functions/teleporter.txt b/npc/functions/teleporter.txt
index f3fb5efb6..3a762f163 100644
--- a/npc/functions/teleporter.txt
+++ b/npc/functions/teleporter.txt
@@ -42,12 +42,19 @@ function script TeleporterGate {
rif(TELEPORTERS & TP_BOSSR && .@IF != TP_BOSSR, l("Moubootaur Maze")), TP_BOOSR,
l("None"), -1;
mes "";
- if (@menu != -1)
+ // Fortress Override
+ if (@menuret == TP_FORT && !$FORTRESS_STATE)
+ @menuret=-1;
+
+ // Proccess menu
+ if (@menuret != -1)
delitem PileOfAsh, 1;
- closedialog;
+ else
+ close;
// Retrieve location specifics and warp
.@x=array_find($@LOCMASTER_TP, @menuret);
+ closeclientdialog;
warp $@LOCMASTER_MAP$[.@x], $@LOCMASTER_X[.@x], $@LOCMASTER_Y[.@x];
return;
}