Thread: [474] In-depth analysis of the 474 protocol.

Page 21 of 21 FirstFirst ... 11192021
Results 201 to 205 of 205
  1. #201  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,895
    Thanks given
    1,564
    Thanks received
    2,624
    Rep Power
    5000
    Quote Originally Posted by TheChosenOne View Post
    First post, second phrase .


    Packet 76 would help. I've got the impression it has something to do with the position, but I just can't get it to work.
    EDIT: forgot to actually send the packet for testing lol. Found out it was the one we're looking for: offsetting interface children on the parent.






    Name: OffsetInterfaceItem
    Number: 76
    Purpose: Offsets child interfaces on the parent’s interface.
    Data Sent: parentId, childId, xOffset, yOffset
    How to send:
    Code:
    bldr.putLEShort(xOffset);
    bldr.putLEInt(parentId << 16 | childId);
    bldr.putShortA(yOffset);
    Remarks: The offset is in relation to the child’s original position on the parent.
    -------------------------------------------------------------------
    Like person above me said, its used for bank pins and ect, thats my packet for 414
    Code:
    	public ActionSender sendComponentPosition(int interfaceId, int childId, int x, int y) {
    		player.write(new PacketBuilder(222).putLEShortA(y).putInt1(interfaceId << 16 | childId).putLEShort(x).toPacket());
    		return this;
    	}
    Reply With Quote  
     

  2. #202  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Also for the ranging guild minigame where you shoot an arrow at the shooting range (at least, so I've been told).
    Reply With Quote  
     

  3. #203  
    Theory Wins?
    Greyfield's Avatar
    Join Date
    Nov 2008
    Age
    32
    Posts
    1,585
    Thanks given
    61
    Thanks received
    265
    Rep Power
    310
    Do you have the packet that handles transforming an npc? Such as shearing a sheep, etc..



    Reply With Quote  
     

  4. #204  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Quote Originally Posted by Dillusion' View Post
    Do you have the packet that handles transforming an npc? Such as shearing a sheep, etc..
    Not entirely sure, but I think that's mask 0x2 at the NPCUpdateTask: "packet.putLEShortA(npc.getTransformationValue()); ".
    Reply With Quote  
     

  5. #205  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    New update: server to client packet.

    Name: Update ClanChat Participant
    Number: 32
    Purpose: Updates (adds or removes) 1 participant to/from the list of clan chat participants.
    Data Sent: participantLong, participantWorld, participantRank
    How to send:
    Add/Update a clanChat participant:
    Code:
    bldr.putLong(participantLong);
    bldr.putShort(participantWorld);
    bldr.put(participantRank);
    Remove participant from clanChat:
    Code:
    participantLong |= 0x8000000000000000L;
    bldr.putLong(participantLong);
    bldr.putShort(participantWorld);
    bldr.put(participant.getRank().toByte());
    Remarks: To remove a participant from the list, you need to add a flag (0x8000000000000000L) to the participantLong (the name of the participant in long format).
    You can combine both add/update and remove by making the flag addition optional:
    Code:
    if(!add)
        participantLong |= 0x8000000000000000L;
    For updating or clearing the whole list, see packet 56: Update ClanChat List
    -------------------------------------------------------------------
    Reply With Quote  
     

Page 21 of 21 FirstFirst ... 11192021

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

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