summaryrefslogtreecommitdiff
path: root/npc/functions/mobpoint.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/mobpoint.txt')
-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";