There's tons of these already, but this one helped me alot while making custom npcs on my server
Easy to change to dump everything for you
Example of dump:
Code:
case 1:
entityDef.name = Man;
entityDef.walkAnim = 819;
entityDef.standAnim = 808;
entityDef.models = new int[8];
entityDef.models[0] = 215;
entityDef.models[1] = 246;
entityDef.models[2] = 292;
entityDef.models[3] = 326;
entityDef.models[4] = 151;
entityDef.models[5] = 177;
entityDef.models[6] = 12138;
entityDef.models[7] = 181;
entityDef.actions = new int[5];
entityDef.actions[0] = Talk-to;
entityDef.actions[1] = Attack;
entityDef.actions[2] = Pickpocket;
entityDef.actions[3] = null;
entityDef.actions[4] = null;
entityDef.originalModelColors = new int[4];
entityDef.originalModelColors[0] = 6798;
entityDef.originalModelColors[1] = 8741;
entityDef.originalModelColors[2] = 25238;
entityDef.originalModelColors[3] = 4626;
entityDef.modifiedModelColors = new int[4];
entityDef.modifiedModelColors[0] = 4888;
entityDef.modifiedModelColors[1] = 43160;
entityDef.modifiedModelColors[2] = 6430;
entityDef.modifiedModelColors[3] = 8;
//entityDef.anInt55:822, entityDef.anInt57:-1, entityDef.anInt58:820, entityDef.anInt59:-1, entityDef.anInt75:-1, entity.anInt79:32, entityDef.anInt83:821, entityDef.anInt85:0, entityDef.anInt86:128, entityDef.anInt91:128, entity.anInt92:0, entity.anInt56:2
break;
entityDef.models[0] = cape
entityDef.models[1] = head
entityDef.models[2] = plate
entityDef.models[3] = legs
entityDef.models[4] = weapon & arms(?)
entityDef.models[5] = gloves
entityDef.models[6] = boots
entityDef.models[7] = shield
http://www.javacjava.com/FW.html
Code:
public static void dump() {
try {
FileWriter fw = new FileWriter(System.getProperty("user.home")+"/Desktop/dump.txt");
for (int i = 0; i < 6391; i++) {
EntityDef entity = EntityDef.forID(i);
if(entity.combatLevel > 0){
stream.currentOffset = streamIndices[i];
entity.type = i;
entity.models = new int[8];
entity.actions = new String[5];
entity.originalModelColors = new int[8];
entity.modifiedModelColors = new int[8];
entity.readValues(stream);
fw.write("case "+ i + ":");
fw.write(System.getProperty("line.separator"));
fw.write("entityDef.name = "+entity.name+";");
fw.write(System.getProperty("line.separator"));
fw.write("entityDef.walkAnim = "+entity.walkAnim+";");
fw.write(System.getProperty("line.separator"));
fw.write("entityDef.standAnim = "+entity.standAnim+";");
fw.write(System.getProperty("line.separator"));
fw.write("entityDef.models = new int["+entity.models.length+"];");
fw.write(System.getProperty("line.separator"));
for(int i3 = 0; i3 < entity.models.length; i3++){
fw.write("entityDef.models["+i3+"] = "+entity.models[i3]+";");
fw.write(System.getProperty("line.separator"));
}
fw.write("entityDef.actions = new int["+entity.actions.length+"];");
fw.write(System.getProperty("line.separator"));
for(int i3 = 0; i3 < entity.actions.length; i3++){
fw.write("entityDef.actions["+i3+"] = "+entity.actions[i3]+";");
fw.write(System.getProperty("line.separator"));
}
fw.write("entityDef.originalModelColors = new int["+entity.originalModelColors.length+"];");
fw.write(System.getProperty("line.separator"));
for(int i3 = 0; i3 < entity.originalModelColors.length; i3++){
fw.write("entityDef.originalModelColors["+i3+"] = "+entity.originalModelColors[i3]+";");
fw.write(System.getProperty("line.separator"));
}
fw.write("entityDef.modifiedModelColors = new int["+entity.modifiedModelColors.length+"];");
fw.write(System.getProperty("line.separator"));
for(int i3 = 0; i3 < entity.modifiedModelColors.length; i3++){
fw.write("entityDef.modifiedModelColors["+i3+"] = "+entity.modifiedModelColors[i3]+";");
fw.write(System.getProperty("line.separator"));
}
fw.write("//entityDef.anInt55:"+entity.anInt55+", entityDef.anInt57:"+entity.anInt57+", entityDef.anInt58:"+entity.anInt58+", entityDef.anInt59:"+entity.anInt59+", entityDef.anInt75:"+entity.anInt75+", entity.anInt79:"+entity.anInt79+", entityDef.anInt83:"+entity.anInt83+", entityDef.anInt85:"+entity.anInt85+", entityDef.anInt86:"+entity.anInt86+", entityDef.anInt91:"+entity.anInt91+", entity.anInt92:"+entity.anInt92+", entity.anInt56:"+entity.anInt56+" ");
fw.write(System.getProperty("line.separator"));
fw.write("break;");
fw.write(System.getProperty("line.separator"));
fw.write(System.getProperty("line.separator"));
}
}
fw.close();
} catch (Exception e) {
System.out.println(e);
}
}
http://www.switchpk.com/npcDump.txt