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