Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Sistema Climas / Pezzi The Best
- ArgCO.Network.GamePackets.Weather weather;
- #region Rain System
- if (DateTime.Now.Minute == 10 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
- {
- foreach (GameState state in Kernel.GamePool.Values)
- {
- Program.WeatherType = ArgCO.Network.GamePackets.Weather.Snow;
- weather = new ArgCO.Network.GamePackets.Weather(true)
- {
- WeatherType = (uint)Program.WeatherType,
- Intensity = 255,
- Appearence = 255,
- Direction = 255
- };
- state.Send(weather);
- }
- }
- #endregion Rain System
- #region Snow System
- if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
- {
- foreach (GameState state in Kernel.GamePool.Values)
- {
- Program.WeatherType = ArgCO.Network.GamePackets.Weather.Snow;
- weather = new ArgCO.Network.GamePackets.Weather(true)
- {
- WeatherType = (uint)Program.WeatherType,
- Intensity = 255,
- Appearence = 255,
- Direction = 255
- };
- state.Send(weather);
- }
- }
- #endregion Snow System
- #region AutumnLeaves
- if (DateTime.Now.Minute == 30 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
- {
- foreach (GameState state in Kernel.GamePool.Values)
- {
- Program.WeatherType = ArgCO.Network.GamePackets.Weather.Snow;
- weather = new ArgCO.Network.GamePackets.Weather(true)
- {
- WeatherType = (uint)Program.WeatherType,
- Intensity = 255,
- Appearence = 255,
- Direction = 255
- };
- state.Send(weather);
- }
- }
- #endregion AutumnLeaves
- #region CherryBlossomPetals
- if (DateTime.Now.Minute == 40 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
- {
- foreach (GameState state in Kernel.GamePool.Values)
- {
- Program.WeatherType = ArgCO.Network.GamePackets.Weather.Snow;
- weather = new ArgCO.Network.GamePackets.Weather(true)
- {
- WeatherType = (uint)Program.WeatherType,
- Intensity = 255,
- Appearence = 255,
- Direction = 255
- };
- state.Send(weather);
- }
- }
- #endregion CherryBlossomPetals
- #region BlowingCotten
- if (DateTime.Now.Minute == 60 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
- {
- foreach (GameState state in Kernel.GamePool.Values)
- {
- Program.WeatherType = ArgCO.Network.GamePackets.Weather.Snow;
- weather = new ArgCO.Network.GamePackets.Weather(true)
- {
- WeatherType = (uint)Program.WeatherType,
- Intensity = 255,
- Appearence = 255,
- Direction = 255
- };
- state.Send(weather);
- }
- }
- #endregion CherryBlossomPetals
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement