using PSO2SERVER.Models; using PSO2SERVER.Object; using PSO2SERVER.Protocol.Packets; using PSO2SERVER.Zone; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PSO2SERVER.Protocol.Handlers { [PacketHandlerAttr(0x03, 0x35)] public class TeleportLobbyToCasino : PacketHandler { /// (0x03, 0x35) Move Lobby -> Casino. public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size) { if (context._account == null) return; // Dunno what these are yet. context.SendPacket(0x11, 0x0A, 0x0, BitConverter.GetBytes(context._account.AccountId)); context.SendPacket(new Unk1E0CPacket(101)); Map casinoMap = ZoneManager.Instance.MapFromInstance("casino", "lobby"); casinoMap.SpawnClient(context, casinoMap.GetDefaultLocation()); } } }