diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-19 18:06:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-19 18:06:29 -0300 |
commit | c76ffc44c9cd3bef7132faefcdf94c1d9469491b (patch) | |
tree | 461a8d9289ab7e5d85dde2bd9af198cf71e6bd8a /npc | |
parent | acd03d6f8ce35fcd88455655756db196aa3e1ba0 (diff) | |
download | serverdata-c76ffc44c9cd3bef7132faefcdf94c1d9469491b.tar.gz serverdata-c76ffc44c9cd3bef7132faefcdf94c1d9469491b.tar.bz2 serverdata-c76ffc44c9cd3bef7132faefcdf94c1d9469491b.tar.xz serverdata-c76ffc44c9cd3bef7132faefcdf94c1d9469491b.zip |
Touching Mana Stones will now add you Divine Protection Skill (1 level/touch)
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)); |