Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- int[] myNpcs = {2627, 2630, 2631, 2743, 2745, 2741, 4278, 4279, 4280, 4281, 4282, 4283, 4284};
- public void killMyNpcs() {
- for (int i = 0; i < NPCHandler.maxNPCs; i++) {
- if (NPCHandler.getSingleton().npcs[i] != null) {
- if (NPCHandler.getSingleton().npcs[i].npcType == 2627 || NPCHandler.getSingleton().npcs[i].npcType == 2630 || NPCHandler.getSingleton().npcs[i].npcType == 2631 || NPCHandler.getSingleton().npcs[i].npcType == 2743
- || NPCHandler.getSingleton().npcs[i].npcType == 2745 || NPCHandler.getSingleton().npcs[i].npcType == 2741 || NPCHandler.getSingleton().npcs[i].npcType == 4278 || NPCHandler.getSingleton().npcs[i].npcType == 4279
- || NPCHandler.getSingleton().npcs[i].npcType == 4280 || NPCHandler.getSingleton().npcs[i].npcType == 4281 || NPCHandler.getSingleton().npcs[i].npcType == 4282 || NPCHandler.getSingleton().npcs[i].npcType == 4283
- || NPCHandler.getSingleton().npcs[i].npcType == 4284) {
- if (NPCHandler.getSingleton().npcs[i].spawnedBy == c.getId()) {
- NPCHandler.getSingleton().npcs[i].absX = 0;
- NPCHandler.getSingleton().npcs[i].absY = 0;
- NPCHandler.getSingleton().npcs[i].applyDead = true;
- NPCHandler.getSingleton().npcs[i].needRespawn = false;
- NPCHandler.getSingleton().npcs[i].heightLevel = -1;
- NPCHandler.getSingleton().npcs[i].randomWalk = false;
- NPCHandler.getSingleton().npcs[i].facePlayer(0);
- c.inAnathema = false;
- System.out.println("Npc deleted");
- }
- }
- }
- }
- }
- public void resetDamageDone() {
- for (int i = 0; i < PlayerHandler.players.length; i++) {
- if (PlayerHandler.players[i] != null) {
- PlayerHandler.players[i].damageTaken[c.playerId] = 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment