summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-23 21:59:43 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-23 21:59:43 -0300
commit91c5ecb824d5c99d244f87f23ba0162a568e2934 (patch)
treed6d9fbbed780b243b422a30c7fd5858b4a2ab9bd /npc
parent215e4c40b3c08bbce484bccfc1c31538774d48dc (diff)
downloadserverdata-91c5ecb824d5c99d244f87f23ba0162a568e2934.tar.gz
serverdata-91c5ecb824d5c99d244f87f23ba0162a568e2934.tar.bz2
serverdata-91c5ecb824d5c99d244f87f23ba0162a568e2934.tar.xz
serverdata-91c5ecb824d5c99d244f87f23ba0162a568e2934.zip
Possible exploit undressing at last moment
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/hub.txt11
1 files 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!