From ed93a69fb52902c1852f77e0c058763c61325533 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 11 Dec 2021 22:08:26 -0300 Subject: Debug for HoraK --- npc/magic/final.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npc/magic/final.txt b/npc/magic/final.txt index c583a481..c3052631 100644 --- a/npc/magic/final.txt +++ b/npc/magic/final.txt @@ -223,6 +223,7 @@ function script HUB_SkillInvoke { // HUB_PCBonus () function script HUB_PCBonus { + if (getcharid(3) == 2283619) debugmes "Recalculate HoraK."; /* Evol2TMWA Stat Hacks */ // Criticals // Dex @@ -240,9 +241,11 @@ function script HUB_PCBonus { // can't realy test it right now since +mattack and -mattack for many items dont work but for some of the common mage items it seems ok } if (FOCUSING & FSKILL_RAGING) { + if (getcharid(3) == 2283619) debugmes "Ragging is ON"; if (getiteminfo(getequipid(EQI_HAND_R), ITEMINFO_SUBTYPE) != W_BOW) { // atm trolls can use raging, I thought it's ok since they do damage over Str and have only a range of 3 + if (getcharid(3) == 2283619) debugmes "Not a bow"; @item_crit = 0; switch (getequipid(EQI_HEAD_TOP)) { @@ -258,10 +261,13 @@ function script HUB_PCBonus { @item_crit = 0; break; } + if (getcharid(3) == 2283619) debugmes "Crit is %d", @item_crit; if (getequipid(EQI_HAND_R) == Beheader) @item_crit -= 25; bonus bCritical, (getskilllv(SKILL_RAGING))*((readparam(bDex)/40)+(readparam(bLuk)/30)+(@item_crit/10)+(readparam(bStr)/10)-2); + if (getcharid(3) == 2283619) debugmes "Result: %d", (getskilllv(SKILL_RAGING))*((readparam(bDex)/40)+(readparam(bLuk)/30)+(@item_crit/10)+(readparam(bStr)/10)-2); + if (getcharid(3) == 2283619) debugmes "Arg0: %d, Arg1: %d", getskilllv(SKILL_RAGING), ((readparam(bDex)/40)+(readparam(bLuk)/30)+(@item_crit/10)+(readparam(bStr)/10)-2); // must balance that more to get less crit on lower dex bonus bDef2, -(getskilllv(SKILL_RAGING)*((readparam(bStr)/20)-2)); } @@ -309,6 +315,7 @@ function script HUB_PCBonus { bonus bDoubleAddRate, (readparam(bDex)*getskilllv(SKILL_MALLARDS_EYE))/50; // max reachable is 18 Double Damage atm } } + if (getcharid(3) == 2283619) debugmes "Finished the bonus calc for HoraK"; /* Class A Equipment */ if (getequipid(EQI_HAND_R) > 1) { -- cgit v1.2.3-60-g2f50