summaryrefslogtreecommitdiff
path: root/npc/003-0
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-24 15:40:24 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-24 15:40:24 -0300
commitdb020f7cccf3894ace14558b4c737ccc9f16886d (patch)
treea3d06ce383427ab09162170fe8c589f2dcda5b50 /npc/003-0
parent9de7d8b72c6f83131d563fc64e5c8fe4da9bd300 (diff)
downloadserverdata-db020f7cccf3894ace14558b4c737ccc9f16886d.tar.gz
serverdata-db020f7cccf3894ace14558b4c737ccc9f16886d.tar.bz2
serverdata-db020f7cccf3894ace14558b4c737ccc9f16886d.tar.xz
serverdata-db020f7cccf3894ace14558b4c737ccc9f16886d.zip
mlearn() skill, meant to reduce the maintenance cost on Magic Schools.
Diffstat (limited to 'npc/003-0')
-rw-r--r--npc/003-0/wizard.txt31
1 files changed, 6 insertions, 25 deletions
diff --git a/npc/003-0/wizard.txt b/npc/003-0/wizard.txt
index 7283e0e2f..0d15e6f48 100644
--- a/npc/003-0/wizard.txt
+++ b/npc/003-0/wizard.txt
@@ -101,31 +101,12 @@ L_Member:
//mesc l("Useful in PvP when your enemy have equipped a @@", getitemlink(AstralCube));
mes "";
mesn;
- mesq l("This useful skill will only require:");
- mesc l("@@/@@ @@", countitem(Acorn), (getskilllv(MG_NAPALMBEAT)+1)*60, getitemlink(Acorn));
- mesc l("@@/@@ @@", countitem(Bread), (getskilllv(MG_NAPALMBEAT)+1)*30, getitemlink(Bread));
- mesc l("@@/@@ @@", countitem(SmallMushroom), (getskilllv(MG_NAPALMBEAT)+1)*20, getitemlink(SmallMushroom));
- mesc l("@@/@@ @@", countitem(PinkBlobime), (getskilllv(MG_NAPALMBEAT)+1)*20, getitemlink(PinkBlobime));
- mesc l("@@/@@ @@", countitem(RedApple), (getskilllv(MG_NAPALMBEAT)+1)*15, getitemlink(RedApple));
- next;
- if (askyesno() == ASK_YES) {
- if (
- countitem(Acorn) < (getskilllv(MG_NAPALMBEAT)+1)*60 ||
- countitem(Bread) < (getskilllv(MG_NAPALMBEAT)+1)*30 ||
- countitem(SmallMushroom) < (getskilllv(MG_NAPALMBEAT)+1)*20 ||
- countitem(PinkBlobime) < (getskilllv(MG_NAPALMBEAT)+1)*20 ||
- countitem(RedApple) < (getskilllv(MG_NAPALMBEAT)+1)*15) goto L_Missing;
-
- delitem Acorn, (getskilllv(MG_NAPALMBEAT)+1)*60;
- delitem Bread, (getskilllv(MG_NAPALMBEAT)+1)*30;
- delitem SmallMushroom, (getskilllv(MG_NAPALMBEAT)+1)*20;
- delitem PinkBlobime, (getskilllv(MG_NAPALMBEAT)+1)*20;
- delitem RedApple, (getskilllv(MG_NAPALMBEAT)+1)*15;
-
- sk_lvup(MG_NAPALMBEAT);
-
- next;
- }
+ if (!mlearn(Acorn, 60,
+ Bread, 30,
+ SmallMushroom, 20,
+ PinkBlobime, 20,
+ RedApple, 15))
+ goto L_Missing;
break;
// Magic Bolts
case 3: