From 638b57629c35aeea9baaa72e1e1b8dcf5c65a107 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 10 Jan 2019 09:56:27 -0200 Subject: Rewrite the if loop on PVP Reward --- npc/functions/mobpoint.txt | 16 +++++++++------- 1 file 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; -- cgit v1.2.3-60-g2f50