summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-19 18:06:29 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-19 18:06:29 -0300
commitc76ffc44c9cd3bef7132faefcdf94c1d9469491b (patch)
tree461a8d9289ab7e5d85dde2bd9af198cf71e6bd8a /npc/functions
parentacd03d6f8ce35fcd88455655756db196aa3e1ba0 (diff)
downloadserverdata-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.txt5
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));