From 91c5ecb824d5c99d244f87f23ba0162a568e2934 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 23 Jan 2020 21:59:43 -0300 Subject: Possible exploit undressing at last moment --- npc/functions/hub.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index eadbb949f..0e052720e 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -270,10 +270,15 @@ function script HUB_PvP { HONOR+=.@honor; } else { // Dishonorable... But... Legit? - if (is_bandit(killedrid)) + if (is_bandit(killedrid)) { HONOR+=1; - else - HONOR+=.@honor; // It's negative + } else { + // Did the defensor cheat? (within Level+30% rule) + if (BaseLevel < readparam(BaseLevel, killedrid)*13/10) + HONOR+=1; // Ehhhhhh............ Well. + else + HONOR+=.@honor; // It's negative. + } } // It was a duel! -- cgit v1.2.3-60-g2f50