From 80a22de24c6c88e6f4159fd291c7c2c2bbdcb525 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 23 Jul 2018 19:17:53 -0300 Subject: [skip ci] notes about zero job point system --- npc/functions/mobpoint.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'npc') 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"; -- cgit v1.2.3-70-g09d2