Thread: Dumping npc, combat level, Examine, for a list

Results 1 to 5 of 5
  1. #1 Dumping npc, combat level, Examine, for a list 
    william1434
    Guest
    we will be adding a new method and this will create a list with your npc combat level and the npc examine.

    open class5.java and add this if you dont have it this will go at the top of class5

    Code:
    import java.io.*;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.IOException;
    now below final class Class5 {
    add this

    Code:
    public static void dumpnpcList() {
    for(int i = 0; i < 4000; i++) {
    Class5 Class5 = method159(i);
    BufferedWriter bw = null;      
    try {
    bw = new BufferedWriter(new FileWriter("NpcList.txt", true));     
    if(Class5.aString65 != null) {            	  
    bw.write("ID: "+i+"\t\tName: "+Class5.aString65+"\t\tcombat level: "+Class5.anInt61+"\t\tExamine: "+Class5.aByteArray89);	   
    bw.newLine();
    bw.flush();          
    bw.close();	 
    }
    } catch (IOException ioe2) {      
    }
    }
    }
    And now adding it to a command (i think this is how you do it)
    close class5.java and open up client.java in client.java search for

    Code:
    if(aString887.equals("::clientdrop"))
    above that add
    Code:
    if(aString887.equals("::dump")){
    Class5.dumpnpcList();
    }
    so it looks like

    Code:
    if(aString887.equals("::dump")){
    Class5.dumpnpcList();
    }
    if(aString887.equals("::clientdrop"))
    (i think that would work)
    Credit Zee_best for the base of it and me for finding the npcs strings and ints and changing it to dump the npcs
     

  2. #2  
    Registered Member
    Harvey's Avatar
    Join Date
    Mar 2007
    Posts
    965
    Thanks given
    0
    Thanks received
    55
    Rep Power
    296
    its ok but why include

    Code:
    import java.io.*;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.IOException;
    when you have

    Code:
    import java.io.*;
    Thanks,

    Harvey
     

  3. #3  
    colcanio
    Guest
    Quote Originally Posted by XharveyX View Post
    its ok but why include

    Code:
    import java.io.*;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.IOException;
    when you have

    Code:
    import java.io.*;
    yeah i know..
     

  4. #4  
    mr s' sock
    Guest
    really stupid, not even spaced out right.
     

  5. #5  
    Banned

    Join Date
    Dec 2007
    Age
    27
    Posts
    1,987
    Thanks given
    257
    Thanks received
    326
    Rep Power
    0
    im sure ive seen that before
    wasnt somthing simalar made by ****cheez
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •