bump
|
okai so when i add people to my list they dont appear online even if they are online. Also when i re log the person i added to list is gone....
please can someone help
bump
bump
Is packet/frame 50 sent somewhere?
That's the packet used for letting a client know a friend went online or offline.
It sends a long (representing the friend's name) and a byte (representing the world the friend logged in to, which is 0 if he or she went offline (or private to off)).
were can i find it?
No idea (I use Hyperion).
An IDE should be able to search through your whole project in no time (so can windows explorer but I'm promoting the use of IDEs).
just checked i cant find anything
Well, there's your problem then.
It's a packet that could be sent when either of the following happens:
- When a friend is added to the list
- When you delete a friend
- When someone changes their private status
- When someone comes online
- When someone goes offline
Who the packet is sent too, depends on online/offline and private status.
In Hyperion the packet itself looks like this:
So that's a packet with fixed length (opcode = 50).Code:/** * Sends the friend status/adds a friend. * @param friendLong The friends long. * @param world The friends world * >0: Online (World) 0: Offline * @return The action sender instance, for chaining. */ public ActionSender sendFriend(long friendLong, int world){ PacketBuilder bldr = new PacketBuilder(50); bldr.putLong(friendLong).put((byte) world); player.write(bldr.toPacket()); return this; }
Then the friend's long value sent as a long.
And finaly the world sent as a byte.
yeah but i cant find that method anywhere on my source or any other source even if it is working on other one's
Hmmmm, if that the case, my first question should've been: "Is this 317?".
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |