موضوعنا النهرده مميز و هوه الوحوش الكبيره كامله طبعا هتقولي اضافتهم موجوده قبل كده ايه الجديد اقولك انا الجديد في ان بي سي بيقولك انه وحش طالع و لو وقفت علي اسم وحش بالماوس تقدر تشوف بيوقع ايه
في وحشين بيطلعوا في جيلد وار كل 12 ساعه واحد بيديك كتاب يعملك واحده فل ف تشي بي اتاك مثلا
كود:
#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 = 1038;
y = 132;
x = 120;
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.Entity.X, clllient.Entity.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.Entity.SendSysMessage("LostMan W7sh al Chi[400] Low 3ez Tro7 Dos Ok!");
client10.MessageBox("LostMan W7sh al Chi[400] Low 3ez Tro7 Dos Ok?",
(p) => { p.Entity.Teleport(39981, 55, 55); }, 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 = 1038;
y = 132;
x = 120;
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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " W7sh al Jiang[Epic] low Htro7 Dos Ok!");
client10.MessageBox(name + " W7sh al Jiang[Epic] low Htro7 Dos Ok?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
// client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
// (p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
// client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
// (p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
// client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
// (p) => { p.Entity.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.Entity.X, clllient.Entity.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.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
// client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
// (p) => { p.Entity.Teleport(MapID, x, y); }, null, 20);
// }
// }
// }
// }
// }
//}
//#endregion
#endregion
#endregion