diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-10 13:13:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-10 13:13:58 -0300 |
commit | 3428c42f3acbd3e6661d92d988c1cdefaa42264f (patch) | |
tree | ad1fe716734d411e16116ab74d6809420e82b384 /npc/functions/mobpoint.txt | |
parent | 9cdccc4bc94f87e8fa2f4647a9ddd807fff4ab51 (diff) | |
download | serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.tar.gz serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.tar.bz2 serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.tar.xz serverdata-3428c42f3acbd3e6661d92d988c1cdefaa42264f.zip |
Replace ~= with compare() in several places.
Make notes about how EXP on PVP shall work.
And later, that will give place to an honor system :3
But that's priority 2 out of a maximum of 7, so, only notes for now.
Diffstat (limited to 'npc/functions/mobpoint.txt')
-rw-r--r-- | npc/functions/mobpoint.txt | 12 |
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); |