Exemplo n.º 1
0
        public void EnterChannel(Session s, PacketRead r)
        {
            s.PInfo.m_dwChannelUID = r.Int();
            PacketWrite p = new PacketWrite();

            p.HexArray("00 00 00 00 03");
            p.Int(Serializables.m_timeStamp());
            p.Int(Serializables.m_timeStamp());
            s.SendPacket(p, 45);
            GameServer.UsersList.Add(s);
            s.PInfo.m_cStatus = "LOBBY";
        }
Exemplo n.º 2
0
        public void ServerTime()
        {
            DateTime d2 = DateTime.Now;

            Common.PacketWrite ks = new Common.PacketWrite();
            ks.Int(Serializables.m_timeStamp());
            ks.Int(d2.Year);
            ks.Int(d2.Month);
            ks.Int(d2.Day);
            ks.Int(d2.Hour);
            ks.Int(d2.Minute);
            ks.Int(d2.Second);

            GameServer.SendForAllPlayersInServer(ks, 416);
        }
Exemplo n.º 3
0
        private void exception()
        {
            int timeStamp = Serializables.m_timeStamp();

            for (int x = 0; x < GameServer.HeroEpic.Count; x++)
            {
                for (int x2 = 0; x2 < GameServer.HeroEpic[x].TimeStamps.Count; x2++)
                {
                    //Log.Write("Current:{0} ,Hero:{1}", timeStamp, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen);
                    if ((GameServer.HeroEpic[x].TimeStamps[x2].StampOpen - 300) == timeStamp)
                    {
                        Alarm(5, GameServer.HeroEpic[x].DungeonID, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen, GameServer.HeroEpic[x].TimeStamps[x2].StampClose);
                    }
                    else if ((GameServer.HeroEpic[x].TimeStamps[x2].StampOpen - 180) == timeStamp)
                    {
                        Alarm(3, GameServer.HeroEpic[x].DungeonID, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen, GameServer.HeroEpic[x].TimeStamps[x2].StampClose);
                    }
                    else if ((GameServer.HeroEpic[x].TimeStamps[x2].StampOpen - 120) == timeStamp)
                    {
                        Alarm(2, GameServer.HeroEpic[x].DungeonID, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen, GameServer.HeroEpic[x].TimeStamps[x2].StampClose);
                    }
                    else if ((GameServer.HeroEpic[x].TimeStamps[x2].StampClose - 300) == timeStamp)
                    {
                        Alarm(5, GameServer.HeroEpic[x].DungeonID, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen, GameServer.HeroEpic[x].TimeStamps[x2].StampClose, true);
                    }
                    else if ((GameServer.HeroEpic[x].TimeStamps[x2].StampClose - 180) == timeStamp)
                    {
                        Alarm(3, GameServer.HeroEpic[x].DungeonID, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen, GameServer.HeroEpic[x].TimeStamps[x2].StampClose, true);
                    }
                    else if ((GameServer.HeroEpic[x].TimeStamps[x2].StampClose - 120) == timeStamp)
                    {
                        Alarm(2, GameServer.HeroEpic[x].DungeonID, GameServer.HeroEpic[x].TimeStamps[x2].StampOpen, GameServer.HeroEpic[x].TimeStamps[x2].StampClose, true);
                    }
                }
            }
        }