Thread: what is this error, and how to fix?

Results 1 to 4 of 4
  1. #1 what is this error, and how to fix? 
    Registered Member
    Join Date
    May 2007
    Posts
    134
    Thanks given
    0
    Thanks received
    4
    Rep Power
    26
    Code:
    Error: T2 - 126,126,126 - 13,0,0 - 64,121,101,108,64,68,97,110,99,101,10,72,127,
    Reply With Quote  
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    Error with packet handling. You are using the "sendFrame126" wrong, probably a bad line number.



    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2007
    Posts
    134
    Thanks given
    0
    Thanks received
    4
    Rep Power
    26
    last thing i edited..

    Code:
    	public void followPlayer(int i, int playerId) {
    		if (Server.playerHandler.players[playerId] == null) {
    			return;
    		}
    		if (Server.playerHandler.players[playerId].respawnTimer > 0) {
    			npcs[i].facePlayer(0);
    			npcs[i].randomWalk = true; 
    	      	npcs[i].underAttack = false;	
    			return;
    		}
    		
    		int playerX = Server.playerHandler.players[playerId].absX;
    		int playerY = Server.playerHandler.players[playerId].absY;
    		npcs[i].randomWalk = false;
    boolean canwalk = true;
    		if((npcs[i].spawnedBy > 0) || ((npcs[i].absX < npcs[i].makeX + Config.NPC_FOLLOW_DISTANCE) && (npcs[i].absX > npcs[i].makeX - Config.NPC_FOLLOW_DISTANCE) && (npcs[i].absY < npcs[i].makeY + Config.NPC_FOLLOW_DISTANCE) && (npcs[i].absY > npcs[i].makeY - Config.NPC_FOLLOW_DISTANCE))) {
    			if(npcs[i].heightLevel == Server.playerHandler.players[playerId].heightLevel) {
    				if(Server.playerHandler.players[playerId] != null && npcs[i] != null) {
    					if(playerY < npcs[i].absY) {
    						npcs[i].moveX = GetMove(npcs[i].absX, playerX);
    						npcs[i].moveY = GetMove(npcs[i].absY, playerY+1);
    
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    					} else if(playerY > npcs[i].absY) {
    						npcs[i].moveX = GetMove(npcs[i].absX, playerX);
    						npcs[i].moveY = GetMove(npcs[i].absY, playerY-1);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    
    canwalk = false;
    					} else if(playerX < npcs[i].absX) {
    						npcs[i].moveX = GetMove(npcs[i].absX, playerX+1);
    						npcs[i].moveY = GetMove(npcs[i].absY, playerY);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    					} else if(playerX > npcs[i].absX)  {
    						npcs[i].moveX = GetMove(npcs[i].absX, playerX-1);
    						npcs[i].moveY = GetMove(npcs[i].absY, playerY);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    
    					} else if(playerX == npcs[i].absX || playerY == npcs[i].absY) {
    						int o = Misc.random(3);
    						switch(o) {
    							case 0:
    							npcs[i].moveX = GetMove(npcs[i].absX, playerX);
    							npcs[i].moveY = GetMove(npcs[i].absY, playerY+1);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    				
    							break;
    							
    							case 1:
    							npcs[i].moveX = GetMove(npcs[i].absX, playerX);
    							npcs[i].moveY = GetMove(npcs[i].absY, playerY-1);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    							break;
    							
    							case 2:
    							npcs[i].moveX = GetMove(npcs[i].absX, playerX+1);
    							npcs[i].moveY = GetMove(npcs[i].absY, playerY);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    							break;
    							
    							case 3:
    							npcs[i].moveX = GetMove(npcs[i].absX, playerX-1);
    							npcs[i].moveY = GetMove(npcs[i].absY, playerY);
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    							break;
    						}	
    					}
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    	if(canwalk == true)
    		      		npcs[i].getNextNPCMovement(i);                                              
    		      		npcs[i].updateRequired = true;
    				}	
    			}
    if(WorldMap.isWalkAble(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, npcs[i].absX-npcs[i].moveX, npcs[i].absY) == false)
    canwalk = false;
    		} else {
    	if(canwalk == true)
    			npcs[i].facePlayer(0);
    			npcs[i].randomWalk = true; 
    	      	npcs[i].underAttack = false;	
    		}
    	}
    Reply With Quote  
     

  4. #4  
    Registered Member
    Cody.'s Avatar
    Join Date
    Sep 2008
    Age
    26
    Posts
    535
    Thanks given
    0
    Thanks received
    0
    Rep Power
    291
    its packet == 126
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •