summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-11 22:08:26 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-11 22:08:26 -0300
commited93a69fb52902c1852f77e0c058763c61325533 (patch)
treee74685d8ed233ac27f0cbe9a4df07c1703948a6b
parent43a0474301733c9dce8a3cb8667124dfe64e2dfc (diff)
downloadserverdata-ed93a69fb52902c1852f77e0c058763c61325533.tar.gz
serverdata-ed93a69fb52902c1852f77e0c058763c61325533.tar.bz2
serverdata-ed93a69fb52902c1852f77e0c058763c61325533.tar.xz
serverdata-ed93a69fb52902c1852f77e0c058763c61325533.zip
Debug for HoraK
-rw-r--r--npc/magic/final.txt7
1 files changed, 7 insertions, 0 deletions
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) {