Fixed unset global variables issue.
This commit is contained in:
@@ -83,8 +83,8 @@ public final class Core extends AbstractNpcAI
|
||||
}
|
||||
else
|
||||
{
|
||||
final String test = GlobalVariablesManager.getInstance().getString("Core_Attacked");
|
||||
if (test.equalsIgnoreCase("true"))
|
||||
final boolean test = GlobalVariablesManager.getInstance().getBoolean("Core_Attacked", false);
|
||||
if (test)
|
||||
{
|
||||
_firstAttacked = true;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ public final class Core extends AbstractNpcAI
|
||||
@Override
|
||||
public void onSave()
|
||||
{
|
||||
GlobalVariablesManager.getInstance().set("Core_Attacked", Boolean.toString(_firstAttacked));
|
||||
GlobalVariablesManager.getInstance().set("Core_Attacked", _firstAttacked);
|
||||
}
|
||||
|
||||
public void spawnBoss(L2GrandBossInstance npc)
|
||||
|
||||
@@ -29,7 +29,7 @@ What is done
|
||||
-Quest Fishing Specialist's Request
|
||||
-Olympiad NPC updates
|
||||
-Dimensional Merchant updates
|
||||
-Retail gatekeeper teleports
|
||||
-Classic gatekeeper teleports
|
||||
-Admin menu teleport and shop cleanups
|
||||
-Blacksmith NPC updates
|
||||
-New Race Track arena zone
|
||||
@@ -39,6 +39,7 @@ What is done
|
||||
-Moon Knight quest
|
||||
-Item augmentation support
|
||||
-Retail Henna list
|
||||
-Floran Agricultural Area clan halls
|
||||
|
||||
Custom work
|
||||
-Newbie Helper NPC location info
|
||||
@@ -50,7 +51,6 @@ TODO list
|
||||
-Retail NPC dialogs
|
||||
-Retail NPC buylists
|
||||
-Test quests and update rewards
|
||||
-Test Floran Agricultural Area clan halls
|
||||
-Test castle sieges
|
||||
-Dungeon of Abyss https://www.youtube.com/watch?v=FZEu0hjCAK8
|
||||
-New Savior class skills https://eu.4game.com/lineage2classic/play/saviors/classes/#newclasskills
|
||||
|
||||
Reference in New Issue
Block a user