summaryrefslogtreecommitdiff
path: root/npc/025-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-08 19:54:55 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-08 19:54:55 -0300
commit432adb9bc99d906f8fa7f8c68a60ba57696c4529 (patch)
tree3b7d03e887dd1946e7313ad10946574cce763f60 /npc/025-2
parenta57e6b31a59fddb61fc64ab8f4ab35249efc3eb9 (diff)
downloadserverdata-432adb9bc99d906f8fa7f8c68a60ba57696c4529.tar.gz
serverdata-432adb9bc99d906f8fa7f8c68a60ba57696c4529.tar.bz2
serverdata-432adb9bc99d906f8fa7f8c68a60ba57696c4529.tar.xz
serverdata-432adb9bc99d906f8fa7f8c68a60ba57696c4529.zip
Fix bugs on Phoenix Rebirth and rewrite its logic.
Overlevel at rebirth time will now be counted to make further rebirths easier.
Diffstat (limited to 'npc/025-2')
-rw-r--r--npc/025-2/phoenix.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/npc/025-2/phoenix.txt b/npc/025-2/phoenix.txt
index 4a3a4f74a..72da5aba6 100644
--- a/npc/025-2/phoenix.txt
+++ b/npc/025-2/phoenix.txt
@@ -10,20 +10,27 @@
mesq l("Hello there. My name is %s.", .name$);
next;
mesn;
+ if (REBIRTH)
+ .@blvl=0-(REBIRTH_OVERLEVEL/REBIRTH);
+ else
+ .@blvl=0;
+
switch (REBIRTH) {
case 0:
- mesc l("Once you reach level 99, I'll offer you a life-time opportunity to delete all your levels and experience for your first rebirth!");
- .@blvl=99;
+ .@blvl+=99;
+ .@rebirth$=l("first");
break;
case 4:
- mesc l("Once you reach level 150, I'll offer you a life-time opportunity to delete all your levels and experience for your first rebirth!");
- .@blvl=150;
+ .@blvl+=150;
+ .@rebirth$=l("final");
break;
default:
+ setpcblock(255, false);
mesc l("Unfortunately you cannot rebirth anymore!");
close;
break;
}
+ mesc l("Once you reach level %d, I'll offer you a life-time opportunity to delete all your levels and experience for your %s rebirth!", .@blvl, .@rebirth$);
next;
mesn;
mesq l("Rebirth is free. Here are the perks you'll get by doing the rebirth:");