diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-26 17:04:59 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-26 17:04:59 -0300 |
commit | d41597b05cd9c2a91272922043b8906257ad629c (patch) | |
tree | 4650876f351e0e7d6f2d8ec31399ac57212c78d2 /npc/functions | |
parent | d3e20749c8cf48fb2cabea6793d67f772cc85f47 (diff) | |
download | serverdata-d41597b05cd9c2a91272922043b8906257ad629c.tar.gz serverdata-d41597b05cd9c2a91272922043b8906257ad629c.tar.bz2 serverdata-d41597b05cd9c2a91272922043b8906257ad629c.tar.xz serverdata-d41597b05cd9c2a91272922043b8906257ad629c.zip |
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.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/clientversion.txt | 6 | ||||
-rw-r--r-- | npc/functions/rebirth.txt | 4 |
2 files changed, 8 insertions, 2 deletions
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; |