Thread: Simpler NPC/OBJECT/ITEM Dumper for RuneEscape/Matrix :L

Results 1 to 7 of 7
  1. #1 Simpler NPC/OBJECT/ITEM Dumper for RuneEscape/Matrix :L 
    Registered Member Ownster's Avatar
    Join Date
    Feb 2011
    Age
    24
    Posts
    183
    Thanks given
    532
    Thanks received
    56
    Rep Power
    0
    Code:
    package com.rs.tools;
    
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import com.rs.cache.Cache;
    import com.rs.cache.loaders.ItemDefinitions;
    import com.rs.cache.loaders.NPCDefinitions;
    import com.rs.cache.loaders.ObjectDefinitions;
    import com.rs.utils.Utils;
    
    public class RunListDumpers {
    
    	public static void main(String[] args) throws IOException {
    		   System.out.print("Dumping Npc List");
    		   dumpnpcs();
    		   System.out.print("Dumping Item List");
    		   dumpitems();
    		   System.out.print("Dumping Object List");
    		   dumpobjects();
    		   System.out.print("Finished Dumping the Lists");
    	}
    	public static void dumpnpcs() throws IOException {
    		Cache.init();
    		File file = new File("./lists/npcList.txt");
    		if (file.exists())
    			file.delete();
    		else
    			file.createNewFile();
    		BufferedWriter writer = new BufferedWriter(new FileWriter(file));
    		writer.append("//Version = 667.706\n");
    		writer.flush();
    		for (int id = 0; id < Utils.getNPCDefinitionsSize(); id++) {
    			NPCDefinitions def = NPCDefinitions.getNPCDefinitions(id);
    			writer.append(id + " - " + def.name);
    			writer.newLine();
    			System.out.println(id + " - " + def.name);
    			writer.flush();
    		}
    		writer.close();
    	}
    	public static void dumpobjects() throws IOException {
    		Cache.init();
    		File file = new File("./lists/objectList.txt");
    		if (file.exists())
    			file.delete();
    		else
    			file.createNewFile();
    		BufferedWriter writer = new BufferedWriter(new FileWriter(file));
    		writer.append("//Version = 667.706\n");
    		writer.flush();
    		for (int id = 0; id < Utils.getObjectDefinitionsSize(); id++) {
    			ObjectDefinitions def = ObjectDefinitions.getObjectDefinitions(id);
    			writer.append(id + " - " + def.name);
    			writer.newLine();
    			System.out.println(id + " - " + def.name);
    			writer.flush();
    		}
    		writer.close();
    	}
    
    	public static void dumpitems() throws IOException {
    		Cache.init();
    		File file = new File("./lists/itemlist.txt");
    		if (file.exists())
    			file.delete();
    		else
    			file.createNewFile();
    		BufferedWriter writer = new BufferedWriter(new FileWriter(file));
    		writer.append("//Version = 667.706\n");
    		writer.flush();
    		for (int id = 0; id < Utils.getItemDefinitionsSize(); id++) {
    			ItemDefinitions def = ItemDefinitions.getItemDefinitions(id);
    			writer.append(id + " - " + def.getName() + "\n");
    			writer.newLine();
    			System.out.println(id + " - " + def.getName());
    			writer.flush();
    		}
    		writer.close();
    	}
    }
    There go, very simple. KTHAIXBYE
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
     

  2. #2  
    Donator
    Unlucky4ever's Avatar
    Join Date
    Nov 2007
    Age
    27
    Posts
    524
    Thanks given
    46
    Thanks received
    72
    Rep Power
    37
    All you did was combine the other ones into one script...
     


  3. #3  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    26
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    With what name I need to save this, and in witch file i need to import this?
     

  4. #4  
    Donator
    Unlucky4ever's Avatar
    Join Date
    Nov 2007
    Age
    27
    Posts
    524
    Thanks given
    46
    Thanks received
    72
    Rep Power
    37
    Quote Originally Posted by Zond View Post
    With what name I need to save this, and in witch file i need to import this?
    Read the code and you will know...
     

  5. #5  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    26
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    The name is RunListDumpers.java and add this file import to that files where is this imports?
    And can i change this - "./lists/npcList.txt" to "./data/npcList.txt" ? So files are created in my sorce folder data?
     

  6. #6  
    Mug Club


    Join Date
    Jul 2011
    Age
    26
    Posts
    1,875
    Thanks given
    510
    Thanks received
    890
    Discord
    View profile
    Rep Power
    332
    Init the cache more than once? lol..


    My Open Source Projects
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
     

  7. #7  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    26
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    Quote Originally Posted by zond View Post
    the name is runlistdumpers.java and add this file import to that files where is this imports?
    And can i change this - "./lists/npclist.txt" to "./data/npclist.txt" ? So files are created in my sorce folder data?
    help!
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. item on object = npc
    By Edd - in forum Help
    Replies: 1
    Last Post: 01-23-2012, 03:12 AM
  2. RuneEscape eating and item-on-item packets
    By Old Oak in forum Snippets
    Replies: 0
    Last Post: 08-13-2011, 07:49 PM
  3. RuneEscape NPC Definition Dumper
    By Sonicforce41 in forum Help
    Replies: 0
    Last Post: 08-07-2011, 09:49 PM
  4. Replies: 9
    Last Post: 06-30-2011, 11:02 PM
  5. Npc,Object,Item
    By Stewie in forum Requests
    Replies: 0
    Last Post: 02-28-2009, 01:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •