StallPlayerUpdate() public static method

public static StallPlayerUpdate ( int Characterid, int type ) : byte[]
Characterid int
type int
return byte[]
Example #1
0
        public void EnterStall()
        {
            try
            {
                if (Character.Information.Scroll)
                {
                    return;
                }
                PacketReader Reader  = new PacketReader(PacketInformation.buffer);
                Systems      staller = GetPlayer(Reader.Int32());

                Character.Network.Stall = staller.Character.Network.Stall;

                staller.Character.Network.Stall.Members.Add(Character.Information.UniqueID);
                staller.Character.Network.Stall.MembersClient.Add(this.client);

                client.Send(Packet.EnterStall(Character.Information.UniqueID, staller.Character.Network.Stall));

                staller.Character.Network.Stall.Send(Packet.StallPlayerUpdate(Character.Information.UniqueID, 2), this.client);
                Character.Stall.Stallactive = true;
            }
            catch (Exception ex)
            {
                Systems.Debugger.Write(ex);
            }
        }
Example #2
0
        public void LeaveStall()
        {
            try
            {
                Character.Network.Stall.Members.Remove(this.Character.Information.UniqueID);
                Character.Network.Stall.MembersClient.Remove(this.client);

                client.Send(Packet.LeaveStall());
                Character.Network.Stall.Send(Packet.StallPlayerUpdate(this.Character.Information.UniqueID, 1), this.client);

                Character.Network.Stall.Dispose();
                Character.Network.Stall     = null;
                Character.Stall.Stallactive = false;
            }
            catch (Exception ex)
            {
                Systems.Debugger.Write(ex);
            }
        }