Thread: Help Npc respawn [PI]

Results 1 to 3 of 3
  1. #1 Help Npc respawn [PI] 
    Donator
    Defiled-X's Avatar
    Join Date
    Jun 2010
    Posts
    1,434
    Thanks given
    52
    Thanks received
    78
    Rep Power
    27
    My npc's in my server wont respawn after you kill them. How do i fix this?
    Reply With Quote  
     

  2. #2  
    ಠ_ಠ

    Joshua's Avatar
    Join Date
    May 2010
    Posts
    1,903
    Thanks given
    397
    Thanks received
    708
    Rep Power
    803
    Quote Originally Posted by Defiled-X View Post
    My npc's in my server wont respawn after you kill them. How do i fix this?
    IDK if you still need this, but if you open NPCHandler.java and search for:
    Code:
    public int getRespawnTime(int i)
    you will find something like this:
    Code:
    	/**
    	* Npc respawn time
    	**/
    	public int getRespawnTime(int i) {
    		switch(npcs[i].npcType) {
    			case 2881:
    			case 2882:
    			case 2883:
    			
    			case 6222:
    			case 6223:
    			case 6225:
    			case 6227:
    			case 6247:
    			case 6248:
    			case 6250:
    			case 6260:
    			case 6261:
    			case 6263:
    			case 6265:
    			case 53:
    			return 100;
    			
    			case 6142:
    			case 6143:
    			case 6144:
    			case 6145:
    			return 500;
    			case 1220:
    			return 15;
    			default:
    			return -1;
    		}
    	}
    Change:
    Code:
    			default:
    			return -1;
    To:
    Code:
    			default:
    			return 30;
    **note this will make them respawn, you can increase or decrease the wait time by editing the return 30;**
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2010
    Posts
    141
    Thanks given
    3
    Thanks received
    3
    Rep Power
    17
    I tried that, not working lol, I have the same problem, any other suggestions?

    Computers are like bikinis. They save people a lot of guesswork.


    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. Death respawn help
    By X Mercy X in forum Help
    Replies: 1
    Last Post: 09-23-2009, 09:57 PM
  2. respawn help
    By shrogg in forum Help
    Replies: 3
    Last Post: 07-23-2009, 08:34 AM
  3. NPC Respawn
    By King Vexille in forum Help
    Replies: 3
    Last Post: 06-09-2009, 05:37 PM
  4. NPC Respawn Fix
    By Palidino in forum Tutorials
    Replies: 8
    Last Post: 11-24-2008, 09:45 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
  •