public static void UserSessionExtendedDataUpdateNotification(Blaze.Packet p, PlayerInfo pi, NetworkStream ns) { List <Blaze.Tdf> Result = new List <Blaze.Tdf>(); Result.Add(BlazeHelper.CreateUserDataStruct(pi)); Result.Add(Blaze.TdfInteger.Create("USID", pi.userId)); byte[] buff = Blaze.CreatePacket(0x7802, 1, 0, 0x2000, 0, Result); ns.Write(buff, 0, buff.Length); ns.Flush(); }
public static void NotifyUserAdded(Blaze.Packet p, PlayerInfo pi, NetworkStream ns) { List <Blaze.Tdf> result = new List <Blaze.Tdf>(); result.Add(BlazeHelper.CreateUserDataStruct(pi)); result.Add(BlazeHelper.CreateUserStruct(pi)); byte[] buff = Blaze.CreatePacket(0x7802, 0x2, 0, 0x2000, 0, result); ns.Write(buff, 0, buff.Length); ns.Flush(); }
public static void NotifyUserAdded(PlayerInfo src, Blaze.Packet p, PlayerInfo pi, NetworkStream ns) { List <Blaze.Tdf> result = new List <Blaze.Tdf>(); result.Add(BlazeHelper.CreateUserDataStruct(pi)); result.Add(BlazeHelper.CreateUserStruct(pi)); byte[] buff = Blaze.CreatePacket(0x7802, 0x2, 0, 0x2000, 0, result); ns.Write(buff, 0, buff.Length); ns.Flush(); BlazeServer.Log("[CLNT] #" + src.userId + " [7802:0001] NotifyUserAdded", System.Drawing.Color.Black); }
public static void UserSessionExtendedDataUpdateNotification(PlayerInfo src, Blaze.Packet p, PlayerInfo pi, NetworkStream ns) { List <Blaze.Tdf> Result = new List <Blaze.Tdf>(); Result.Add(BlazeHelper.CreateUserDataStruct(pi)); Result.Add(Blaze.TdfInteger.Create("USID", pi.userId)); byte[] buff = Blaze.CreatePacket(0x7802, 1, 0, 0x2000, 0, Result); ns.Write(buff, 0, buff.Length); ns.Flush(); BlazeServer.Log("[CLNT] #" + src.userId + " [7802:0001] UserSessionExtendedDataUpdateNotification", System.Drawing.Color.Black); }
public static void LookUpUser(Blaze.Packet p, PlayerInfo pi, NetworkStream ns) { List <Blaze.Tdf> result = new List <Blaze.Tdf>(); result.Add(BlazeHelper.CreateUserDataStruct(pi, "EDAT")); result.Add(Blaze.TdfInteger.Create("FLGS", 3)); result.Add(BlazeHelper.CreateUserStruct(pi)); byte[] buff = Blaze.CreatePacket(p.Component, p.Command, 0, 0x1000, p.ID, result); ns.Write(buff, 0, buff.Length); ns.Flush(); }