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/functions | |
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/functions')
-rw-r--r-- | npc/functions/util.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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)); |