THis is frustrating i want to add a custom npc so i went into entitydef and added this:

if(i == 501) {
stream.currentOffset = streamIndices[630];
entityDef.aByte68 = 3;
entityDef.readValues(stream); // Collect original NPC data
entityDef.itemActions = new String[5];
entityDef.itemActions[1] = "Attack";
int changedColors = 1; // Number of model colors changed on the NPC
entityDef.anIntArray70 = new int[changedColors];
entityDef.anIntArray76 = new int[changedColors];
entityDef.anIntArray76[0] = 40; // Original model color
entityDef.anIntArray70[0] = 34; // Changed model color
entityDef.anIntArray94 = new int[7];
entityDef.anIntArray94[0] = 64046;//Npc's Cape
entityDef.anIntArray94[1] = 64016;//Npc's Head
entityDef.anIntArray94[2] = 64008;//Npc's Plate
entityDef.anIntArray94[3] = 64010;//Npc's Legs
entityDef.anIntArray94[4] = 64018;//Npc's Weapon
entityDef.anIntArray94[5] = 13307;//Npc's Gloves
entityDef.anIntArray94[6] = 13565;//Npc's Boots
//entityDef.anIntArray94[7] = 17461;//Npc's Darkness(Shadow)
//entityDef.anIntArray94[8] = 20147;//Npc's Arms(You Dont Have To Edit)
entityDef.standAnim = 11973;// Npc's Stand Emote
entityDef.name = "@bla@Tzhaar Warrior";
entityDef.combatLevel = 313;//Combat Level
entityDef.description = "He Fears Nothing...".getBytes();
}

and i compiled and run but wen i spawned the npc it came out as something else

please i need urgent help this is very important

- - - Updated - - -

please this is really urgent