diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-10 13:13:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-10 13:13:58 -0300 |
commit | 3428c42f3acbd3e6661d92d988c1cdefaa42264f (patch) | |
tree | ad1fe716734d411e16116ab74d6809420e82b384 /npc/commands/event.txt | |
parent | 9cdccc4bc94f87e8fa2f4647a9ddd807fff4ab51 (diff) | |
download | serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.tar.gz serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.tar.bz2 serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.tar.xz serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.zip |
Replace ~= with compare() in several places.
Make notes about how EXP on PVP shall work.
And later, that will give place to an honor system :3
But that's priority 2 out of a maximum of 7, so, only notes for now.
Diffstat (limited to 'npc/commands/event.txt')
-rw-r--r-- | npc/commands/event.txt | 4 |
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; |