summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/mobpoint.txt7
1 files changed, 7 insertions, 0 deletions
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;