ok heres what to do, remember back up all the files your gonna edit incase you make a mistake
step 1
firstly download the pack
MEGAUPLOAD - The leading online storage and file delivery service (less than 3kb)
step 2
once downloaded put the NPCemotes.cfg file in your config folder, must be named config.if you do not have a config folder make a new folder called config.
step 3
copy the NpcAnimHandler.java file and put it into your java files
step 4
open up npchandler and find //human attack
you will some things that look sort of like this
delete all of those so it looks like this, or make it look like thisCode:} else if (npcs[NPCID].npcType == 50 && misc.random(3) == 2) { // black dragon gfxAll(0, EnemyY, EnemyX); // Flames hitDiff = misc.random(90); }
now above npcs[NPCID].animUpdateRequired = true;Code:if (server.playerHandler.players[Player].deathStage > 0) { ResetAttackPlayer(NPCID); } npcs[NPCID].animUpdateRequired = true;
add
now the out come should look like thisCode:if (server.NpcAnimHandler.atk[npcs[NPCID].npcType] != 0) { npcs[NPCID].animNumber = server.NpcAnimHandler.atk[npcs[NPCID].npcType]; } else { npcs[NPCID].animNumber = 0x326;}
step 5Code:if (server.playerHandler.players[Player].deathStage > 0) { ResetAttackPlayer(NPCID); } if (server.NpcAnimHandler.atk[npcs[NPCID].npcType] != 0) { npcs[NPCID].animNumber = server.NpcAnimHandler.atk[npcs[NPCID].npcType]; } else { npcs[NPCID].animNumber = 0x326;} npcs[NPCID].animUpdateRequired = true;
now search for //human dead, and do the same thing with this using this
step 6Code:if (server.NpcAnimHandler.die[npcs[i].npcType] != 0) { npcs[i].animNumber = server.NpcAnimHandler.die[npcs[i].npcType]; } else { npcs[i].animNumber = 0x900;}
now search for public int GetNPCBlockAnim
replace this whole code with
step 7Code:public int GetNPCBlockAnim(int id) { if (server.NpcAnimHandler.block[id] != 0) { return server.NpcAnimHandler.block[id]; } return 0; }
search for public boolean loadAutoSpawn(String FileName) {
under that ^^ add
so it looks like thisCode:server.NpcAnimHandler.loadanim();
step 8Code:public boolean loadAutoSpawn(String FileName) { server.NpcAnimHandler.loadanim();
go to server.java and add
underCode:public static NpcAnimHandler NpcAnimHandler = new NpcAnimHandler();
public class server implements Runnable {
save and compile, hopefully if you followed this correctly you will get no errors
step 9
save and compile



Reply With Quote![[Tut] all the correct npc attacks/blocks/death emotes](http://ragezone.com/hyper728.png)


