summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf18
-rw-r--r--npc/functions/hub.txt48
2 files changed, 65 insertions, 1 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 36c1a7ca4..30af1bd60 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -2387,7 +2387,23 @@ constants_db: {
ACADEMIC_GM: 8
comment__: "OnPCBonusEvent constants"
- PCB_SPLASHMASTER: 1
+ PCB_ATKBONUS: 1
+ PCB_MATKBONUS: 2
+ PCB_DEFBONUS: 4
+ PCB_MDEFBONUS: 8
+ PCB_EVDBONUS: 16
+ PCB_HITBONUS: 32
+ PCB_CRITBONUS: 64
+ PCB_DOUBLEATK: 128
+ PCB_ALLSTATS: 256
+ PCB_HPBONUS: 512
+ PCB_MPBONUS: 1024
+ PCB_ASPDBONUS: 2048
+ PCB_WSPDBONUS: 4096
+ PCB_WEIGHTBONUS: 8192
+ PCB_EXPBONUS: 16384
+ PCB_NOKNOCKBACK: 32768
+ PCB_SPLASHMASTER: 65536
@include "db/si_config.conf"
@include "conf/import/constants.conf"
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;
}