|
المشاركات 2,515 |
+التقييم 1.28 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 358 |
#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
#region Boss-Monster
case 4716112:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text(" Hello " + client.Entity.Name + " i am the Master of Dark Arts i can know many things players do not know i can help you to kill Monsters \n");
dialog.Text(" let me see if there is any Monster alive now \n");
if (Program.DeadMan == true && Program.DeadLady == true && Program.Shangi == true && Program.Destructive == true && Program.SwordMaster == true && Program.Vampira == true && Program.LostMan == true && Program.Legendary == true && Program.Nemesis == true && Program.SnowBa == true && Program.ThrillingSpook == true && Program.TeratoDragon == true)
dialog.Text("So Sorry no Monster Alive Right now Please Come Later");
if (Program.DeadMan == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Stones> DeadMan </tip> \n");
if (Program.DeadLady == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Stones> DeadLady </tip> \n");
if (Program.Shangi == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Stones> Shangi </tip> \n");
if (Program.Destructive == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Stones> Destructive </tip> \n");
if (Program.SwordMaster == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Stones> SwordMaster </tip> \n");
if (Program.Vampira == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Stones> Vampire </tip> \n");
if (Program.LostMan == false)
dialog.Text("<tip color=0xfff05050 desc=500k#Cps,Epic.Chi.Token,Moneybags> LostMan </tip> \n");
if (Program.Legendary == false)
dialog.Text("<tip color=0xfff05050 desc=500k#Cps,Epic.Jiang.Token,Moneybags> LegendaryWarrior </tip> \n");
if (Program.Nemesis == false)
dialog.Text("<tip color=0xfff05050 desc=100#Cps,Savagebone> Nemesis </tip> \n");
if (Program.SnowBa == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Savagebone> SnowBanshee </tip> \n");
if (Program.ThrillingSpook == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Savagebone> ThrillingSpook </tip> \n");
if (Program.TeratoDragon == false)
dialog.Text("<tip color=0xfff05050 desc=100k#Cps,Savagebone> TeratoDragon </tip> \n");
dialog.Text(" \n");
dialog.Option("Monster[Stone]", 100);
dialog.Option("Monster[Chi-Jiang]", 105);
dialog.Option("Monster[SavageBone]", 110);
// dialog.Option("What Monster is Spawned now", 120);
dialog.Option("No Thanks", 255);
dialog.Option("Side Monsters", 130);
dialog.Avatar(0);
dialog.Send();
break;
}
case 130:
{
dialog.Text("These Monsters are splitted on the cities Which one u wanna go");
dialog.Option("DesertCity VIP:6 30:35", 131);
dialog.Option("ApeCity 22 : 23", 132);
dialog.Option("Phoneix 20 : 21", 133);
break;
}
case 131:
{
client.Entity.Teleport(1000, 457, 531);
break;
}
case 132:
{
client.Entity.Teleport(1020,563,648);
break;
}
case 133:
{
client.Entity.Teleport(1011, 200, 325);
break;
}
case 120:
{
dialog.Text(" Hello " + client.Entity.Name + " you asked me is there is any spawned monster ");
if (Program.DeadMan == false)
dialog.Option("DeadMan is alive u wanna go ?", 7);
if (Program.DeadLady == false)
dialog.Option("DeadLady is alive u wanna go ?", 8);
if (Program.Shangi == false)
dialog.Option("Shangi is alive u wanna go ?", 9);
if (Program.Destructive == false)
dialog.Option("Destructive is alive u wanna go ?", 10);
if (Program.SwordMaster == false)
dialog.Option("SwordMaster is alive u wanna go ?", 11);
if (Program.Vampira == false)
dialog.Option("Vampire is alive u wanna go ?", 12);
if (Program.LostMan == false)
dialog.Option("LostMan is alive u wanna go ?", 13);
if (Program.Legendary == false)
dialog.Option("LegendaryWarrior is alive u wanna go ?", 14);
if (Program.Nemesis == false)
dialog.Option("Nemesis is alive u wanna go ?", 3);
if (Program.SnowBa == false)
dialog.Option("SnowBanshee is alive u wanna go ?", 4);
if (Program.ThrillingSpook == false)
dialog.Option("ThrillingSpook is alive u wanna go ?", 5);
if (Program.TeratoDragon == false)
dialog.Option("TeratoDragon is alive u wanna go ?", 6);
if (Program.DeadMan == true && Program.DeadLady == true && Program.Shangi == true && Program.Destructive == true && Program.SwordMaster == true && Program.Vampira == true && Program.LostMan == true && Program.Legendary == true && Program.Nemesis == true && Program.SnowBa == true && Program.ThrillingSpook == true && Program.TeratoDragon == true)
dialog.Option("Sorry no monster is Spawned now", 255);
dialog.Option("No Thanks", 255);
dialog.Avatar(0);
dialog.Send();
break;
}
case 100:
{
dialog.Text("This all Monster[Stone]");
dialog.Option("Deadman", 7);
dialog.Option("DeadLady", 8);
dialog.Option("Shanghi", 9);
dialog.Option("Destructive", 10);
dialog.Option("SwordMaster", 11);
dialog.Option("Vampire", 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", 3);
dialog.Option("SnowBanshee", 4);
dialog.Option("ThrillingSpook", 5);
dialog.Option("TeratoDragon", 6);
break;
}
#region Monster[DragonIsland]
case 3:
{
if (Program.Nemesis == false)
{
client.Entity.Teleport(39984, 132, 183);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 4:
{
if (Program.SnowBa == false)
{
client.Entity.Teleport(39984, 360, 226);
break;
}
else {
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 5:
{
if (Program.ThrillingSpook == false)
{
client.Entity.Teleport(39984, 152, 290);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 6:
{
if (Program.TeratoDragon == false)
{
client.Entity.Teleport(39984, 212, 93);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
#endregion
#region Monster[War]
case 13:
{
if (Program.LostMan == false)
{
client.Entity.Teleport(1038, 120, 132);
break;
}
else
{
dialog.Text("Sorry EL w74 Myt");
break;
}
}
case 14:
{
if (Program.Legendary == false)
{
client.Entity.Teleport(1038, 120, 132);
break;
}
else
{
dialog.Text("Sorry EL w74 Myt");
break;
}
}
#endregion
#region Monster[Stone]
case 7:
{
if (Program.DeadMan == false)
{
client.Entity.Teleport(39990, 363, 267);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 8:
{
if (Program.DeadLady == false)
{
client.Entity.Teleport(39990, 281, 337);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 9:
{
if (Program.Shangi == false)
{
client.Entity.Teleport(39990, 121, 183);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 10:
{
if (Program.Destructive == false)
{
client.Entity.Teleport(39990, 167, 266);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 11:
{
if (Program.SwordMaster == false)
{
client.Entity.Teleport(39990, 136, 88);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
case 12:
{
if (Program.Vampira == false)
{
client.Entity.Teleport(39990, 234, 111);
break;
}
else
{
dialog.Text("El w74 myt ao lsh mes tl3");
break;
}
}
#endregion
}
break;
}
#endregion
public static bool SnowBa = true;
public static bool WhiteTiger = true;
public static bool Vampira = true;
public static bool Nemesis = true;
public static bool Legendary = true;
public static bool LostMan = true;
public static bool DeadLady = true;
public static bool Shangi = true;
public static bool DeadMan = true ;
public static bool SwordMaster = true;
public static bool TeratoDragon = true;
public static bool ThrillingSpook = true;
public static bool Destructive = true;
public static bool SnowSoul = true;
#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.Entity.ConquerPoints += CPanal.bossstone;
if (killer.Owner.Team != null)
{
foreach (Client.GameState tm in killer.Owner.Team.Teammates)
{
tm.Entity.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 = (KhaledMohamed.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 = (KhaledMohamed.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 = (KhaledMohamed.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)
{
KhaledMohamed.Kernel.SendWorldMessage(new KhaledMohamed.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get " + CPanal.bossstone + " ConquerPoints And Stone ", Message.Center));
}
}
#endregion
#region Boss[War]
#region Legendarywarrior
if (Name == "Legendarywarrior")
{
killer.Owner.Entity.ConquerPoints += CPanal.bosswar;
if (killer.Owner.Team != null)
{
foreach (Client.GameState tm in killer.Owner.Team.Teammates)
{
tm.Entity.SubClasses.StudyPoints += 150;
}
}
else
killer.SubClasses.StudyPoints += 150;
for (int x = 0; x < 1; x++)
{
var infoss = Database.ConquerItemInformation.BaseInformations[729692];
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 = (KhaledMohamed.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 = (KhaledMohamed.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[723723];
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 = (KhaledMohamed.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 = 729690;
break;
case 2:
ItemID = 729690;
break;
case 3:
ItemID = 729690;
break;
case 4:
ItemID = 729690;
break;
case 5:
ItemID = 729690;
break;
case 6:
ItemID = 729690;
break;
case 7:
ItemID = 729690;
break;
case 8:
ItemID = 729690;
break;
case 9:
ItemID = 729690;
break;
case 10:
ItemID = 729690;
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)
{
KhaledMohamed.Kernel.SendWorldMessage(new KhaledMohamed.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get " + CPanal.bosswar + " ConquerPoints And [5] SvageBone And Token Epic Jiang [1 Stage] And 1.500.000.000 Money ", Message.Center));
}
}
#endregion
#region LostMan
if (Name == "LostMan")
{
killer.Owner.Entity.ConquerPoints += CPanal.bosswar;
if (killer.Owner.Team != null)
{
foreach (Client.GameState tm in killer.Owner.Team.Teammates)
{
tm.Entity.SubClasses.StudyPoints += 150;
}
}
else
killer.SubClasses.StudyPoints += 150;
for (int x = 0; x < 1; x++)
{
var infoss = Database.ConquerItemInformation.BaseInformations[729690];
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 = (KhaledMohamed.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 = (KhaledMohamed.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[723723];
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 = (KhaledMohamed.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 = 729690;
break;
case 2:
ItemID = 729690;
break;
case 3:
ItemID = 729690;
break;
case 4:
ItemID = 729690;
break;
case 5:
ItemID = 729690;
break;
case 6:
ItemID = 729690;
break;
case 7:
ItemID = 729690;
break;
case 8:
ItemID = 729690;
break;
case 9:
ItemID = 729690;
break;
case 10:
ItemID = 729690;
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)
{
KhaledMohamed.Kernel.SendWorldMessage(new KhaledMohamed.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get " + CPanal.bosswar + " ConquerPoints And [5] SvageBone And Token Epic Chi [1 Star] And 1.500.000.000 Money ", Message.Center));
}
}
#endregion
#endregion
#region Boss[DragonIsland]
if (Name == "SnowBanshee" || Name == "ThrillingSpook" || Name == "NemesisTyrant" || Name == "TeratoDragon")
{
killer.Owner.Entity.ConquerPoints += CPanal.bossisland;
if (killer.Owner.Team != null)
{
foreach (Client.GameState tm in killer.Owner.Team.Teammates)
{
tm.Entity.SubClasses.StudyPoints += 150;
}
}
else
killer.SubClasses.StudyPoints += 150;
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 = (KhaledMohamed.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)
{
KhaledMohamed.Kernel.SendWorldMessage(new KhaledMohamed.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get " + CPanal.bossisland + " ConquerPoints And SvageBone ", Message.Center));
}
}
#endregion
#endregion
#region Go To Map [Jiang]
case 729692:
{
client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack);
client.Entity.Teleport(11810, 50, 54);
// client.Inventory.Add(729690, 0,1);
break;
}
#endregion
#region Go To Map [Chi]
case 729690:
{
client.Inventory.Remove(item, Game.Enums.ItemUse.RemoveFromStack);
client.Entity.Teleport(8570, 50, 54);
break;
}
#endregion
#region Chi Npc
case 4444:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.ChiPowers.Count == 0)
{
dialog.Text("Sorry But You Don't Have chi Yet.");
dialog.Option("I'll think about it!", 255);
dialog.Send();
return;
}
dialog.Text("Hello I'M Mr.online Chi Seller.");
for (int i = 0; i < client.ChiPowers.Count; i++)
{
var stage = client.ChiPowers[i];
dialog.Option(((Game.Enums.ChiPowerType)(i + 1)).ToString(), (byte)(i + 1));
}
dialog.Option("I'll think about it!", 255);
dialog.Send();
break;
}
default:
{
int mStage = npcRequest.OptionID;
if (mStage >= 1 && mStage <= 4)
{
client.Entity.SelectedStage = mStage;
dialog.Text("You Choose " + ((Game.Enums.ChiPowerType)mStage).ToString() + " stage. please select Attribute you want to change ");
for (int i = 0; i < 4; i++)
{
dialog.Option("Attribute [" + (byte)(i + 1) + "]", (byte)(i + 1 + 4));
}
dialog.Option("Back", 0);
dialog.Option("I'll think about it!", 255);
dialog.Send();
break;
}
else if (mStage >= 4 && mStage <= 8)
{
client.Entity.SelectedAttribute = mStage - 4;
var mychiattribute = new List<Enums.ChiAttribute>();
var powers = client.ChiPowers[(int)client.Entity.SelectedStage - 1];
for (int i = 0; i < powers.Attributes.Length; i++)
{
var Attribute = powers.Attributes[i];
mychiattribute.Add(Attribute.Type);
}
dialog.Text("You Choose Attribute [" + client.Entity.SelectedAttribute + "] please select AttributeType you want to change ");
for (int i = 0; i < (int)Enums.ChiAttribute.MagicDamageDecrease; i++)
{
var type = ((Enums.ChiAttribute)(i + 1));
if (!mychiattribute.Contains(type))
dialog.Option(type.ToString(), (byte)(((i + 1) * 10)));
}
dialog.Option("Back", (byte)client.Entity.SelectedStage);
dialog.Option("I'll think about it!", 255);
dialog.Send();
break;
}
else
{
/* if (client.Entity.ConquerPoints <= 1)
{
dialog.Text("Sorry But You Don't Have 1 cps ");
dialog.Option("I'll think about it!", 255);
dialog.Send();
return;
}*/
var typex = mStage / 10;
var Mode = client.Entity.SelectedStage;
var pos = client.Entity.SelectedAttribute - 1;
var powers = client.ChiPowers[Mode - 1];
var attributes = powers.Attributes;
foreach (var attr in attributes)
{
if (attr == null) continue;
if (attr.Type == (Enums.ChiAttribute)typex)
{
client.MessageBox("Sorry you can't muliplay stats", null, null);
return;
}
}
attributes[pos].Type = (Enums.ChiAttribute)typex;
attributes[pos].Value = (ushort)Game.Enums.ChiMaxValues(attributes[pos].Type);
powers.CalculatePoints();
Database.ChiTable.Sort((Enums.ChiPowerType)Mode);
powers.Power = (Enums.ChiPowerType)Mode;
// client.Entity.ConquerPoints -= 1;
client.Entity.Teleport(1002, 300, 278);
client.Send(new ChiPowers(true).Query(client));
#region update ranking
Database.ChiTable.ChiData[] array = null;
switch ((Enums.ChiPowerType)Mode)
{
case Game.Enums.ChiPowerType.Dragon:
array = Database.ChiTable.Dragon;
break;
case Game.Enums.ChiPowerType.Phoenix:
array = Database.ChiTable.Phoenix;
break;
case Game.Enums.ChiPowerType.Tiger:
array = Database.ChiTable.Tiger;
break;
case Game.Enums.ChiPowerType.Turtle:
array = Database.ChiTable.Turtle;
break;
}
foreach (var chiData in array)
{
if (Kernel.GamePool.ContainsKey(chiData.UID))
{
var pClient = Kernel.GamePool[chiData.UID];
if (pClient == null) continue;
if (pClient.ChiData == null) continue;
// make it public instead of private
PacketHandler.SendRankingQuery(new GenericRanking(true) { Mode = GenericRanking.QueryCount }, pClient, GenericRanking.Chi + (uint)Mode, pClient.ChiData.SelectRank((Enums.ChiPowerType)Mode), pClient.ChiData.SelectPoints((Enums.ChiPowerType)Mode));
if (pClient.Entity.UID == client.Entity.UID || pClient.ChiData.SelectRank((Enums.ChiPowerType)Mode) < 50)
pClient.LoadItemStats();
}
}
#endregion
Database.ChiTable.Save(client);
}
break;
}
}
break;
}
#endregion
#region Jiang Npc
case 88855:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Entity.MyJiang == null)
{
dialog.Text("Sorry But You Don't Have Jiang Yet.");
dialog.Option("I'll think about it!", 255);
dialog.Send();
return;
}
dialog.Text("Hello Messi Jiang Seller.");
for (int i = 0; i < client.Entity.MyJiang.Stagers.Length; i++)
{
var stage = client.Entity.MyJiang.Stagers[i];
if (stage.Activate)
dialog.Option("Stage [" + (byte)(i + 1) + "]", (byte)(i + 1));
}
dialog.Option("I'll think about it!", 255);
dialog.Send();
break;
}
default:
{
int mStage = npcRequest.OptionID;
if (mStage >= 1 && mStage <= 9)
{
foreach (var item in Database.JiangHu.CultivateStatus[(byte)mStage])
{
dialog.Option(((Game.JiangHu.JiangStages.AtributesType)item).ToString(), (byte)((item * 10) + mStage));
}
}
else
{
client.Entity.Teleport(1002, 300, 278);
var typex = mStage / 10;
mStage = mStage % 10;
byte stageno = (byte)Math.Min(9, mStage);
byte level = 6;
var type = (Game.JiangHu.JiangStages.AtributesType)Math.Min(15, typex);
if (client.Entity.MyJiang.Stagers.Length >= stageno)
{
var stage = client.Entity.MyJiang.Stagers[(stageno - 1)];
for (byte i = 1; i < stage.Stars.Length + 1; i++)
{
client.Entity.MyJiang.MyNewStart = new Game.JiangHu.GetNewStar();
client.Entity.MyJiang.MyNewStart.PositionStar = i;
client.Entity.MyJiang.MyNewStart.Stage = stageno;
client.Entity.MyJiang.MyNewStart.Star = new Game.JiangHu.JiangStages.Star();
client.Entity.MyJiang.MyNewStart.Star.Activate = true;
client.Entity.MyJiang.MyNewStart.Star.Level = level;
client.Entity.MyJiang.MyNewStart.Star.Typ = type;
client.Entity.MyJiang.MyNewStart.Star.UID = client.Entity.MyJiang.ValueToRoll(client.Entity.MyJiang.MyNewStart.Star.Typ, client.Entity.MyJiang.MyNewStart.Star.Level);
Network.GamePackets.JiangHuUpdate upd = new Network.GamePackets.JiangHuUpdate();
upd.Atribute = client.Entity.MyJiang.MyNewStart.Star.UID;
upd.FreeCourse = client.Entity.MyJiang.FreeCourse;
upd.Stage = stageno;
upd.Star = i;
upd.FreeTimeTodeyUsed = (byte)client.Entity.MyJiang.FreeTimeTodeyUsed;
upd.RoundBuyPoints = client.Entity.MyJiang.RoundBuyPoints;
client.Send(upd.ToArray());
client.Entity.MyJiang.ApplayNewStar(client);
}
if (client.Entity.MyJiang != null)
client.Entity.MyJiang.SendStatus(client, client);
}
}
break;
}
}
break;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
WarDrobe System | محمد ياسر | تطوير سيرفرات كونكر | 15 | 2024-10-06 11:14 PM |
سيستم Epic Quests Full Like TQ | khaledxodia | تطوير سيرفرات كونكر | 17 | 2024-07-03 01:32 AM |
npc open to full TitleStorage | ElSaher | تطوير سيرفرات كونكر | 3 | 2020-04-02 06:50 PM |
NPC Full Onlen point | Users | تطوير سيرفرات كونكر | 7 | 2019-07-04 10:10 PM |
Demon Box Full Add | Mero | تطوير سيرفرات كونكر | 0 | 2019-04-28 02:33 PM |