summaryrefslogtreecommitdiff
path: root/npc/027-1/elza.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-30 15:35:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-30 15:35:20 -0300
commit49a396f91e0978851c648cfeff90334c53faee41 (patch)
treea1f02dcd6231b3726f0ca3712dffea27777345a1 /npc/027-1/elza.txt
parent784326d8574b76eb325ebec37a9f2efb5fddcc49 (diff)
downloadserverdata-49a396f91e0978851c648cfeff90334c53faee41.tar.gz
serverdata-49a396f91e0978851c648cfeff90334c53faee41.tar.bz2
serverdata-49a396f91e0978851c648cfeff90334c53faee41.tar.xz
serverdata-49a396f91e0978851c648cfeff90334c53faee41.zip
Revert a regression: Forgetful NPCs work again.
And with new rules. And I excluded Destructive magic from the NPCs.
Diffstat (limited to 'npc/027-1/elza.txt')
-rw-r--r--npc/027-1/elza.txt36
1 files changed, 2 insertions, 34 deletions
diff --git a/npc/027-1/elza.txt b/npc/027-1/elza.txt
index 5acdb881f..d948917f7 100644
--- a/npc/027-1/elza.txt
+++ b/npc/027-1/elza.txt
@@ -5,44 +5,12 @@
// Forgetful
027-1,86,110,0 script Elza NPC_DARK_SORCERER_F,{
- mesn l("Elza, the Forgetful");
+ mesn l("%s, the Forgetful", .name$);
mesq l("What was I doing before...? I totally forgot!");
if (any(true, false))
mesc l("Have you seen my brother %s?", any("Enzo", "Ezra"));
- // FIXME
- close;
next;
- mesc l("Teaching Elza your skills will make you both forget them."), 1;
- mesc l("Once your skill is forgotten, the Magic Skill Points used will be freed."), 1;
- mesc l("But be careful: Only 3MSP-costed skills can be forgotten, and learning fees WON'T be given back!"), 1;
- do
- {
- next;
- mesc l("Which skill will you FORGET permanently today?"), 1;
- menuint
- l("Uhm... Bye?"), 0,
- rif(getskilllv(WZ_FROSTNOVA), l("Frost Nova")), WZ_FROSTNOVA,
- rif(getskilllv(AC_SHOWER), l("Arrow Shower")), AC_SHOWER,
- rif(getskilllv(SN_SHARPSHOOTING), l("Sharpshooter")), SN_SHARPSHOOTING,
- rif(getskilllv(SN_WINDWALK), l("Wind Walk")), SN_WINDWALK,
- rif(getskilllv(CR_TRUST), l("Last Man Standing")), CR_TRUST,
- l("None at the moment!"), 0;
- if (!@menuret)
- close;
- mes "";
- mesc l("Skill @@ will be permanently lost!", @menuret), 1;
- mesc l("Continue anyway?"), 1;
- if (askyesno() == ASK_YES) {
- .@lv=getskilllv(@menuret)+2;
- skill @menuret, 0, 0;
- MAGIC_PTS-=.@lv;
- mesc l("Skill @@ has been lost", @menuret), 3;
- mesc l("You recovered @@ magic skill points", .@lv), 3;
- } else {
- mesn l("Elza, the Forgetful");
- mesq l("Uh, what?");
- }
- } while (@menuret);
+ ForgetfulNPC(.name$, CLASS_SCHOLARSHIP);
close;
OnInit: