Exemple #1
0
 private void start() throws Exception {
   if (System.getProperty("user.home").toLowerCase().contains("cody"))
     Constants.HOST = "127.0.0.1";
   GameCore core = new GameCore();
   core.start();
   Cache.init();
   Huffman.init();
   CombatDefinitionsLoader.init();
   NPCDrops.init();
   LobbyConfigs.parse();
   PacketRepository.load();
   AbilityRepository.init();
   DialogueLoader.init();
   FriendsChatManager.init();
   NPCSpawns.init();
 }
Exemple #2
0
 public static void main(String[] args) {
   try {
     System.setOut(new PrintStream(new FileOutputStream("./protocol-information/npcList.txt")));
     Cache.init();
     for (int i = 0; i < NPCDefinitions.getSize(); i++) {
       NPCDefinitions def = NPCDefinitions.forId(i);
       if (def != null) {
         System.out.print(i + " - " + def.name + " (" + def.combatLevel + "), options:");
         for (int index = 0; index < def.options.length; index++) {
           String action = def.options[index];
           if (action != null)
             System.out.print(
                 (def.options.length - 1) == index
                     ? def.options[index]
                     : def.options[index] + ", ");
         }
         System.out.println();
       }
     }
   } catch (Throwable e) {
     e.printStackTrace();
   }
 }