Thread: 667 sendIComponentSprite Packet

Results 1 to 2 of 2
  1. #1 667 sendIComponentSprite Packet 
    Registered Member
    Join Date
    Sep 2017
    Posts
    84
    Thanks given
    12
    Thanks received
    32
    Rep Power
    13
    Hi all, just while working on my project I noticed an issue where my sendIComponentSprite() method was not decoded properly for 667.

    After a couple of hours trying to find a source out there with it decoded correctly, I decided to do it myself.

    It's my first time doing something like this and I managed to make it work, and I'm quite happy with it haha.

    Anyawys, here it is for anyone else that might have a use for it.

    Code:
    	public void sendIComponentSprite(int interfaceId, int componentId, int spriteId) {
    		OutputStream stream = new OutputStream(10);
    		stream.writePacket(2);
    		stream.writeShortLE(spriteId);
    		stream.writeInt(interfaceId << 16 | componentId);
    		session.write(stream);
    	}
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Mug Club


    Join Date
    Jul 2011
    Age
    27
    Posts
    1,950
    Thanks given
    533
    Thanks received
    944
    Discord
    View profile
    Rep Power
    409
    Nice nice. Learning packet decoding is an awesome step to learn.
    Reply With Quote  
     

  4. Thankful users:



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. 667 Missing Packet Names?
    By Ynneh in forum Requests
    Replies: 5
    Last Post: 12-29-2014, 01:05 AM
  2. [667] Missing Packets Issue
    By Bow in forum Help
    Replies: 1
    Last Post: 07-06-2013, 10:31 PM
  3. 667/*** Disabling packets
    By TehWorstCoder in forum Help
    Replies: 2
    Last Post: 08-29-2012, 03:23 AM
  4. 667 Clanchat packets
    By chilleno in forum Requests
    Replies: 1
    Last Post: 04-04-2012, 03:02 PM
  5. 667 sending packets - ziotic base
    By Polish Civil in forum Help
    Replies: 8
    Last Post: 01-01-2012, 05:32 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
  •