From 36bbcb6f7b41f78fba15b7f583571252f90f5fc1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 22 Jul 2018 18:15:28 -0300 Subject: Block by script JExp gain when no JExp gain is due. Untested, specially when multiple players kill the monster. Hey, now I need a playtester! :( --- npc/functions/mobpoint.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index 9219f3b29..5a5358d61 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -20,6 +20,13 @@ function script mobpoint { end; OnNPCKillEvent: + // Remove undue Job exp + if (is_admin()) + dispbottom l("@@", strmobinfo(7, killedrid)); + if (strmobinfo(7, killedrid) == 0 && readparam(JobExp) > 0) + setparam(JobExp, readparam(JobExp)-1); + + // call functions callfunc "mobpoint"; callfunc "SQuest_Hasan"; end; -- cgit v1.2.3-60-g2f50