Thread: [PI] Have two clients loaded, testing pking, not doing damage to one another (No Erro

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11  
    Registered MrClassic
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    15
    Posts
    2,063
    Thanks given
    24,154
    Thanks received
    551
    Rep Power
    5000
    Maybe if IP is the same as opponent, damage = 0?
    Reply With Quote  
     

  2. #12  
    Registered Member

    Join Date
    Oct 2016
    Posts
    158
    Thanks given
    76
    Thanks received
    39
    Rep Power
    105
    The only thing I can find is if the same ip, no pk points. Did you check the picture out? The combat levels read okay in interface but not when let clicked, could that be a clue?

    Quote Originally Posted by MrClassic View Post
    Maybe if IP is the same as opponent, damage = 0?
    Code:
    if (Server.playerHandler.players[c.killerId].connectedFrom.equals(Server.playerHandler.players[c.playerKilled].connectedFrom)) {
    					o.sendMessage("Multiple IP detected, PK point reward removed.");
    	
    
    		c.faceUpdate(0);
    		c.npcIndex = 0;
    		c.playerIndex = 0;
    		c.stopMovement();
    		if(c.duelStatus <= 4) {
    			c.sendMessage("Oh dear you are dead!");
    		} else if(c.duelStatus != 6) {
    			c.sendMessage("You have lost the duel!");
    		}
    		resetDamageDone();
    		c.lastVeng = 0;
    		c.vengOn = false;
    		resetFollowers();
    		c.attackTimer = 10;
    		removeAllWindows();
    		//sendFrame126("PkP: "+c.pkPoints+" K: "+c.kills+" D: "+c.deaths+"", 663); demise sendframe
    		c.tradeResetNeeded = true;
    		return;
    		}
    Reply With Quote  
     

  3. Thankful user:


  4. #13  
    Registered MrClassic
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    15
    Posts
    2,063
    Thanks given
    24,154
    Thanks received
    551
    Rep Power
    5000
    Quote Originally Posted by Jrage View Post
    The only thing I can find is if the same ip, no pk points. Did you check the picture out? The combat levels read okay in interface but not when let clicked, could that be a clue?



    Code:
    if (Server.playerHandler.players[c.killerId].connectedFrom.equals(Server.playerHandler.players[c.playerKilled].connectedFrom)) {
    					o.sendMessage("Multiple IP detected, PK point reward removed.");
    	
    
    		c.faceUpdate(0);
    		c.npcIndex = 0;
    		c.playerIndex = 0;
    		c.stopMovement();
    		if(c.duelStatus <= 4) {
    			c.sendMessage("Oh dear you are dead!");
    		} else if(c.duelStatus != 6) {
    			c.sendMessage("You have lost the duel!");
    		}
    		resetDamageDone();
    		c.lastVeng = 0;
    		c.vengOn = false;
    		resetFollowers();
    		c.attackTimer = 10;
    		removeAllWindows();
    		//sendFrame126("PkP: "+c.pkPoints+" K: "+c.kills+" D: "+c.deaths+"", 663); demise sendframe
    		c.tradeResetNeeded = true;
    		return;
    		}
    I can't find any picture. Maybe search something like
    Code:
    c.damage
    and try to find anything that messes up your combat.
    Reply With Quote  
     

  5. Thankful user:


  6. #14  
    Registered Member

    Join Date
    Oct 2016
    Posts
    158
    Thanks given
    76
    Thanks received
    39
    Rep Power
    105
    Code:
    c.damageTaken = new int[Config.MAX_PLAYERS];
    public int findKiller() {
    		int killer = c.playerId;
    		int damage = 0;
    		for (int j = 0; j < Config.MAX_PLAYERS; j++) {
    			if (PlayerHandler.players[j] == null)
    				continue;
    			if (j == c.playerId)
    				continue;
    			if (c.goodDistance(c.absX, c.absY, PlayerHandler.players[j].absX, PlayerHandler.players[j].absY, 40) 
    				|| c.goodDistance(c.absX, c.absY + 9400, PlayerHandler.players[j].absX, PlayerHandler.players[j].absY, 40)
    				|| c.goodDistance(c.absX, c.absY, PlayerHandler.players[j].absX, PlayerHandler.players[j].absY + 9400, 40))
    				if (c.damageTaken[j] > damage) {
    					damage = c.damageTaken[j];
    					killer = j;
    				}
    		}
    		return killer;
    	}
    only places for c.damage

    as for combat, ive read everything that even looks like it has to do with combat


    the image didnt show the link https://ibb.co/ZNWgTRg

    Quote Originally Posted by MrClassic View Post
    I can't find any picture. Maybe search something like
    Code:
    c.damage
    and try to find anything that messes up your combat.
    Man, im lost, going on like 9 or 10 hours of reading, and looking. im lost as lost gets

    I also just finished trying to figure out my the right click combat level was reading 1 when the real leaves were higher.

    So, got off work, went to getting back at it. Anyone have any advice on where to look?

    Quote Originally Posted by MrClassic View Post
    I can't find any picture. Maybe search something like
    Code:
    c.damage
    and try to find anything that messes up your combat.
    What about this, what does this do?
    Code:
    public static final int MAX_PROCESS_PACKETS = 7;
    Im lost im looking at everything

    What does this error message mean, im not understanding it. I'm hopefully making progress.

    Code:
    InsidiaX is loading..
    Loaded 525 graphics...
    Loaded Compressed Models..
    Loading animations
    Loaded the flo.
    602 NPC Amount: 11257
    Error: T1 - 123,0 - 36,36
    Error: Error packet size mismatch in getplayer pos:60 psize:117
    Error: T2 - 81,73,171 - 117,3083,3554 - -26,-55,-104,7,-1,16,-53,0,-1,-1,0,0,0,7
    ,43,1,18,0,1,26,1,36,1,0,1,33,1,42,1,10,0,0,0,0,0,46,-11,3,55,46,-8,3,52,3,53,3,
    54,46,-9,0,
    Error: Error packet size mismatch in getplayer pos:58 psize:115
    Error: T2 - 81,126,208 - 115,3083,3554 - -128,31,-3,16,-53,0,-1,0,0,0,0,7,43,1,1
    8,0,1,26,1,36,1,0,1,33,1,42,1,10,0,0,0,0,0,46,-11,3,55,46,-8,3,52,3,53,3,54,46,-
    9,0,0,0,
    It also wont work on the original source download that hasnt been edited by me.
    Reply With Quote  
     

  7. Thankful user:


  8. #15  
    Registered MrClassic
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    15
    Posts
    2,063
    Thanks given
    24,154
    Thanks received
    551
    Rep Power
    5000
    I’m looking at a base full of errors... are you using a server with a client which wasn’t provided by them? You should look for
    Code:
    damage
    and search for anything that could mess up combat
    Reply With Quote  
     

  9. #16  
    Registered Member

    Join Date
    Oct 2016
    Posts
    158
    Thanks given
    76
    Thanks received
    39
    Rep Power
    105
    Quote Originally Posted by MrClassic View Post
    are you using a server with a client which wasn’t provided by them?
    Yes they were provided together. What would i be looking for, any hints or advice, because ive scoured it... haha If i had a slight idea of what to look for maybe it'd help, but damn this sucks

    Quote Originally Posted by MrClassic View Post
    You should look for
    Code:
    damage
    and search for anything that could mess up combat
    Quote Originally Posted by MrClasic View Post
    I’m looking at a base full of errors...
    Thats one reason i like starting with it but this has me at a point of punching things haha

    I dont remember players not being able to hit when I used it last time
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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: 1
    Last Post: 09-12-2016, 10:13 PM
  2. Replies: 5
    Last Post: 07-29-2013, 09:08 PM
  3. Replies: 3
    Last Post: 07-30-2011, 05:31 PM
  4. Replies: 3
    Last Post: 03-20-2011, 01:46 PM
  5. Replies: 2
    Last Post: 02-15-2011, 12:19 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
  •