From bb653239137c1679d65ab5d56dbc9e840f474ca9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Mar 2021 15:37:42 -0300 Subject: A total of seventeen traits. --- npc/functions/hub.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'npc') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 7ff4c0193..04d0a02d5 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -935,6 +935,54 @@ function script HUB_PvP { // HUB_PCBonus () function script HUB_PCBonus { + if (PCBONUS & PCB_ATKBONUS) { + bonus bAtk, 25; + } + if (PCBONUS & PCB_MATKBONUS) { + bonus bMatk, 25; + } + if (PCBONUS & PCB_DEFBONUS) { + bonus bDef, 20; + } + if (PCBONUS & PCB_MDEFBONUS) { + bonus bMdef, 20; + } + if (PCBONUS & PCB_EVDBONUS) { + bonus bFlee, 20; + } + if (PCBONUS & PCB_HITBONUS) { + bonus bHit, 25; + } + if (PCBONUS & PCB_CRITBONUS) { + bonus bCritical, 5; + } + if (PCBONUS & PCB_DOUBLEATK) { + bonus bDoubleAddRate, 5; + } + if (PCBONUS & PCB_ALLSTATS) { + bonus bAllStats, 1; + } + if (PCBONUS & PCB_HPBONUS) { + bonus bMaxHP, 500; + } + if (PCBONUS & PCB_MPBONUS) { + bonus bMaxSP, 150; + } + if (PCBONUS & PCB_ASPDBONUS) { + bonus bAspd, 10; + } + if (PCBONUS & PCB_WSPDBONUS) { + bonus bSpeedAddRate, 5; + } + if (PCBONUS & PCB_WEIGHTBONUS) { + bonus bAddMaxWeight, 1000; + } + if (PCBONUS & PCB_EXPBONUS) { + bonus2 bExpAddRace, RC_All, 10; + } + if (PCBONUS & PCB_NOKNOCKBACK) { + bonus bNoKnockback, 1; + } if (PCBONUS & PCB_SPLASHMASTER) { bonus bSplashRange, 1; } -- cgit v1.2.3-60-g2f50