using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;
using WCell.Core;
using WCell.Core.Initialization;
using WCell.Core.DBC;
using WCell.Core.Network;
using WCell.RealmServer.Entities;
namespace WCell.RealmServer.Help
{
public static class TicketHandler
{
private static Logger log = LogManager.GetCurrentClassLogger();
[PacketHandler(RealmServerOpCode.CMSG_GMTICKET_CREATE)]
public static void HandleCreateGMTicketPacket(RealmClient client, RealmPacketIn packet)
{
if (client.ActiveCharacter == null)
{
return;
}
Ticket newTicket = new Ticket();
newTicket.Type = packet.ReadUInt32();
packet.ReadBytes(8); // No idea what this part is
newTicket.Position_X = packet.ReadFloat();
newTicket.Position_Y = packet.ReadFloat();
newTicket.Position_Z = packet.ReadFloat();
newTicket.Message = packet.ReadString();
newTicket.Timestamp = DateTime.Now.ToLongTimeString();
}
}
}