From ce1ca0c776d02b14ee99a96241957b9e5ce368a0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Mar 2021 14:22:15 -0300 Subject: Have a pipeline do a dry run if the new system could work or not --- db/constants.conf | 3 +++ npc/003-3/malindou.txt | 7 +++++++ npc/functions/hub.txt | 11 +++++++++++ 3 files changed, 21 insertions(+) diff --git a/db/constants.conf b/db/constants.conf index 739b06773..2bdd11f06 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -2386,6 +2386,9 @@ constants_db: { ACADEMIC_SAGE: 7 ACADEMIC_GM: 8 + comment__: "OnPCBonusEvent constants" + + @include "db/si_config.conf" @include "conf/import/constants.conf" } diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 56303c920..5c235d025 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -676,6 +676,13 @@ OnSkillInvoke: @skillId=0; end; +OnPCBonus: + debugmes "PCBonus Invoked"; + if (!playerattached()) + end; + HUB_PCBonus(); + end; + // Level up events OnPCBaseLvUpEvent: switch (BaseLevel) { diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 320ea197a..c5ecb043f 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -931,3 +931,14 @@ function script HUB_PvP { return; } + + +// HUB_PCBonus () +function script HUB_PCBonus { + if (PCBONUS & PCB_SPLASHMASTER) { + bonus bSplashRange, 1; + } + debugmes "PCBonus Handled"; + return; +} + -- cgit v1.2.3-60-g2f50