diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-23 21:55:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-23 21:55:21 -0300 |
commit | 13271142c7bb7e47e43a236694e8187e6cef4ad9 (patch) | |
tree | 9aa8c78399f59bdc4a7799f673aeef86bf173e25 /npc | |
parent | f1499d5aed6aecff54e234ac5e305d6748eda3af (diff) | |
download | serverdata-13271142c7bb7e47e43a236694e8187e6cef4ad9.tar.gz serverdata-13271142c7bb7e47e43a236694e8187e6cef4ad9.tar.bz2 serverdata-13271142c7bb7e47e43a236694e8187e6cef4ad9.tar.xz serverdata-13271142c7bb7e47e43a236694e8187e6cef4ad9.zip |
Honor is now on workflow
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/hub.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 9fc9c9876..6bcda9ccb 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -263,7 +263,27 @@ function script HUB_PvP { .@honor=calc_HR(.@atk, .@def); .@m$=getmap(); + // This is an official PVP Map if (ispvpmap(.@m$)) { + // Honorable Death + if (.@honor) { + HONOR+=.@honor; + } else { + // Dishonorable... But... Legit? + if (is_bandit(killedrid)) + HONOR+=1; + else + HONOR+=.@honor; // It's negative + } + + // It was a duel! + } else { + // Honorable Duel: HONOR +30% + if (.@honor) + HONOR+=max(1, .@honor*3/10); + else + HONOR+=1; + // ^ Dishonorable duel, but was a duel! } // TODO: Start using readparam2() to read if the opponent was worthy |