From 7ad63bedb74759ec9a162b451455d2955d4e3823 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 4 Feb 2020 12:19:54 -0300 Subject: Overpower is now based on level instead of BR. But the 30% rule still applies --- npc/functions/honor.txt | 7 ++++--- npc/functions/hub.txt | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/functions/honor.txt b/npc/functions/honor.txt index 015a40460..40f2d583e 100644 --- a/npc/functions/honor.txt +++ b/npc/functions/honor.txt @@ -58,13 +58,14 @@ function script get_BR { // Calculate the Honor Points which are due // calc_HR( get_BR(getcharid(3)), get_BR(killedrid) ) function script calc_HR { - .@atk_br=getarg(0); - .@def_br=getarg(1); + .@atk_br=get_BR(getarg(0)); + .@def_br=get_BR(getarg(1)); .@cbase=1000; .@maxop=300; // 30% // Calculate how much (%) you've used above needed - .@overpower=.@atk_br*.@cbase/.@def_br; + //.@overpower=.@atk_br*.@cbase/.@def_br; + .@overpower=readparam(BaseLevel, getarg(0))*.@cbase/readparam(BaseLevel, getarg(1)); // Dishonorable: You used maxop above cbase // Maybe we should use level difference? diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index d95a18c0d..046eb7f40 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -270,7 +270,7 @@ function script HUB_PvP { // Prepare local variables .@atk=get_BR(getcharid(3)); .@def=get_BR(killedrid); - .@honor=calc_HR(.@atk, .@def); + .@honor=calc_HR(getcharid(3), killedrid); .@m$=getmap(); // This is an official PVP Map -- cgit v1.2.3-60-g2f50