Originally Posted by
Defiled-X
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;**