From d41597b05cd9c2a91272922043b8906257ad629c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 26 Nov 2022 17:04:59 -0300 Subject: Do not allow new accounts to select extra XP gain or Knockback immunity. The first alt of an account must NOT be able to select these bonuses. --- npc/functions/clientversion.txt | 6 ++++++ npc/functions/rebirth.txt | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index bc5795be9..67d3f4870 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -1074,7 +1074,13 @@ function script clientupdater { UPDATE=1669491875; if (TUT_VAR) { .@dg = true; + // Allow you to choose the starting trait + // However, we unset #TUTORIAL_DONE so EXP Gain and Knockback are OFF + // While alts are generally allowed to have these starting traits, + // there's no way for veterans select this. + #TUTORIAL_DONE = false; do { mesc l("You must choose a trait now, or the opportunity will be forfeit."), 1; } while (!ChooseTrait()); + #TUTORIAL_DONE = true; } } diff --git a/npc/functions/rebirth.txt b/npc/functions/rebirth.txt index bbf0388bf..d997c4c37 100644 --- a/npc/functions/rebirth.txt +++ b/npc/functions/rebirth.txt @@ -24,8 +24,8 @@ function script ChooseTrait { rif(!(PCBONUS & PCB_ASPDBONUS), l("Atk. Speed +10")), PCB_ASPDBONUS, rif(!(PCBONUS & PCB_WSPDBONUS), l("Walk +5%")), PCB_WSPDBONUS, rif(!(PCBONUS & PCB_WEIGHTBONUS), l("Max Weight +1kg")), PCB_WEIGHTBONUS, - rif(!(PCBONUS & PCB_EXPBONUS), l("EXP Gain +10%")), PCB_EXPBONUS, - rif(!(PCBONUS & PCB_NOKNOCKBACK), l("Knockback Immunity")), PCB_NOKNOCKBACK, + rif(#TUTORIAL_DONE && !(PCBONUS & PCB_EXPBONUS), l("EXP Gain +10%")), PCB_EXPBONUS, + rif(#TUTORIAL_DONE && !(PCBONUS & PCB_NOKNOCKBACK), l("Knockback Immunity")), PCB_NOKNOCKBACK, rif(REBIRTH && !(PCBONUS & PCB_SPLASHMASTER), l("AoE (not stackable)")), PCB_SPLASHMASTER, rif(REBIRTH && !(PCBONUS & PCB_RANGEMASTER), l("Atk Range +1")), PCB_RANGEMASTER, rif(REBIRTH < 5 && !(PCBONUS & PCB_LEGENDARY), l("No penalty against Legendary mobs")), PCB_LEGENDARY; -- cgit v1.2.3-70-g09d2