L2JMobius

C4 Adjustments and fixes to New Player Rewards system (C4+)

altronrain · 4 · 3035

Offline altronrain

  • Heir
  • **
    • Posts: 18
Changes to the New Player Rewards system, to make it closer to retail.
All according to my post in discussion section: https://l2jmobius.org/forum/index.php?topic=8614.0

What's new:
  • Added PlayerVariable to track newbie rewards received (initial value 0);
  • Variable is set during player creation if player is considered newbie;
  • If var becomes 2 player cannot receive newbie rewards anymore (that prevents receiving it thrice for humans, elves, d_elves which balances them with dwarfs and orcs);
  • Adjusted starter weapon quests (Q106, Q107, Q108) soulshot reward from 6k to 7k;
  • Added newbie rewards for Elves quests Q102 and Q260 (first quest is arguable, but why not, it's kinda symmetry with humans and dark elves);
  • For Q257 without race restrictions added specific condittion for Orc (always reward soulshots); (rare occasion on low rates, though I believe it's better place it there)

I beleive it working after series of tests on my server instance.

Pastebin link (due to exceeding 20k symbols with this dif patch): https://pastebin.com/4CvYdEbd
Password: HvM59Y8Dcf


Online Mobius

  • Distinguished King
  • *****
    • Posts: 15983

Offline altronrain

  • Heir
  • **
    • Posts: 18
Looked one more time through this quests (during play process).
100x Lesser Healing Potions reward should be added to Q105_SkirmishWithTheOrcs quest. All other ones have pots as a reward except this one.
Code: [Select]
diff -U 3 dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java
--- dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java Sun Jun 19 20:36:17 2022
+++ dist/game/data/scripts/quests/Q105_SkirmishWithTheOrcs/Q105_SkirmishWithTheOrcs.java Sun Jun 26 19:30:43 2022
@@ -52,6 +52,7 @@
  private static final int SOULSHOT_FOR_BEGINNERS = 5789;
  private static final int RED_SUNSET_STAFF = 754;
  private static final int RED_SUNSET_SWORD = 981;
+ private static final int LESSER_HEALING_POT = 1060;
  private static final int ECHO_BATTLE = 4412;
  private static final int ECHO_LOVE = 4413;
  private static final int ECHO_SOLITUDE = 4414;
@@ -173,6 +174,7 @@
  }
  }
 
+ st.rewardItems(LESSER_HEALING_POT, 100);
  st.giveItems(ECHO_BATTLE, 10);
  st.giveItems(ECHO_LOVE, 10);
  st.giveItems(ECHO_SOLITUDE, 10);