EnterStall() public static method

public static EnterStall ( int CharacterID, stall stall ) : byte[]
CharacterID int
stall stall
return byte[]
示例#1
0
文件: Stall.cs 项目: uvbs/DarkEmu
        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);
            }
        }