public void LaunchChangeMap(int mapId) { if (m_Account.Path != null) m_Account.Path.ClearStack(); m_MapId = -1; ChangeMapMessage msg = new ChangeMapMessage(mapId); m_Account.SetStatus(Status.Busy); m_Account.SocketManager.Send(msg); Thread t = new Thread(new ThreadStart(CheckMapChange)); t.Start(); }
public void LaunchChangeMap(int mapId) { //if (AutoTimeout) // m_Account.Game.Character.State.SetTimeout(StateEnum.Context, false, TimeoutMin, TimeoutMax); using (BigEndianWriter writer = new BigEndianWriter()) { ChangeMapMessage msg = new ChangeMapMessage(mapId); msg.Serialize(writer); MessagePackaging pack = new MessagePackaging(writer); pack.Pack((int)msg.ProtocolID); m_Account.SocketManager.Send(pack.Writer.Content); } }