Thread: How To Make An Npc Hit!

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 How To Make An Npc Hit! 
    paintballe99
    Guest
    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
     

  2. #2  
    Registered Member
    Lommeka's Avatar
    Join Date
    Oct 2006
    Posts
    719
    Thanks given
    3
    Thanks received
    3
    Rep Power
    147
    Tyvm! i rly needed this for jad rep+
     

  3. #3  
    Skillz
    Guest
    Thanks for this
     

  4. #4  
    paintballe99
    Guest
    no problem.
     

  5. #5  
    kilermage
    Guest
    Dude, this is really awesome. I will use this on my server to bring the hit of monsters down. thank you
     

  6. #6  
    Kurt
    Guest
    Thanks - Needed this.
     

  7. #7  
    paintballe99
    Guest
    can a brotha geta rep?
     

  8. #8  
    Registered Member Rabid Butterfly's Avatar
    Join Date
    Aug 2007
    Posts
    467
    Thanks given
    0
    Thanks received
    0
    Rep Power
    70
    Thanks for stealing my avatar buddy
    cs508 - Coming soon.
     

  9. #9  
    paintballe99
    Guest
    =p it was an accedent =p
     

  10. #10  
    Newb 2341
    Guest
    I smell leech - off of me?
    Let's take a walk down tutorial lane.
    Here it is!
    Pathetic, buddy. If you want, I'll show you the same tut from me on MoparScape, among other forums.
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •