Ver código fonte

BETA: Datapack part for [L6453].

Zoey76 11 anos atrás
pai
commit
31c22adb30

+ 4 - 2
L2J_DataPack_BETA/dist/game/data/scripts/ai/npc/AvantGarde/AvantGarde.java

@@ -22,6 +22,8 @@ import com.l2jserver.gameserver.network.serverpackets.AcquireSkillList;
 import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
 import com.l2jserver.gameserver.util.Util;
 
+import custom.Validators.SubClassSkills;
+
 /**
  * Avant-Garde AI.<br>
  * Sub-Class Certification system, skill learning and certification canceling.<br>
@@ -167,10 +169,10 @@ public class AvantGarde extends AbstractNpcAI
 				}
 				else
 				{
-					QuestState st = player.getQuestState("SubClassSkills");
+					QuestState st = player.getQuestState(SubClassSkills.class.getSimpleName());
 					if (st == null)
 					{
-						st = QuestManager.getInstance().getQuest("SubClassSkills").newQuestState(player);
+						st = QuestManager.getInstance().getQuest(SubClassSkills.class.getSimpleName()).newQuestState(player);
 					}
 					
 					int activeCertifications = 0;

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java

@@ -112,8 +112,8 @@ public class AdminReload implements IAdminCommandHandler
 					}
 					else
 					{
-						QuestManager.getInstance().reloadAllQuests();
-						activeChar.sendMessage("All Quests have been reloaded.");
+						QuestManager.getInstance().reloadAllScripts();
+						activeChar.sendMessage("All scripts have been reloaded.");
 						AdminTable.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Quests.");
 					}
 					break;
@@ -121,7 +121,7 @@ public class AdminReload implements IAdminCommandHandler
 				case "walker":
 				{
 					WalkingManager.getInstance().load();
-					activeChar.sendMessage("All Walkers have been reloaded");
+					activeChar.sendMessage("All walkers have been reloaded");
 					AdminTable.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Walkers.");
 					break;
 				}

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminSpawn.java

@@ -242,7 +242,7 @@ public class AdminSpawn implements IAdminCommandHandler
 			RaidBossSpawnManager.getInstance().load();
 			AutoSpawnHandler.getInstance().reload();
 			SevenSigns.getInstance().spawnSevenSignsNPC();
-			QuestManager.getInstance().reloadAllQuests();
+			QuestManager.getInstance().reloadAllScripts();
 			AdminTable.getInstance().broadcastMessageToGMs("NPC Respawn completed!");
 		}
 		else if (command.startsWith("admin_spawn_monster") || command.startsWith("admin_spawn"))

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/handlers/telnethandlers/ReloadHandler.java

@@ -76,7 +76,7 @@ public class ReloadHandler implements ITelnetHandler
 				{
 					_print.print("Reloading npc templates... ");
 					NpcData.getInstance().load();
-					QuestManager.getInstance().reloadAllQuests();
+					QuestManager.getInstance().reloadAllScripts();
 					_print.println("done");
 				}
 				else if (type.equals("html"))

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/SagasScripts/SagasSuperClass.java

@@ -1011,7 +1011,7 @@ public class SagasSuperClass extends Quest
 			{
 				continue;
 			}
-			QuestManager.getInstance().removeQuest(script);
+			QuestManager.getInstance().removeScript(script);
 		}
 		_scripts.clear();
 		return super.unload();