Ejemplo n.º 1
0
        public void SendCalendarCommandResult(ObjectGuid guid, CalendarError err, string param = null)
        {
            Player player = Global.ObjAccessor.FindPlayer(guid);

            if (player)
            {
                CalendarCommandResult packet = new CalendarCommandResult();
                packet.Command = 1; // FIXME
                packet.Result  = err;

                switch (err)
                {
                case CalendarError.OtherInvitesExceeded:
                case CalendarError.AlreadyInvitedToEventS:
                case CalendarError.IgnoringYouS:
                    packet.Name = param;
                    break;
                }

                player.SendPacket(packet);
            }
        }
Ejemplo n.º 2
0
 public CalendarCommandResult(byte command, CalendarError result, string name) : base(ServerOpcodes.CalendarCommandResult)
 {
     Command = command;
     Result  = result;
     Name    = name;
 }