summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-28 15:37:42 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-28 15:37:42 -0300
commitbb653239137c1679d65ab5d56dbc9e840f474ca9 (patch)
treee6769596f0829684970f1a5dc80a0f590f62bd2a
parent385381967ad140941c3daeb552ab5ce49f212c65 (diff)
downloadserverdata-bb653239137c1679d65ab5d56dbc9e840f474ca9.tar.gz
serverdata-bb653239137c1679d65ab5d56dbc9e840f474ca9.tar.bz2
serverdata-bb653239137c1679d65ab5d56dbc9e840f474ca9.tar.xz
serverdata-bb653239137c1679d65ab5d56dbc9e840f474ca9.zip
A total of seventeen traits.
-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;
}