summaryrefslogtreecommitdiff
path: root/npc/commands/event.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r--npc/commands/event.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index c173f8090..4982d85f1 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -262,11 +262,11 @@ OnEffect:
dispbottom l("You cannot be fighting to do this trip.");
atcommand "@refresh";
end;
- } else if (getmapname() ~= "001-*" || (getmapinfo(MAPINFO_ZONE, getmap())) == "MMO") {
+ } else if (compare(getmapname(), "001-") || (getmapinfo(MAPINFO_ZONE, getmap())) == "MMO") {
dispbottom l("You are already at the Mana Plane of Existence.");
atcommand "@refresh";
end;
- } else if (getmapname() == "boss" || getmapname() == "sec_pri" || getmapname() ~= "000-*" || getmapname() ~= "008-*" || getmapname() ~= "sore*") {
+ } else if (getmapname() == "boss" || getmapname() == "sec_pri" || compare(getmapname(), "000-") || compare(getmapname(), "008-") || compare(getmapname(), "sore")) {
dispbottom l("The Mana Plane is currently out of reach.");
atcommand "@refresh";
end;