summaryrefslogtreecommitdiff
path: root/npc/009-5
diff options
context:
space:
mode:
Diffstat (limited to 'npc/009-5')
-rw-r--r--npc/009-5/manastone.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/npc/009-5/manastone.txt b/npc/009-5/manastone.txt
index 47e0f1017..17a5a0ca5 100644
--- a/npc/009-5/manastone.txt
+++ b/npc/009-5/manastone.txt
@@ -26,20 +26,21 @@ L_NotWorthy:
end;
L_Level:
- if (MAGIC_LVL == 0 && readparam(bInt) >= 30 && BaseLevel >= 40 && JobLevel >= 10) goto L_LevelUp;
+ if (MAGIC_LVL == 0 && readparam(bInt) >= 30 && BaseLevel >= 40 && JobLevel >= 10 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
// Everything below this line is garbage
- if (MAGIC_LVL == 1 && readparam(bInt) >= 60 && BaseLevel >= 60 && JobLevel >= 30) goto L_LevelUp;
- if (MAGIC_LVL == 2 && readparam(bInt) >= 90 && BaseLevel >= 80 && JobLevel >= 50) goto L_LevelUp;
- if (MAGIC_LVL == 3 && readparam(bInt) >= 120 && BaseLevel >= 100 && JobLevel >= 70) goto L_LevelUp;
- if (MAGIC_LVL == 4 && readparam(bInt) >= 150 && BaseLevel >= 120 && JobLevel >= 90) goto L_LevelUp;
- if (MAGIC_LVL == 5 && readparam(bInt) >= 180 && BaseLevel >= 140 && JobLevel >= 110) goto L_LevelUp;
- if (MAGIC_LVL == 6 && readparam(bInt) >= 210 && BaseLevel >= 160 && JobLevel >= 120) goto L_LevelUp;
+ if (MAGIC_LVL == 1 && readparam(bInt) >= 60 && BaseLevel >= 60 && JobLevel >= 30 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
+ if (MAGIC_LVL == 2 && readparam(bInt) >= 90 && BaseLevel >= 80 && JobLevel >= 50 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
+ if (MAGIC_LVL == 3 && readparam(bInt) >= 120 && BaseLevel >= 100 && JobLevel >= 70 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
+ if (MAGIC_LVL == 4 && readparam(bInt) >= 150 && BaseLevel >= 120 && JobLevel >= 90 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
+ if (MAGIC_LVL == 5 && readparam(bInt) >= 180 && BaseLevel >= 140 && JobLevel >= 110 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
+ if (MAGIC_LVL == 6 && readparam(bInt) >= 210 && BaseLevel >= 160 && JobLevel >= 120 && readparam(Sp) == readparam(MaxSp)) goto L_LevelUp;
if (MAGIC_LVL >= 7) npctalk3 l("You already got all power I could grant you!");
+ if (is_gm()) percentheal -20, -50;
if (MAGIC_LVL >= 7 || is_gm()) close;
L_NotWorthy2:
- if (is_gm()) disablenpc("Mana Stone");
+ if (is_gm()) movenpc(.name$, rand(200), rand(200));
if (is_gm()) close;
percentheal -20, -50;
npctalk3 l("You are not worthy!");