summaryrefslogtreecommitdiff
path: root/npc/functions/mobpoint.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-10 09:56:27 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-10 09:56:27 -0200
commit638b57629c35aeea9baaa72e1e1b8dcf5c65a107 (patch)
tree7230c9e892267150946e9b064c8d0cc155259031 /npc/functions/mobpoint.txt
parent350a923922924e0096679e90f722b55356612c57 (diff)
downloadserverdata-638b57629c35aeea9baaa72e1e1b8dcf5c65a107.tar.gz
serverdata-638b57629c35aeea9baaa72e1e1b8dcf5c65a107.tar.bz2
serverdata-638b57629c35aeea9baaa72e1e1b8dcf5c65a107.tar.xz
serverdata-638b57629c35aeea9baaa72e1e1b8dcf5c65a107.zip
Rewrite the if loop on PVP Reward
Diffstat (limited to 'npc/functions/mobpoint.txt')
-rw-r--r--npc/functions/mobpoint.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index 6b9f92405..bb2c1f03e 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -47,20 +47,22 @@ OnPCKillEvent:
.@m$=getmap();
.@bxp=readparam(BaseLevel, killedrid);
.@jxp=readparam(JobLevel, killedrid);
- // Quirino Voraz PVP Arena
if (.@m$ ~= "001-8") {
+ // Quirino Voraz PVP Arena
// You get 5 times killed player level, and 1 time job level
getexp .@bxp*5, .@jxp;
- }
- // Tulimshar Duel Arena
- if (.@m$ ~= "ARENA" || .@m$ ~= "003-13") {
+ } else if (.@m$ ~= "ARENA" || .@m$ ~= "003-13") {
+ // Tulimshar Duel Arena
// You get 3 times killed player level, and 2 times job level
getexp .@bxp*3, .@jxp*2;
- }
- // Call Of Dusty
- if (.@m$ ~= "001-10") {
+ } else if (.@m$ ~= "001-10") {
+ // Call Of Dusty
// You get 3 times killed player level, and 3 times job level
getexp .@bxp*3, .@jxp*3;
+ } else {
+ // Anywhere else
+ // You get 0.5 times killed player level, and 0 times job level
+ getexp (.@bxp/2), 0;
}
end;