summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-16 23:35:00 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-16 23:35:00 -0300
commitbdfa1a93725f70e95fc656fb43fcbea0dd752766 (patch)
tree41c683f6e517fdb5b736f718398c8e3868284720
parentbb62072627562da32cece1f2b47fb6b941f4c071 (diff)
downloadserverdata-bdfa1a93725f70e95fc656fb43fcbea0dd752766.tar.gz
serverdata-bdfa1a93725f70e95fc656fb43fcbea0dd752766.tar.bz2
serverdata-bdfa1a93725f70e95fc656fb43fcbea0dd752766.tar.xz
serverdata-bdfa1a93725f70e95fc656fb43fcbea0dd752766.zip
The bug: missing curly braces and ends.
-rw-r--r--npc/commands/event.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 990945ab8..8acc7f6bc 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -238,19 +238,20 @@ OnCall:
OnCall:
// Calculate
- if (!$@GM_EVENT && !$@MK_SCENE && $EVENT$ == "")
+ if (!$@GM_EVENT && !$@MK_SCENE && $EVENT$ == "") {
dispbottom l("The mana bridge is closed at the moment.");
- else if (BaseLevel < 10)
+ end;
+ } else if (BaseLevel < 10) {
dispbottom l("You are not strong enough to survive this trip.");
- else if (readparam(Sp) != readparam(MaxSp))
+ } else if (readparam(Sp) != readparam(MaxSp)) {
dispbottom l("You need all your mana to do this trip.");
- else if (readparam(Hp) != readparam(MaxHp))
+ } else if (readparam(Hp) != readparam(MaxHp)) {
dispbottom l("You cannot be hurt to do this trip.");
- else if (getmapname() ~= "001-*")
+ } else if (getmapname() ~= "001-*") {
dispbottom l("You are already at the Mana Plane of Existence.");
- else if (getmapname() == "boss" || getmapname() == "sec_pri" || getmapname() ~= "000-*" || getmapname() ~= "008-*" || getmapname() ~= "sore*")
+ } else if (getmapname() == "boss" || getmapname() == "sec_pri" || getmapname() ~= "000-*" || getmapname() ~= "008-*" || getmapname() ~= "sore*") {
dispbottom l("The Mana Plane is currently out of reach.");
- else {
+ } else {
// Monster King events take precedence over Aeros Event
switch ($@MK_SCENE) {
case MK_SIEGE_TULIM: