diff options
Diffstat (limited to 'npc/functions/mobpoint.txt')
-rw-r--r-- | npc/functions/mobpoint.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index d525ed616..7146dba41 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -11,8 +11,6 @@ function script fix_mobkill { } function script mobpoint { - if (!MPQUEST) - return; //if (killedrid < 1002) goto L_Return; // You get MobLv + 20% as MobPoints. @@ -21,6 +19,15 @@ function script mobpoint { .@addval=strmobinfo(3,killedrid); else .@addval=strmobinfo(3,killedrid)*12/10; + + // Global record + TS_MOBPT = TS_MOBPT + .@addval; + + // Not MPQuest - end + if (!MPQUEST) + return; + + // Give you the points Mobpt = Mobpt + .@addval; return; @@ -66,6 +73,7 @@ OnNPCKillEvent: // Frostia Imperial PVP Arena, Call Of Dusty, Arena Quirino Voraz. OnPCKillEvent: $PLAYERS_KILLED+=1; + TS_PVPCNT+=1; // killedrid .@m$=getmap(); .@bxp=readparam(BaseLevel, killedrid); |