summaryrefslogtreecommitdiff
path: root/npc/functions/mobpoint.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/mobpoint.txt')
-rw-r--r--npc/functions/mobpoint.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index d525ed616..81c2030d7 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -68,21 +68,25 @@ OnPCKillEvent:
$PLAYERS_KILLED+=1;
// killedrid
.@m$=getmap();
+ // TODO: Start using readparam2() to read if the opponent was worthy
+ // That is, read total attack, defense, HP, evasion and hit chance
+ // And compare with your own readparam2(), then use a % and a table
+ // based on your (assassin's) level.
.@bxp=readparam(BaseLevel, killedrid);
.@jxp=readparam(JobLevel, killedrid);
- if (.@m$ ~= "001-8") {
+ if (compare(.@m$, "001-8")) {
// Quirino Voraz PVP Arena
// You get 5 times killed player level, and 1 time job level
getexp .@bxp*5, .@jxp;
- } else if (.@m$ ~= "ARENA" || .@m$ ~= "003-13") {
+ } else if (compare(.@m$, "ARENA") || compare(.@m$, "003-13")) {
// Tulimshar Duel Arena
// You get 3 times killed player level, and 2 times job level
getexp .@bxp*3, .@jxp*2;
- } else if (.@m$ ~= "001-10") {
+ } else if (compare(.@m$, "001-10")) {
// Call Of Dusty
// You get 3 times killed player level, and 3 times job level
getexp .@bxp*3, .@jxp*3;
- } else if (.@m$ ~= "001-10-1") {
+ } else if (compare(.@m$, "001-10-1")) {
// Call Of Dusty Boss Room
// You _may_ get a Bottled Dusty at random, but dead player status affect
.@bagistr=(readparam(bAgi, killedrid)*2)+readparam(bDex, killedrid);