Thread: 727 Player Options

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 727 Player Options 
    Registered Member
    Join Date
    Feb 2017
    Age
    26
    Posts
    53
    Thanks given
    3
    Thanks received
    4
    Rep Power
    11
    WorldPacketsDecoder:
    Code:
     if (packetId == PLAYER_OPTION_1_PACKET) {
    		 
    	} else if (packetId == PLAYER_OPTION_2_PACKET) {
    		if (!player.hasStarted() || !player.clientHasLoadedMapRegion()
    				|| player.isDead())
    			return;
    	 @[Only registered and activated users can see links. ]ressWarnings("unused")
    		boolean unknown = stream.readByte() == 1;
    		int playerIndex = stream.readUnsignedShortLE128();
    		Player p2 = World.getPlayers().get(playerIndex);
    		if (p2 == null || p2.isDead() || p2.hasFinished()
    				|| !player.getMapRegionsIds().contains(p2.getRegionId()))
    			return;
    		if (player.getLockDelay() > Utils.currentTimeMillis())
    			return;
    		player.stopAll(false);
    		player.getActionManager().setAction(new PlayerFollow(p2));
    	} else if (packetId == PLAYER_OPTION_3_PACKET) {
    		
    	} else if (packetId == PLAYER_OPTION_4_PACKET) {
    		
    	} else if (packetId == PLAYER_OPTION_5_PACKET) {
    		
    	} else if (packetId == PLAYER_OPTION_6_PACKET) {
    		
    	} else if (packetId == PLAYER_OPTION_7_PACKET) {
    		
    	} else if (packetId == PLAYER_OPTION_8_PACKET) {
    does nothing... :/

    player.java
    Code:
    public void sendDefaultPlayersOptions() {
    		getPackets().sendPlayerOption("Follow", 2, false);
    		getPackets().sendPlayerOption("Trade with", 4, false);



    but if its the original:
    Code:
    switch (packetId){
    		case PLAYER_OPTION_1_PACKET:
    		case PLAYER_OPTION_2_PACKET:
    		case PLAYER_OPTION_3_PACKET:
    		case PLAYER_OPTION_4_PACKET:
    		case PLAYER_OPTION_5_PACKET:
    		case PLAYER_OPTION_6_PACKET:
    		case PLAYER_OPTION_7_PACKET:
    		case PLAYER_OPTION_8_PACKET:
                    int playerIndex = stream.readUnsignedShort(); //incorrect returns 32k
    			boolean forceRun = stream.read128Byte() == 1;
    			if (forceRun)
    				player.setRun(true);
    			Player p2 = World.getPlayers().get(playerIndex);
    			if (p2 == null || p2.isDead() || p2.hasFinished() || !player.getMapRegionsIds().contains(p2.getRegionId()))
    				return;
    			player.getPackets().sendGameMessage("Sent player interact packet, id: " +packetId);
    			return;
    		}
    Sent player interact packet, id: says trade packet is 89
    if theres nothing but
    PLAYER_OPTION_8_PACKET

    so im stummed.
    using _Jordans 727 Converted.
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    654
    Thanks received
    640
    Rep Power
    358
    Maybe the packets weren't updated on the server, that would be why you get 32k for player OP #8. Have you tried looking in the client for these specific packet IDs (the PLAYER_OPTION_X_PACKET ids) to see if they were correctly identified?
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2017
    Age
    26
    Posts
    53
    Thanks given
    3
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Maybe the packets weren't updated on the server, that would be why you get 32k for player OP #8. Have you tried looking in the client for these specific packet IDs (the PLAYER_OPTION_X_PACKET ids) to see if they were correctly identified?
    well in the source says its follow is 6 and trade is 89 bu in a 718 matrix it differen from what the 718 says

    edit: PLAYER_OP4(89, 3, true), thats the clients player option 4.
    PLAYER_OP2(6, 3, true), player option 2
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    654
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by Copyright. View Post
    well in the source says its follow is 6 and trade is 89 bu in a 718 matrix it differen from what the 718 says

    edit: PLAYER_OP4(89, 3, true), thats the clients player option 4.
    PLAYER_OP2(6, 3, true), player option 2
    Maybe they're still wrong, even if they were changed. Just try printing the packet ID you receive when using player options by putting a debug line in the world packets decoder. You can test all 8 options by modifying this part:

    Code:
    	getPackets().sendPlayerOption("Follow", 2, false);
    And changing the 2 to a different option.
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2017
    Age
    26
    Posts
    53
    Thanks given
    3
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Maybe they're still wrong, even if they were changed. Just try printing the packet ID you receive when using player options by putting a debug line in the world packets decoder. You can test all 8 options by modifying this part:

    Code:
    	getPackets().sendPlayerOption("Follow", 2, false);
    And changing the 2 to a different option.
    Code:
    player.getPackets().sendGameMessage("TEST....");
    this shows up in game, when its nothing but that.. so it has to be working for player option 4. i have all 8 options displayed.
    Reply With Quote  
     

  6. #6  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    654
    Thanks received
    640
    Rep Power
    358
    Sorry, I need a bit more information to help.

    Quote Originally Posted by Copyright. View Post
    Code:
    player.getPackets().sendGameMessage("TEST....");
    Where did you put that line,

    Quote Originally Posted by Copyright. View Post
    i have all 8 options displayed.
    So all 8 options printed "TEST...." in the console? Still would need to know where you put the line to learn from that.

    Right now, here's what we need to do in order:

    1-Make sure all packets are correctly identified. Print the packetid in WorldPacketsDecoder directly after the packetId is read to make sure it's the right one.
    2-Once we know they've all been identified, make sure you receive the correct information from the client. I'm talking about the stuff like playerIndex being 32k. If they're incorrect, you might have to check in the client to identify the packet data order and type.
    3-Insert your follow/trade code in the correct part of the code. Where did you put that first bit of code you posted?
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2017
    Age
    26
    Posts
    53
    Thanks given
    3
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Sorry, I need a bit more information to help.



    Where did you put that line,



    So all 8 options printed "TEST...." in the console? Still would need to know where you put the line to learn from that.

    Right now, here's what we need to do in order:

    1-Make sure all packets are correctly identified. Print the packetid in WorldPacketsDecoder directly after the packetId is read to make sure it's the right one.
    2-Once we know they've all been identified, make sure you receive the correct information from the client. I'm talking about the stuff like playerIndex being 32k. If they're incorrect, you might have to check in the client to identify the packet data order and type.
    3-Insert your follow/trade code in the correct part of the code. Where did you put that first bit of code you posted?
    WorldPacketsDecoder.java under player option 2.


    Code:
    
     if (packetId == PLAYER_OPTION_1_PACKET) {
    		 player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_2_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_3_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_4_PACKET) { //only works up to here for TEST... after that nothing else sends that message
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_5_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_6_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_7_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_8_PACKET) {
    		player.sendMessage("TEST....");
    Player option packets outgoing
    client packets outgoingpackets.java
    Code:
    
    PLAYER_OPTION_1_PACKET = new OutgoingPacket(66, 3);
    PLAYER_OPTION_2_PACKET = new OutgoingPacket(6, 3);
    PLAYER_OPTION_3_PACKET = new OutgoingPacket(31, 3);
    PLAYER_OPTION_4_PACKET = new OutgoingPacket(89, 3);
    PLAYER_OPTION_5_PACKET = new OutgoingPacket(103, 3);
    PLAYER_OPTION_6_PACKET = new OutgoingPacket(1, 3);
    PLAYER_OPTION_7_PACKET = new OutgoingPacket(51, 3);
    PLAYER_OPTION_8_PACKET = new OutgoingPacket(94, 3);
    PLAYER_OPTION_9_PACKET = new OutgoingPacket(53, 3);
    PLAYER_OPTION_10_PACKET = new OutgoingPacket(70, 3);
    client incomingpackets.java
    not sure of what to look fso i pasted the whole packets.
    Code:
    
    aClass375_4352 = new IncommingPacket(1, 1);
    		aClass375_4504 = new IncommingPacket(2, -1);
    		aClass375_4354 = new IncommingPacket(3, 7);
    		aClass375_4450 = new IncommingPacket(4, -2);
    		aClass375_4356 = new IncommingPacket(5, -2);
    		SMALL_NPC_UPDATE_PACKET = new IncommingPacket(6, -2);
    		aClass375_4366 = new IncommingPacket(7, 8);
    		aClass375_4381 = new IncommingPacket(8, 6);
    		aClass375_4360 = new IncommingPacket(9, 0);
    		aClass375_4361 = new IncommingPacket(10, -2);
    		aClass375_4362 = new IncommingPacket(11, 2);
    		aClass375_4363 = new IncommingPacket(12, 6);
    		aClass375_4365 = new IncommingPacket(13, 8);
    		aClass375_4473 = new IncommingPacket(14, 2);
    		aClass375_4392 = new IncommingPacket(15, 3);
    		aClass375_4367 = new IncommingPacket(16, -2);
    		aClass375_4368 = new IncommingPacket(17, 3);
    		aClass375_4433 = new IncommingPacket(18, 8);
    		aClass375_4370 = new IncommingPacket(19, -1);
    		aClass375_4402 = new IncommingPacket(20, 6);
    		aClass375_4372 = new IncommingPacket(21, 1);
    		aClass375_4510 = new IncommingPacket(22, -1);
    		aClass375_4374 = new IncommingPacket(23, 32);
    		aClass375_4391 = new IncommingPacket(24, 6);
    		aClass375_4376 = new IncommingPacket(25, -1);
    		aClass375_4377 = new IncommingPacket(26, 10);
    		aClass375_4460 = new IncommingPacket(27, 5);
    		aClass375_4480 = new IncommingPacket(28, -2);
    		aClass375_4380 = new IncommingPacket(29, 0);
    		aClass375_4427 = new IncommingPacket(30, 2);
    		aClass375_4382 = new IncommingPacket(31, -1);
    		aClass375_4394 = new IncommingPacket(32, 5);
    		aClass375_4384 = new IncommingPacket(33, 5);
    		aClass375_4385 = new IncommingPacket(34, 25);
    		aClass375_4386 = new IncommingPacket(35, 8);
    		aClass375_4397 = new IncommingPacket(36, 5);
    		WINDOW_PANE_PACKET = new IncommingPacket(37, 19);
    		aClass375_4389 = new IncommingPacket(38, 23);
    		aClass375_4371 = new IncommingPacket(39, 6);
    		aClass375_4399 = new IncommingPacket(40, 4);
    		aClass375_4447 = new IncommingPacket(41, 3);
    		aClass375_4393 = new IncommingPacket(42, 3);
    		PLAYER_UPDATE_PACKET = new IncommingPacket(43, -2);
    		aClass375_4395 = new IncommingPacket(44, 10);
    		aClass375_4440 = new IncommingPacket(45, 0);
    		aClass375_4502 = new IncommingPacket(46, -2);
    		LARGE_NPC_UPDATE_PACKET = new IncommingPacket(47, -2);
    		aClass375_4424 = new IncommingPacket(48, 8);
    		aClass375_4400 = new IncommingPacket(49, -2);
    		aClass375_4401 = new IncommingPacket(50, -1);
    		aClass375_4503 = new IncommingPacket(51, -2);
    		aClass375_4499 = new IncommingPacket(52, 1);
    		aClass375_4478 = new IncommingPacket(53, 10);
    		aClass375_4511 = new IncommingPacket(54, -1);
    		aClass375_4406 = new IncommingPacket(55, 6);
    		aClass375_4429 = new IncommingPacket(56, 22);
    		aClass375_4408 = new IncommingPacket(57, 20);
    		aClass375_4409 = new IncommingPacket(58, -1);
    		aClass375_4410 = new IncommingPacket(59, 25);
    		aClass375_4411 = new IncommingPacket(60, 6);
    		aClass375_4412 = new IncommingPacket(61, 1);
    		aClass375_4413 = new IncommingPacket(62, 0);
    		aClass375_4414 = new IncommingPacket(63, 4);
    		aClass375_4415 = new IncommingPacket(64, 1);
    		aClass375_4416 = new IncommingPacket(65, -2);
    		aClass375_4390 = new IncommingPacket(66, 0);
    		aClass375_4373 = new IncommingPacket(67, 1);
    		aClass375_4419 = new IncommingPacket(68, 3);
    		aClass375_4420 = new IncommingPacket(69, 2);
    		RESET_MINIMAP_FLAG_PACKET = new IncommingPacket(70, 2);
    		aClass375_4422 = new IncommingPacket(71, 6);
    		aClass375_4423 = new IncommingPacket(72, 4);
    		aClass375_4396 = new IncommingPacket(73, -1);
    		aClass375_4425 = new IncommingPacket(74, -2);
    		aClass375_4426 = new IncommingPacket(75, 4);
    		aClass375_4492 = new IncommingPacket(76, 2);
    		aClass375_4428 = new IncommingPacket(77, 2);
    		aClass375_4407 = new IncommingPacket(78, 4);
    		aClass375_4430 = new IncommingPacket(79, 14);
    		aClass375_4431 = new IncommingPacket(80, 9);
    		aClass375_4432 = new IncommingPacket(81, -1);
    		aClass375_4417 = new IncommingPacket(82, 8);
    		aClass375_4434 = new IncommingPacket(83, -1);
    		aClass375_4435 = new IncommingPacket(84, -1);
    		aClass375_4436 = new IncommingPacket(85, -2);
    		aClass375_4437 = new IncommingPacket(86, -2);
    		aClass375_4438 = new IncommingPacket(87, 1);
    		aClass375_4439 = new IncommingPacket(88, 5);
    		aClass375_4387 = new IncommingPacket(89, 0);
    		aClass375_4441 = new IncommingPacket(90, 28);
    		aClass375_4442 = new IncommingPacket(91, -1);
    		aClass375_4443 = new IncommingPacket(92, -2);
    		aClass375_4359 = new IncommingPacket(93, 11);
    		aClass375_4445 = new IncommingPacket(94, 0);
    		aClass375_4446 = new IncommingPacket(95, 17);
    		aClass375_4418 = new IncommingPacket(96, 8);
    		aClass375_4448 = new IncommingPacket(97, -2);
    		aClass375_4449 = new IncommingPacket(98, -2);
    		aClass375_4403 = new IncommingPacket(99, -2);
    		aClass375_4451 = new IncommingPacket(100, 0);
    		aClass375_4452 = new IncommingPacket(101, 0);
    		aClass375_4491 = new IncommingPacket(102, 2);
    		aClass375_4358 = new IncommingPacket(103, -2);
    		aClass375_4455 = new IncommingPacket(104, 6);
    		aClass375_4456 = new IncommingPacket(105, 6);
    		aClass375_4457 = new IncommingPacket(106, 2);
    		aClass375_4458 = new IncommingPacket(107, 7);
    		aClass375_4459 = new IncommingPacket(108, 6);
    		aClass375_4378 = new IncommingPacket(109, 8);
    		aClass375_4461 = new IncommingPacket(110, -2);
    		aClass375_4462 = new IncommingPacket(111, -1);
    		aClass375_4463 = new IncommingPacket(112, 10);
    		aClass375_4464 = new IncommingPacket(113, 6);
    		aClass375_4465 = new IncommingPacket(114, -1);
    		aClass375_4466 = new IncommingPacket(115, 3);
    		aClass375_4467 = new IncommingPacket(116, 3);
    		aClass375_4468 = new IncommingPacket(117, 6);
    		aClass375_4469 = new IncommingPacket(118, 4);
    		aClass375_4470 = new IncommingPacket(119, -2);
    		aClass375_4404 = new IncommingPacket(120, 0);
    		aClass375_4472 = new IncommingPacket(121, 12);
    		aClass375_4509 = new IncommingPacket(122, 0);
    		aClass375_4474 = new IncommingPacket(123, 3);
    		aClass375_4475 = new IncommingPacket(124, -2);
    		aClass375_4476 = new IncommingPacket(125, 3);
    		aClass375_4477 = new IncommingPacket(126, 12);
    		aClass375_4500 = new IncommingPacket(127, -2);
    		aClass375_4479 = new IncommingPacket(128, 6);
    		aClass375_4364 = new IncommingPacket(129, 2);
    		aClass375_4481 = new IncommingPacket(130, 10);
    		aClass375_4353 = new IncommingPacket(131, -1);
    		aClass375_4483 = new IncommingPacket(132, 9);
    		aClass375_4355 = new IncommingPacket(133, -1);
    		aClass375_4453 = new IncommingPacket(134, 2);
    		aClass375_4486 = new IncommingPacket(135, 8);
    		aClass375_4487 = new IncommingPacket(136, 8);
    		aClass375_4488 = new IncommingPacket(137, -2);
    		aClass375_4489 = new IncommingPacket(138, -1);
    		aClass375_4351 = new IncommingPacket(139, 8);
    		aClass375_4490 = new IncommingPacket(140, 6);
    		aClass375_4484 = new IncommingPacket(141, 6);
    		aClass375_4493 = new IncommingPacket(142, -1);
    		aClass375_4494 = new IncommingPacket(143, 16);
    		aClass375_4495 = new IncommingPacket(144, 9);
    		aClass375_4496 = new IncommingPacket(145, 19);
    		aClass375_4497 = new IncommingPacket(146, 0);
    		aClass375_4498 = new IncommingPacket(147, 4);
    		aClass375_4383 = new IncommingPacket(148, 10);
    		aClass375_4375 = new IncommingPacket(149, -2);
    		aClass375_4501 = new IncommingPacket(150, 5);
    		aClass375_4444 = new IncommingPacket(151, 1);
    		aClass375_4369 = new IncommingPacket(152, -1);
    		aClass375_4482 = new IncommingPacket(153, -1);
    		aClass375_4505 = new IncommingPacket(154, 1);
    		aClass375_4506 = new IncommingPacket(155, 29);
    		aClass375_4507 = new IncommingPacket(156, -2);
    		aClass375_4508 = new IncommingPacket(157, 4);
    		aClass375_4379 = new IncommingPacket(158, 10);
    		aClass375_4405 = new IncommingPacket(159, 8);
    		aClass375_4471 = new IncommingPacket(160, -1);
    		SWITCH_ITEM_LOOKS = new IncommingPacket(161, 1);
    Reply With Quote  
     

  8. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    654
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by Copyright. View Post
    WorldPacketsDecoder.java under player option 2.


    Code:
    
     if (packetId == PLAYER_OPTION_1_PACKET) {
    		 player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_2_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_3_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_4_PACKET) { //only works up to here for TEST... after that nothing else sends that message
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_5_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_6_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_7_PACKET) {
    		player.sendMessage("TEST....");
    	} else if (packetId == PLAYER_OPTION_8_PACKET) {
    		player.sendMessage("TEST....");
    Player option packets outgoing
    client packets outgoingpackets.java
    Code:
    
    PLAYER_OPTION_1_PACKET = new OutgoingPacket(66, 3);
    PLAYER_OPTION_2_PACKET = new OutgoingPacket(6, 3);
    PLAYER_OPTION_3_PACKET = new OutgoingPacket(31, 3);
    PLAYER_OPTION_4_PACKET = new OutgoingPacket(89, 3);
    PLAYER_OPTION_5_PACKET = new OutgoingPacket(103, 3);
    PLAYER_OPTION_6_PACKET = new OutgoingPacket(1, 3);
    PLAYER_OPTION_7_PACKET = new OutgoingPacket(51, 3);
    PLAYER_OPTION_8_PACKET = new OutgoingPacket(94, 3);
    PLAYER_OPTION_9_PACKET = new OutgoingPacket(53, 3);
    PLAYER_OPTION_10_PACKET = new OutgoingPacket(70, 3);
    client incomingpackets.java
    not sure of what to look fso i pasted the whole packets.
    Code:
    
    aClass375_4352 = new IncommingPacket(1, 1);
    		aClass375_4504 = new IncommingPacket(2, -1);
    		aClass375_4354 = new IncommingPacket(3, 7);
    		aClass375_4450 = new IncommingPacket(4, -2);
    		aClass375_4356 = new IncommingPacket(5, -2);
    		SMALL_NPC_UPDATE_PACKET = new IncommingPacket(6, -2);
    		aClass375_4366 = new IncommingPacket(7, 8);
    		aClass375_4381 = new IncommingPacket(8, 6);
    		aClass375_4360 = new IncommingPacket(9, 0);
    		aClass375_4361 = new IncommingPacket(10, -2);
    		aClass375_4362 = new IncommingPacket(11, 2);
    		aClass375_4363 = new IncommingPacket(12, 6);
    		aClass375_4365 = new IncommingPacket(13, 8);
    		aClass375_4473 = new IncommingPacket(14, 2);
    		aClass375_4392 = new IncommingPacket(15, 3);
    		aClass375_4367 = new IncommingPacket(16, -2);
    		aClass375_4368 = new IncommingPacket(17, 3);
    		aClass375_4433 = new IncommingPacket(18, 8);
    		aClass375_4370 = new IncommingPacket(19, -1);
    		aClass375_4402 = new IncommingPacket(20, 6);
    		aClass375_4372 = new IncommingPacket(21, 1);
    		aClass375_4510 = new IncommingPacket(22, -1);
    		aClass375_4374 = new IncommingPacket(23, 32);
    		aClass375_4391 = new IncommingPacket(24, 6);
    		aClass375_4376 = new IncommingPacket(25, -1);
    		aClass375_4377 = new IncommingPacket(26, 10);
    		aClass375_4460 = new IncommingPacket(27, 5);
    		aClass375_4480 = new IncommingPacket(28, -2);
    		aClass375_4380 = new IncommingPacket(29, 0);
    		aClass375_4427 = new IncommingPacket(30, 2);
    		aClass375_4382 = new IncommingPacket(31, -1);
    		aClass375_4394 = new IncommingPacket(32, 5);
    		aClass375_4384 = new IncommingPacket(33, 5);
    		aClass375_4385 = new IncommingPacket(34, 25);
    		aClass375_4386 = new IncommingPacket(35, 8);
    		aClass375_4397 = new IncommingPacket(36, 5);
    		WINDOW_PANE_PACKET = new IncommingPacket(37, 19);
    		aClass375_4389 = new IncommingPacket(38, 23);
    		aClass375_4371 = new IncommingPacket(39, 6);
    		aClass375_4399 = new IncommingPacket(40, 4);
    		aClass375_4447 = new IncommingPacket(41, 3);
    		aClass375_4393 = new IncommingPacket(42, 3);
    		PLAYER_UPDATE_PACKET = new IncommingPacket(43, -2);
    		aClass375_4395 = new IncommingPacket(44, 10);
    		aClass375_4440 = new IncommingPacket(45, 0);
    		aClass375_4502 = new IncommingPacket(46, -2);
    		LARGE_NPC_UPDATE_PACKET = new IncommingPacket(47, -2);
    		aClass375_4424 = new IncommingPacket(48, 8);
    		aClass375_4400 = new IncommingPacket(49, -2);
    		aClass375_4401 = new IncommingPacket(50, -1);
    		aClass375_4503 = new IncommingPacket(51, -2);
    		aClass375_4499 = new IncommingPacket(52, 1);
    		aClass375_4478 = new IncommingPacket(53, 10);
    		aClass375_4511 = new IncommingPacket(54, -1);
    		aClass375_4406 = new IncommingPacket(55, 6);
    		aClass375_4429 = new IncommingPacket(56, 22);
    		aClass375_4408 = new IncommingPacket(57, 20);
    		aClass375_4409 = new IncommingPacket(58, -1);
    		aClass375_4410 = new IncommingPacket(59, 25);
    		aClass375_4411 = new IncommingPacket(60, 6);
    		aClass375_4412 = new IncommingPacket(61, 1);
    		aClass375_4413 = new IncommingPacket(62, 0);
    		aClass375_4414 = new IncommingPacket(63, 4);
    		aClass375_4415 = new IncommingPacket(64, 1);
    		aClass375_4416 = new IncommingPacket(65, -2);
    		aClass375_4390 = new IncommingPacket(66, 0);
    		aClass375_4373 = new IncommingPacket(67, 1);
    		aClass375_4419 = new IncommingPacket(68, 3);
    		aClass375_4420 = new IncommingPacket(69, 2);
    		RESET_MINIMAP_FLAG_PACKET = new IncommingPacket(70, 2);
    		aClass375_4422 = new IncommingPacket(71, 6);
    		aClass375_4423 = new IncommingPacket(72, 4);
    		aClass375_4396 = new IncommingPacket(73, -1);
    		aClass375_4425 = new IncommingPacket(74, -2);
    		aClass375_4426 = new IncommingPacket(75, 4);
    		aClass375_4492 = new IncommingPacket(76, 2);
    		aClass375_4428 = new IncommingPacket(77, 2);
    		aClass375_4407 = new IncommingPacket(78, 4);
    		aClass375_4430 = new IncommingPacket(79, 14);
    		aClass375_4431 = new IncommingPacket(80, 9);
    		aClass375_4432 = new IncommingPacket(81, -1);
    		aClass375_4417 = new IncommingPacket(82, 8);
    		aClass375_4434 = new IncommingPacket(83, -1);
    		aClass375_4435 = new IncommingPacket(84, -1);
    		aClass375_4436 = new IncommingPacket(85, -2);
    		aClass375_4437 = new IncommingPacket(86, -2);
    		aClass375_4438 = new IncommingPacket(87, 1);
    		aClass375_4439 = new IncommingPacket(88, 5);
    		aClass375_4387 = new IncommingPacket(89, 0);
    		aClass375_4441 = new IncommingPacket(90, 28);
    		aClass375_4442 = new IncommingPacket(91, -1);
    		aClass375_4443 = new IncommingPacket(92, -2);
    		aClass375_4359 = new IncommingPacket(93, 11);
    		aClass375_4445 = new IncommingPacket(94, 0);
    		aClass375_4446 = new IncommingPacket(95, 17);
    		aClass375_4418 = new IncommingPacket(96, 8);
    		aClass375_4448 = new IncommingPacket(97, -2);
    		aClass375_4449 = new IncommingPacket(98, -2);
    		aClass375_4403 = new IncommingPacket(99, -2);
    		aClass375_4451 = new IncommingPacket(100, 0);
    		aClass375_4452 = new IncommingPacket(101, 0);
    		aClass375_4491 = new IncommingPacket(102, 2);
    		aClass375_4358 = new IncommingPacket(103, -2);
    		aClass375_4455 = new IncommingPacket(104, 6);
    		aClass375_4456 = new IncommingPacket(105, 6);
    		aClass375_4457 = new IncommingPacket(106, 2);
    		aClass375_4458 = new IncommingPacket(107, 7);
    		aClass375_4459 = new IncommingPacket(108, 6);
    		aClass375_4378 = new IncommingPacket(109, 8);
    		aClass375_4461 = new IncommingPacket(110, -2);
    		aClass375_4462 = new IncommingPacket(111, -1);
    		aClass375_4463 = new IncommingPacket(112, 10);
    		aClass375_4464 = new IncommingPacket(113, 6);
    		aClass375_4465 = new IncommingPacket(114, -1);
    		aClass375_4466 = new IncommingPacket(115, 3);
    		aClass375_4467 = new IncommingPacket(116, 3);
    		aClass375_4468 = new IncommingPacket(117, 6);
    		aClass375_4469 = new IncommingPacket(118, 4);
    		aClass375_4470 = new IncommingPacket(119, -2);
    		aClass375_4404 = new IncommingPacket(120, 0);
    		aClass375_4472 = new IncommingPacket(121, 12);
    		aClass375_4509 = new IncommingPacket(122, 0);
    		aClass375_4474 = new IncommingPacket(123, 3);
    		aClass375_4475 = new IncommingPacket(124, -2);
    		aClass375_4476 = new IncommingPacket(125, 3);
    		aClass375_4477 = new IncommingPacket(126, 12);
    		aClass375_4500 = new IncommingPacket(127, -2);
    		aClass375_4479 = new IncommingPacket(128, 6);
    		aClass375_4364 = new IncommingPacket(129, 2);
    		aClass375_4481 = new IncommingPacket(130, 10);
    		aClass375_4353 = new IncommingPacket(131, -1);
    		aClass375_4483 = new IncommingPacket(132, 9);
    		aClass375_4355 = new IncommingPacket(133, -1);
    		aClass375_4453 = new IncommingPacket(134, 2);
    		aClass375_4486 = new IncommingPacket(135, 8);
    		aClass375_4487 = new IncommingPacket(136, 8);
    		aClass375_4488 = new IncommingPacket(137, -2);
    		aClass375_4489 = new IncommingPacket(138, -1);
    		aClass375_4351 = new IncommingPacket(139, 8);
    		aClass375_4490 = new IncommingPacket(140, 6);
    		aClass375_4484 = new IncommingPacket(141, 6);
    		aClass375_4493 = new IncommingPacket(142, -1);
    		aClass375_4494 = new IncommingPacket(143, 16);
    		aClass375_4495 = new IncommingPacket(144, 9);
    		aClass375_4496 = new IncommingPacket(145, 19);
    		aClass375_4497 = new IncommingPacket(146, 0);
    		aClass375_4498 = new IncommingPacket(147, 4);
    		aClass375_4383 = new IncommingPacket(148, 10);
    		aClass375_4375 = new IncommingPacket(149, -2);
    		aClass375_4501 = new IncommingPacket(150, 5);
    		aClass375_4444 = new IncommingPacket(151, 1);
    		aClass375_4369 = new IncommingPacket(152, -1);
    		aClass375_4482 = new IncommingPacket(153, -1);
    		aClass375_4505 = new IncommingPacket(154, 1);
    		aClass375_4506 = new IncommingPacket(155, 29);
    		aClass375_4507 = new IncommingPacket(156, -2);
    		aClass375_4508 = new IncommingPacket(157, 4);
    		aClass375_4379 = new IncommingPacket(158, 10);
    		aClass375_4405 = new IncommingPacket(159, 8);
    		aClass375_4471 = new IncommingPacket(160, -1);
    		SWITCH_ITEM_LOOKS = new IncommingPacket(161, 1);
    Are the ids the same for PLAYER_OPTION_5_PACKET on the server and on the client? If they are, then they're most likely misidentified. Try looking for places where PLAYER_OPTION_1_PACKET is used in the client, you should be able to find the other missing packets in the same bits of code. You will also how the client writes the data (playerIndex + run mask), so you can use the correct stream read methods to decode it.
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Feb 2017
    Age
    26
    Posts
    53
    Thanks given
    3
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    Are the ids the same for PLAYER_OPTION_5_PACKET on the server and on the client? If they are, then they're most likely misidentified. Try looking for places where PLAYER_OPTION_1_PACKET is used in the client, you should be able to find the other missing packets in the same bits of code. You will also how the client writes the data (playerIndex + run mask), so you can use the correct stream read methods to decode it.
    service side seems the same as client
    Code:
    
    private final static int PLAYER_OPTION_5_PACKET = 103;
    	private final static int PLAYER_OPTION_6_PACKET = 1;
    	private final static int PLAYER_OPTION_7_PACKET = 51;
    	private final static int PLAYER_OPTION_8_PACKET = 94;
    	private final static int PLAYER_OPTION_9_PACKET = 53;
    	private final static int PLAYER_OPTION_10_PACKET = 70;
    client.java
    Code:
    }
    		if (IncommingPacket.aClass375_4390 == ((Class184) class184).aClass375_2286) {
    			Class470.method7825(517348899);
    			Class514.method8841(-198853245);
    			((Class184) class184).aClass375_2286 = null;
    			return true;
    class60.java
    Code:
    IncommingPacket.aClass375_4390
    Reply With Quote  
     

  10. #10  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    654
    Thanks received
    640
    Rep Power
    358
    You're mixing up the in/out packets. The only packets we're interested into are the OUT packets. Look for PLAYER_OPTION_1_PACKET in the client, you should find PLAYER_OPTION_2 to 4 next to it as well. Post that bit of code.
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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. how do i change the player options
    By mrprostat in forum Help
    Replies: 7
    Last Post: 03-11-2009, 06:57 AM
  2. Player options
    By phat josh in forum Help
    Replies: 2
    Last Post: 02-04-2009, 10:22 PM
  3. player options
    By phat josh in forum Help
    Replies: 2
    Last Post: 02-04-2009, 12:09 PM
  4. player option help
    By mike623030 in forum Help
    Replies: 2
    Last Post: 01-17-2009, 03:06 PM
  5. Make new right click player option
    By w::v::d in forum Tutorials
    Replies: 2
    Last Post: 06-23-2008, 03:34 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •