diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-0-2/manastone.txt | 1 | ||||
-rw-r--r-- | npc/011-1/manastone.txt | 1 | ||||
-rw-r--r-- | npc/functions/util.txt | 5 |
3 files changed, 6 insertions, 1 deletions
diff --git a/npc/003-0-2/manastone.txt b/npc/003-0-2/manastone.txt index 23ef81aec..3339e29b3 100644 --- a/npc/003-0-2/manastone.txt +++ b/npc/003-0-2/manastone.txt @@ -65,6 +65,7 @@ L_LevelUp: if (!MAGIC_LVL) mes l("Magic Power is granted to you, but you die from it."); if (MAGIC_LVL) mes l("More Magic Power is granted to you, but you die from it."); MAGIC_LVL = MAGIC_LVL+1; + sk_lvup(AL_DP); percentheal -100, -100; close; diff --git a/npc/011-1/manastone.txt b/npc/011-1/manastone.txt index e4a2255e9..53be3b59f 100644 --- a/npc/011-1/manastone.txt +++ b/npc/011-1/manastone.txt @@ -73,6 +73,7 @@ L_LevelUp: if (!MAGIC_LVL) mes l("Magic Power is granted to you, but you die from it."); if (MAGIC_LVL) mes l("More Magic Power is granted to you, but you die from it."); MAGIC_LVL = MAGIC_LVL+1; + sk_lvup(AL_DP); // No penalty for death provoked by Mana Stone, see npc/001-8/hub.txt for more info @deathpenalty_realvalue=readparam(BaseExp); @deathpenalty_realvaljob=readparam(JobExp); diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 519c14f00..4e12e5fed 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -582,6 +582,8 @@ function script max_subclass { } */ +// MAGIC_PTS → Amount of used Magic Skill Points +// sk_maxpoints() → Max Magic Skill Points you may use // Returns how many points you can use function script sk_maxpoints { // 2 points per magic level @@ -592,7 +594,7 @@ function script sk_maxpoints { } // Returns true if a skill can be leveled up. -// Ideally, we would also check for skill max level... +// TODO: Ideally, we would also check for skill max level... // sk_canlvup( sk, {cost=1} ) function script sk_canlvup { if (MAGIC_PTS+getarg(1,1) >= sk_maxpoints()) @@ -601,6 +603,7 @@ function script sk_canlvup { } // Level up a skill in 1 level +// TODO: Return the point if leveling about Max Level // sk_lvup( sk ) function script sk_lvup { .@lvl=getskilllv(getarg(0)); |