summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-23 19:17:53 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-23 19:17:53 -0300
commit80a22de24c6c88e6f4159fd291c7c2c2bbdcb525 (patch)
treecc714209674944cc3aaf66a0d64a2b4c48597d3b /npc
parent966af18a0e7d6b0a5b4155e19b299bcb46cc7864 (diff)
downloadserverdata-80a22de24c6c88e6f4159fd291c7c2c2bbdcb525.tar.gz
serverdata-80a22de24c6c88e6f4159fd291c7c2c2bbdcb525.tar.bz2
serverdata-80a22de24c6c88e6f4159fd291c7c2c2bbdcb525.tar.xz
serverdata-80a22de24c6c88e6f4159fd291c7c2c2bbdcb525.zip
[skip ci] notes about zero job point system
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/mobpoint.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index 5a5358d61..8c6970501 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -21,10 +21,12 @@ function script mobpoint {
OnNPCKillEvent:
// Remove undue Job exp
- if (is_admin())
- dispbottom l("@@", strmobinfo(7, killedrid));
- if (strmobinfo(7, killedrid) == 0 && readparam(JobExp) > 0)
+ // The check is probably correct, but setparam is not working =/
+ if (strmobinfo(7, killedrid) == 0 && readparam(JobExp) > 0) {
setparam(JobExp, readparam(JobExp)-1);
+ if (is_admin())
+ dispbottom readparam(JobExp);
+ }
// call functions
callfunc "mobpoint";