Thread: [PI] Custom NPCs can only hit 1's

Results 1 to 5 of 5
  1. #1 [PI] Custom NPCs can only hit 1's 
    Registered Member
    Join Date
    Oct 2011
    Posts
    83
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Title says it all. The custom NPCs have changed values in EntityDef in client, and the stuff in spawn-config should make it have a max hit of 62 or 34 or something, but ingame, the NPC only hits 1's and 0's.

    Anyone have a fix?
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Apr 2011
    Age
    29
    Posts
    1,360
    Thanks given
    370
    Thanks received
    184
    Rep Power
    0
    I don't think monsters have max hits... It's more based on a "damage - defence" formula, I believe...
    Reply With Quote  
     

  3. #3  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    There is actually a max-hit category in the npc definition..

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2012
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    im pretty sure you would go under src/server/models/npcs then open npchandler.java

    search for public int getMaxHit(int i) {
    say your npcs id is 5000
    and you want its max hit to be 51

    under
    switch (npcs[i].npcType) {
    add

    case 5000:
    return 51;
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2011
    Posts
    83
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Yay, it works! Thanks guys!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. zenithscape npcs hardly hit help
    By cgardn89 in forum Help
    Replies: 3
    Last Post: 10-03-2012, 08:32 PM
  2. Making Npcs so you cant hit them?
    By Almagesrnubs in forum Help
    Replies: 2
    Last Post: 09-18-2011, 12:11 AM
  3. Why do I hit NPCs so fast?
    By Mr Steve in forum Help
    Replies: 2
    Last Post: 06-24-2010, 10:15 PM
  4. Replies: 8
    Last Post: 08-22-2009, 12:50 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •