L2JMobius

Vanguard Mistake in Mission Level

Street · 2 · 1735

Offline Street

  • Knight
  • ***
    • Posts: 82
Can't get old information about Mission Level, because we trying restore information from the key. Need to replace it with the value.
Code: [Select]
final String variable = PlayerVariables.MISSION_LEVEL_PROGRESS + MissionLevel.getInstance().getCurrentSeason();
if (getVariables().hasVariable(variable))
{
_missionLevelProgress = new MissionLevelPlayerDataHolder(getVariables().getString(variable));


Offline Paiplayer

  • Knight
  • ***
    • Posts: 74
Can't get old information about Mission Level, because we trying restore information from the key. Need to replace it with the value.
Code: [Select]
final String variable = PlayerVariables.MISSION_LEVEL_PROGRESS + MissionLevel.getInstance().getCurrentSeason();
if (getVariables().hasVariable(variable))
{
_missionLevelProgress = new MissionLevelPlayerDataHolder(getVariables().getString(variable));

Can you be more specific with what you talking about, wich file need to be changed or, at least, one patch option?



-- Edit

Go'ed some hous later to check this out and found @ java\org\l2jmobius\gameserver\model\actor\Player.java line 15665 . There's the DIFF:


Code: [Select]
diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Player.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Player.java
index 88ba4c6..223445b 100644
--- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Player.java
+++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Player.java

@@ -15655,7 +15662,7 @@
  final String variable = PlayerVariables.MISSION_LEVEL_PROGRESS + MissionLevel.getInstance().getCurrentSeason();
  if (getVariables().hasVariable(variable))
  {
- _missionLevelProgress = new MissionLevelPlayerDataHolder(variable);
+ _missionLevelProgress = new MissionLevelPlayerDataHolder(getVariables().getString(variable));
  }
  else
  {

Tested and it really fixed the Missions Tab. Congrats, @Street!
Want a developer? Check here or call me on Discord: PaiPlayer#5051