#region The-Monster #region BigMonster [War] #region LostMan if (DateTime.Now.Hour == 12 && DateTime.Now.Minute == 10 && DateTime.Now.Second == 05) { ushort x = 0, y = 0; ushort MapID = 1035; y = 51; x = 89; if (Database.DMaps.LoadMap(MapID)) { if (Program.LostMan) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(417101)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[417101]; mt.BoundX = x; Program.LostMan = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage("LostMan W7sh al MONY&&CPS&PRFICTION Low 3ez Tro7 Dos Ok!"); client10.MessageBox("LostMan W7sh MONY&&CPS&PRFICTION Low 3ez Tro7 Dos Ok?", (p) => { p.Player.Teleport(1035, 91, 57); }, null, 20); } } } } } } #endregion #region Legendarywarrior if (DateTime.Now.Hour == 00 && DateTime.Now.Minute == 10 && DateTime.Now.Second == 05) { ushort x = 0, y = 0; ushort MapID = 1035; y = 51; x = 89; uint id = 417110; string name = "Legendarywarrior"; if (Database.DMaps.LoadMap(MapID)) { if (Program.Legendary) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.Legendary = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " W7sh al MONY&&CPS&PRFICTION low Htro7 Dos Ok!"); client10.MessageBox(name + " W7sh al MONY&&CPS&PRFICTION low Htro7 Dos Ok?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #endregion #region BigMonster [SavageBone] #region ThrillingSpook if (DateTime.Now.Minute == 45 && DateTime.Now.Second == 10) { ushort x = 0, y = 0; ushort MapID = 39984; y = 290; x = 152; uint id = 4172; string name = "ThrillingSpook"; if (Database.DMaps.LoadMap(MapID)) { if (Program.ThrillingSpook) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.ThrillingSpook = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region SnowBanshee if (DateTime.Now.Minute == 30 && DateTime.Now.Second == 10) { ushort x = 0, y = 0; ushort MapID = 39984; y = 226; x = 360; uint id = 4171; string name = "SnowBanshee"; if (Database.DMaps.LoadMap(MapID)) { if (Program.SnowBa) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.SnowBa = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region NemesisTyrant if (DateTime.Now.Minute == 15 && DateTime.Now.Second == 10) { ushort x = 0, y = 0; ushort MapID = 39984; y = 183; x = 132; uint id = 4220; string name = "NemesisTyrant"; if (Database.DMaps.LoadMap(MapID)) { if (Program.Nemesis) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.Nemesis = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region TeratoDragon if ((DateTime.Now.Minute == 00 && DateTime.Now.Second == 10)) { ushort x = 0, y = 0; ushort MapID = 39984; y = 93; x = 212; uint id = 4152; string name = "TeratoDragon"; ; if (Database.DMaps.LoadMap(MapID)) { if (Program.TeratoDragon) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.TeratoDragon = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #endregion #region BigMonster [Stone] #region Shanghi if ((DateTime.Now.Minute == 09 && DateTime.Now.Second == 10)) { ushort x = 0, y = 0; ushort MapID = 39990; y = 177; x = 114; uint id = 417109; string name = "Shanghi"; if (Database.DMaps.LoadMap(MapID)) { if (Program.Shangi) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.Shangi = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region Destructive if ((DateTime.Now.Minute == 18 && DateTime.Now.Second == 10)) { ushort x = 0, y = 0; ushort MapID = 39990; y = 266; x = 159; uint id = 417107; string name = "destructive"; if (Database.DMaps.LoadMap(MapID)) { if (Program.Destructive) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.Destructive = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region DeadLady if ((DateTime.Now.Minute == 27 && DateTime.Now.Second == 10)) { ushort x = 0, y = 0; ushort MapID = 39990; y = 345; x = 289; uint id = 417103; string name = "DeadLady"; if (Database.DMaps.LoadMap(MapID)) { if (Program.DeadLady) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.DeadLady = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region DeadMan if ((DateTime.Now.Minute == 36 && DateTime.Now.Second == 10)) { ushort x = 0, y = 0; ushort MapID = 39990; y = 273; x = 368; uint id = 417102; string name = "DeadMan"; if (Database.DMaps.LoadMap(MapID)) { if (Program.DeadMan) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.DeadMan = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region Vampire if ((DateTime.Now.Minute == 45 && DateTime.Now.Second == 10)) { ushort x = 0, y = 0; ushort MapID = 39990; y = 104; x = 226; uint id = 417114; string name = "Vampire"; if (Database.DMaps.LoadMap(MapID)) { if (Program.Vampira) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.Vampira = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #region SwordMaster if (DateTime.Now.Minute == 54 && DateTime.Now.Second == 05) { ushort x = 0, y = 0; ushort MapID = 39990; y = 83; x = 130; uint id = 4170; string name = "SwordMaster"; if (Database.DMaps.LoadMap(MapID)) { if (Program.SwordMaster) { if (Kernel.Maps.ContainsKey(MapID)) { var Map = Kernel.Maps[MapID]; if (Database.MonsterInformation.MonsterInformations.ContainsKey(id)) { Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id]; mt.BoundX = x; Program.SwordMaster = false; mt.BoundY = y; Entity entity = new Entity(EntityFlag.Monster, false); entity.MapObjType = MapObjectType.Monster; entity.MonsterInfo = mt.Copy(); entity.MonsterInfo.Owner = entity; entity.Name = mt.Name; entity.MinAttack = mt.MinAttack; entity.MaxAttack = entity.MagicAttack = mt.MaxAttack; entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints; entity.Defence = mt.Defence; entity.Body = mt.Mesh; entity.Level = mt.Level; entity.UID = Map.EntityUIDCounter.Next; entity.MapID = MapID; entity.X = x; entity.Boss = 1; entity.Y = y; if (x == 0 || y == 0) { var cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; do { cord = Map.RandomCoordinates(); entity.X = cord.Item1; entity.Y = cord.Item2; } while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]); } Map.AddEntity(entity); Network.GamePackets._String stringPacket = new Network.GamePackets._String(true); stringPacket.UID = entity.UID; stringPacket.Type = Network.GamePackets._String.Effect; stringPacket.Texts.Add("MBStandard"); Data data = new Data(true); data.UID = entity.UID; data.ID = Network.GamePackets.Data.AddEntity; data.wParam1 = entity.X; data.wParam2 = entity.Y; foreach (Client.GameState clllient in Program.Values) { if (clllient.Map.ID == entity.MapID) { if (Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) < Constants.nScreenDistance) { entity.SendSpawn(clllient, false); clllient.Send(stringPacket); clllient.Send(data); if (entity.MaxHitpoints > 65535) { Update upd = new Update(true) { UID = entity.UID }; upd.Append(Update.MaxHitpoints, entity.MaxHitpoints); upd.Append(Update.Hitpoints, entity.Hitpoints); clllient.Send(upd); } } } } foreach (var client10 in Program.Values) { client10.Player.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!"); client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?", (p) => { p.Player.Teleport(MapID, x, y); }, null, 20); } } } } } } #endregion #endregion #endregion
#region Big-Monsters if (Name == "Vampire") Program.Vampira = true; if (Name == "SnowBanshee") Program.SnowBa = true; if (Name == "NemesisTyrant") Program.Nemesis = true; if (Name == "Legendarywarrior") Program.Legendary = true; if (Name == "LostMan") Program.LostMan = true; if (Name == "DeadLady") Program.DeadLady = true; if (Name == "DeadMan") Program.DeadMan = true; if (Name == "Shanghi") Program.Shangi = true; if (Name == "SwordMaster") Program.SwordMaster = true; if (Name == "TeratoDragon") Program.TeratoDragon = true; if (Name == "destructive") Program.Destructive = true; if (Name == "SnowBansheeSoul") Program.SnowSoul = true; if (Name == "ThrillingSpook") Program.ThrillingSpook = true; #endregion
#region TheBigMonster #region Boss[Stone] if (Name == "Vampire" || Name == "DeadLady" || Name == "Shanghi" || Name == "DeadMan" || Name == "SnowBansheeSoul" || Name == "destructive" || Name == "SwordMaster") { killer.Owner.Player.ConquerPoints += 8000; if (killer.Owner.Team != null) { foreach (Client.GameState tm in killer.Owner.Team.Teammates) { tm.Player.SubClasses.StudyPoints += 150; } } else killer.SubClasses.StudyPoints += 150; for (int x = 0; x < 3; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[730003]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = 730003; floorItem.Item.Plus = 3; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } for (int x = 0; x < 3; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[730002]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = 730002; floorItem.Item.Plus = 2; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } for (int x = 0; x < 1; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[730004]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = 730004; floorItem.Item.Plus = 4; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } foreach (var client in Kernel.GamePool.Values) { MahmoudMaNo.Kernel.SendWorldMessage(new MahmoudMaNo.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get 8000 ConquerPoints And Stone ", Message.Center)); } } #endregion #region Boss[War] #region Legendarywarrior if (Name == "Legendarywarrior") { killer.Owner.Player.ConquerPoints += 8000; if (killer.Owner.Team != null) { foreach (Client.GameState tm in killer.Owner.Team.Teammates) { tm.Player.SubClasses.StudyPoints += 150; } } else killer.SubClasses.StudyPoints += 150; for (int x = 0; x < 2; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[3009002]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.OwnerUID = killer.UID; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } for (int x = 0; x < 5; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[3004181]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } for (int x = 0; x < 3; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[723720]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } if (Kernel.Rate(30)) { uint ItemID = 0; byte type1 = 27; int xxx = Kernel.Random.Next(12, 12); for (int i = 0; i < xxx; i++) { type1 = (byte)Kernel.Random.Next(12, 28); switch (type1) { case 1: ItemID = 3009002; break; case 2: ItemID = 3009002; break; case 3: ItemID = 3004181; break; case 4: ItemID = 3004181; break; case 5: ItemID = 3004181; break; case 6: ItemID = 3004181; break; case 7: ItemID = 3004181; break; case 8: ItemID = 723720; break; case 9: ItemID = 723720; break; case 10: ItemID = 723720; break; } var infos = Database.ConquerItemInformation.BaseInformations[ItemID]; ushort X = Owner.X, Y = Owner.Y; Game.Map Map = Kernel.Maps[Owner.MapID]; if (Map.SelectCoordonates(ref X, ref Y)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = ItemID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infos.Durability; floorItem.Item.Durability = infos.Durability; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infos.StackSize; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = ItemID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = X; floorItem.Y = Y; floorItem.Owner = killer.Owner; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (Map.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; Map.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } } foreach (var client in Kernel.GamePool.Values) { MahmoudMaNo.Kernel.SendWorldMessage(new MahmoudMaNo.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get 8000 ConquerPoints And [5] SvageBone And 150 M Money ", Message.Center)); } } #endregion #region LostMan if (Name == "LostMan") { killer.Owner.Player.ConquerPoints += 8000; if (killer.Owner.Team != null) { foreach (Client.GameState tm in killer.Owner.Team.Teammates) { tm.Player.SubClasses.StudyPoints += 150; } } else killer.SubClasses.StudyPoints += 150; for (int x = 0; x < 2; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[3009002]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.OwnerUID = killer.UID; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } for (int x = 0; x < 5; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[3004181]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } for (int x = 0; x < 3; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[723720]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } if (Kernel.Rate(30)) { uint ItemID = 0; byte type1 = 27; int xxx = Kernel.Random.Next(12, 12); for (int i = 0; i < xxx; i++) { type1 = (byte)Kernel.Random.Next(12, 28); switch (type1) { case 1: ItemID = 3009002; break; case 2: ItemID = 3009002; break; case 3: ItemID = 3004181; break; case 4: ItemID = 3004181; break; case 5: ItemID = 3004181; break; case 6: ItemID = 3004181; break; case 7: ItemID = 3004181; break; case 8: ItemID = 723720; break; case 9: ItemID = 723720; break; case 10: ItemID = 723720; break; } var infos = Database.ConquerItemInformation.BaseInformations[ItemID]; ushort X = Owner.X, Y = Owner.Y; Game.Map Map = Kernel.Maps[Owner.MapID]; if (Map.SelectCoordonates(ref X, ref Y)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = ItemID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infos.Durability; floorItem.Item.Durability = infos.Durability; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infos.StackSize; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = ItemID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = X; floorItem.Y = Y; floorItem.Owner = killer.Owner; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (Map.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; Map.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } } foreach (var client in Kernel.GamePool.Values) { MahmoudMaNo.Kernel.SendWorldMessage(new MahmoudMaNo.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get 8000 ConquerPoints And [2] SvageBone And 150 M Money ", Message.Center)); } } #endregion #endregion #region Boss[DragonIsland] if (Name == "SnowBanshee" || Name == "ThrillingSpook" || Name == "NemesisTyrant" || Name == "TeratoDragon") { killer.Owner.Player.ConquerPoints += 8000; if (killer.Owner.Team != null) { foreach (Client.GameState tm in killer.Owner.Team.Teammates) { tm.Player.SubClasses.StudyPoints += 150; } } else killer.SubClasses.StudyPoints += 150; for (int x = 0; x < 2; x++) { var infoss = Database.ConquerItemInformation.BaseInformations[3004181]; ushort XX = Owner.X, YY = Owner.Y; Game.Map MMap = Kernel.Maps[Owner.MapID]; if (MMap.SelectCoordonates(ref XX, ref YY)) { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); floorItem.Item = new Network.GamePackets.ConquerItem(true); floorItem.Item.Color = (MahmoudMaNo.Game.Enums.Color)Kernel.Random.Next(4, 8); floorItem.Item.ID = infoss.ID; floorItem.Item.Plus = floorItem.Item.Plus; floorItem.Item.MaximDurability = infoss.Durability; floorItem.Item.Durability = infoss.Durability; floorItem.Item.MobDropped = true; floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item; floorItem.ItemID = infoss.ID; floorItem.MapID = Owner.MapID; floorItem.MapObjType = Game.MapObjectType.Item; floorItem.X = XX; floorItem.Item.StackSize = 1; floorItem.Item.MaxStackSize = infoss.StackSize; floorItem.Y = YY; floorItem.OwnerUID = killer.UID; floorItem.Type = Network.GamePackets.FloorItem.Drop; floorItem.OnFloor = Time32.Now; floorItem.Owner = killer.Owner; floorItem.ItemColor = floorItem.Item.Color; floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; while (MMap.Npcs.ContainsKey(floorItem.UID)) floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next; MMap.AddFloorItem(floorItem); SendScreenSpawn(floorItem); } } foreach (var client in Kernel.GamePool.Values) { MahmoudMaNo.Kernel.SendWorldMessage(new MahmoudMaNo.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get 8000 ConquerPoints And SvageBone ", Message.Center)); } } #endregion #endregion
#region Boss-Monster case 4716112: { switch (npcRequest.OptionID) { case 0: { dialog.Text(" Hello " + client.Player.Name + " Do You Want Kill Dangerous Monsters "); dialog.Option("Monster[Stone]", 100); dialog.Option("Monster[Chi-Jiang]", 105); dialog.Option("Monster[SavageBone]", 110); dialog.Option("No Thanks", 255); dialog.Avatar(0); dialog.Send(); break; } case 100: { dialog.Text("This all Monster[Stone]"); dialog.Option("Deadman xx36", 7); dialog.Option("DeadLady xx27", 8); dialog.Option("Shanghi xx09", 9); dialog.Option("Destructive xx18", 10); dialog.Option("SwordMaster xx54", 11); dialog.Option("Vampire xx45", 12); break; } case 105: { dialog.Text("This all Monster[Chi-Jiang]"); dialog.Option("LostMan [War-Chi 400[Betl3 12.10 Al Dohr]", 13); dialog.Option("Legendarywarrior [War-Jiang Epic[Betl3 12.10 Blel]]", 14); break; } case 110: { dialog.Text("This all Monster[SavageBone]"); dialog.Option("NemesisTyrant xx15", 3); dialog.Option("SnowBanshee xx30", 4); dialog.Option("ThrillingSpook xx45", 5); dialog.Option("TeratoDragon xx00", 6); break; } #region Monster[DragonIsland] case 3: { client.Player.Teleport(39984, 132, 183); break; } case 4: { client.Player.Teleport(39984, 360, 226); break; } case 5: { client.Player.Teleport(39984, 152, 290); break; } case 6: { client.Player.Teleport(39984, 212, 93); break; } #endregion #region Monster[War] case 13: { client.Player.Teleport(1035, 92, 57); break; } case 14: { client.Player.Teleport(1035, 92, 57); break; } #endregion #region Monster[Stone] case 7: { client.Player.Teleport(39990, 363, 267); break; } case 8: { client.Player.Teleport(39990, 281, 337); break; } case 9: { client.Player.Teleport(39990, 121, 183); break; } case 10: { client.Player.Teleport(39990, 167, 266); break; } case 11: { client.Player.Teleport(39990, 136, 88); break; } case 12: { client.Player.Teleport(39990, 234, 111); break; } #endregion } break; } #endregion
4716112 Big-Monster 2 29710 1002 335 280