Thread: Dragon-History (Diversity) - Anathema ( need a little help, having a little problem )

Results 1 to 2 of 2
  1. #1 Dragon-History (Diversity) - Anathema ( need a little help, having a little problem ) 
    Registered Member
    Join Date
    May 2012
    Posts
    61
    Thanks given
    1
    Thanks received
    1
    Rep Power
    4
    Hey everyone, i don't know if this is what i think because i don't see any reason why it would happen. But what happens is that after system outprint a few players logs out of the server. It prints game saved for player name and it happened a lot of times so i don't think 2-3 players manage to log out at same time when the same thing is printed.

    PlayerAssistant class ''CODE''



    Code:
    	}
    	
    	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;
    			}
    		}
    	}
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    ...what?
    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. Replies: 2
    Last Post: 09-16-2012, 11:58 AM
  2. Replies: 6
    Last Post: 02-26-2012, 01:01 PM
  3. [PI] Dragon history inventory problem [Pay?]
    By Lifez joke in forum Buying
    Replies: 1
    Last Post: 02-24-2012, 04:15 AM
  4. Help @ Dragon-History
    By jizzscape in forum Help
    Replies: 2
    Last Post: 02-01-2012, 06:38 PM
  5. Dragon history teles
    By @Strp@ in forum Help
    Replies: 0
    Last Post: 01-15-2010, 05:00 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
  •