[Tut] all the correct npc attacks/blocks/death emotes

Results 1 to 11 of 11
  1. #1
    Enthusiast killamess is offline
    MemberRank
    Feb 2006 Join Date
    47Posts

    [Tut] all the correct npc attacks/blocks/death emotes

    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
    Code:
    } else if (npcs[NPCID].npcType == 50 && misc.random(3) == 2) { // black dragon
    						gfxAll(0, EnemyY, EnemyX); // Flames
    						hitDiff = misc.random(90);
    
    						}
    delete all of those so it looks like this, or make it look like this
    Code:
    if (server.playerHandler.players[Player].deathStage > 0) {
    						ResetAttackPlayer(NPCID);
    					} 
    					npcs[NPCID].animUpdateRequired = true;
    now above npcs[NPCID].animUpdateRequired = true;
    add
    Code:
     if (server.NpcAnimHandler.atk[npcs[NPCID].npcType] != 0) {
    npcs[NPCID].animNumber = server.NpcAnimHandler.atk[npcs[NPCID].npcType];
    } else {
    npcs[NPCID].animNumber = 0x326;}
    now the out come should look like this

    Code:
    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;
    step 5
    now search for //human dead, and do the same thing with this using this
    Code:
     if (server.NpcAnimHandler.die[npcs[i].npcType] != 0) {
    npcs[i].animNumber = server.NpcAnimHandler.die[npcs[i].npcType]; 
    } else {
    npcs[i].animNumber = 0x900;}
    step 6
    now search for public int GetNPCBlockAnim
    replace this whole code with
    Code:
    	public int GetNPCBlockAnim(int id) 
    {
    if (server.NpcAnimHandler.block[id] != 0) {
    return server.NpcAnimHandler.block[id];
    }
    return 0;
    }
    step 7
    search for public boolean loadAutoSpawn(String FileName) {
    under that ^^ add
    Code:
    server.NpcAnimHandler.loadanim();
    so it looks like this
    Code:
    public boolean loadAutoSpawn(String FileName) {
    server.NpcAnimHandler.loadanim();
    step 8
    go to server.java and add
    Code:
    public static NpcAnimHandler NpcAnimHandler = new NpcAnimHandler();
    under
    public class server implements Runnable {
    save and compile, hopefully if you followed this correctly you will get no errors

    step 9
    save and compile
    Last edited by killamess; 19-03-08 at 09:42 AM. Reason: forgot a step


  2. #2
    Member cakeordeath is offline
    MemberRank
    Feb 2008 Join Date
    RunescapeLocation
    55Posts

    Re: all the correct npc attacks/blocks/death emotes

    COol! Thanks

  3. #3
    Enthusiast killamess is offline
    MemberRank
    Feb 2006 Join Date
    47Posts

    Re: all the correct npc attacks/blocks/death emotes

    i forgot to tell you to add the part in server.java, added that step in now

  4. #4
    Member cakeordeath is offline
    MemberRank
    Feb 2008 Join Date
    RunescapeLocation
    55Posts

    Re: all the correct npc attacks/blocks/death emotes

    ok thanks

  5. #5
    Apprentice black thief8 is offline
    MemberRank
    Mar 2008 Join Date
    8Posts

    Re: all the correct npc attacks/blocks/death emotes

    wat do u mean by java folder? Is this my whole server folder?

  6. #6
    Enthusiast killamess is offline
    MemberRank
    Feb 2006 Join Date
    47Posts

    Re: all the correct npc attacks/blocks/death emotes

    Quote Originally Posted by black thief8 View Post
    wat do u mean by java folder? Is this my whole server folder?

    where ever your other java files are located, normaly in the main folder. so yes

  7. #7
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: all the correct npc attacks/blocks/death emotes

    So, when a monster dies it does the correct emote [Not that lame crappy one] like in Runescape?

  8. #8
    Enthusiast killamess is offline
    MemberRank
    Feb 2006 Join Date
    47Posts

    Re: all the correct npc attacks/blocks/death emotes

    Quote Originally Posted by Sparkly View Post
    So, when a monster dies it does the correct emote [Not that lame crappy one] like in Runescape?

    yes

  9. #9
    Member Netzo is offline
    MemberRank
    Jan 2007 Join Date
    United KingdomLocation
    803Posts

    Re: all the correct npc attacks/blocks/death emotes

    omg! thx man :) that works for all sources?

  10. #10
    Enthusiast killamess is offline
    MemberRank
    Feb 2006 Join Date
    47Posts

    Re: all the correct npc attacks/blocks/death emotes

    should do

  11. #11
    Member vegeta527 is offline
    MemberRank
    Jun 2007 Join Date
    70Posts

    Re: all the correct npc attacks/blocks/death emotes

    dude sweet tut thank you great job!



Advertisement