summaryrefslogtreecommitdiff
path: root/npc/functions/mobpoint.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-22 18:15:28 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-22 18:15:28 -0300
commit36bbcb6f7b41f78fba15b7f583571252f90f5fc1 (patch)
tree6590759aeec7917e3125f33048b6df09084f8bba /npc/functions/mobpoint.txt
parent12105900719c22e85466ad32052a2ceb7fc0f928 (diff)
downloadserverdata-36bbcb6f7b41f78fba15b7f583571252f90f5fc1.tar.gz
serverdata-36bbcb6f7b41f78fba15b7f583571252f90f5fc1.tar.bz2
serverdata-36bbcb6f7b41f78fba15b7f583571252f90f5fc1.tar.xz
serverdata-36bbcb6f7b41f78fba15b7f583571252f90f5fc1.zip
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! :(
Diffstat (limited to 'npc/functions/mobpoint.txt')
-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;