[Disgus]How to send packet from SR_GameServer to Client?

05/19/2022 12:14 asuradoll#1
I want to add some new things to sro, so I hooked SRO_Client.

To to thins, I need to send a custom packet eg: 0x6655 from SR_GameServer to the client, how to do it?

I found that each player has a unique ID in the memory of SR_Gameserver by debug, what I can imagine is that there should be a function similar to this:

class Player{
int UserID;
int CharID;
int uniqueID;
}

SR_GameServer.SendToPlayer(Player player, Packet packet)
{
....
}

I cant find that function:mad:, Can anyone shre your work for me?
05/26/2022 11:31 UnkownW#2
I Think gameserver Lib cherno has this function as i remember
05/26/2022 12:42 asuradoll#3
Quote:
Originally Posted by UnkownW View Post
I Think gameserver Lib cherno has this function as i remember
Searched but cant find something like that.
you mean this one?
[Only registered and activated users can see links. Click Here To Register...]