purpose: To make npcs hit more than a 0 or 1
Assumed knowledge: looking up npc id's ctrl+f and c&p
Difficulty: 3/10 depending on if u follow this.
Classes modified: NpcHandler.java
first find
Code:
npcs[NPCID].animNumber = 0x037; //chicken attack
add under that.
Code:
} else if (npcs[NPCID].npcType == ####) {
hitDiff = % + misc.random(@@); //discription
1.#### - That is you npc id.
2.% - That is the lowest the npc can hit.
3.@@ - This is a number that is added to the % to make the highest hit.
Ex.
Code:
} else if (npcs[NPCID].npcType == 1223) {
hitDiff = 0 + misc.random(24); //vampire can hit 24
Ex2.
Code:
} else if (npcs[NPCID].npcType == 1223) {
hitDiff = 10 + misc.random(24); //vampire can hit 34
Now you just add the npc through your autospawn and it can put up a fight.
Credit: 100% me