المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : وحوش Big Monster + Top + Prize scripthazem


AMREL3FREIT
2019-07-21, 11:34 PM
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
بسم الله الرحمان الرحيم .
السلام عليكم ورحمه الله وبركته .

اولا يارب تكونو بخير ديما .

اظن الموضوع واضح .
وحوش البيج بس المختلف ضفنلها
جيزتها ايتم تديك توب والكبس كمان
الموضوع انضاف مواخر بس اتحذف بسبب مشاكل ف منتدي .

MonsterInformation
تحت
public void Drop(Game.Entity killer)
{
ضيف
#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 == "Vampire" || Name == "SnowBanshee" || Name == "NemesisTyrant" || Name == "Legendarywarrior" || Name == "LostMan" || Name == "LostMan" || Name == "DeadLady" || Name == "Shanghi" || Name == "DeadMan" || Name == "SwordMaster" || Name == "TeratoDragon" || Name == "destructive" || Name == "SnowBansheeSoul")
{
uint Uid = 0;
byte type = 4;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 1);
switch (type)
{
case 1:
Uid = 720667;
break;

// case 2:
// Uid = 200022;
// break;



}

if (Uid != 0)
{
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
// Kernel.Spawn3 = false;
killer.Owner.Inventory.Add(Uid, 0, 1);
SomailProject.Kernel.SendWorldMessage(new SomailProject.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get FantasyCPPack 1000000000 CPS + TOP + 50 OnlinePoints #41#41#41", Message.Center));
// Message message = null;
// message = new Message("Congratulations, " + Name + " Succesfully 50 Point!", System.Drawing.Color.White, Message.World);
// killer.ConquerPoints += 1000000000;
//client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , 2, DateTime.Now.AddMinutes(59));
Network.GamePackets._String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cortege");
killer.Owner.SendScreen(str, true);
// return;
}
}
}
}
#endregion

World.cs كلاس
ضيف
#region Monster
#region LostMan
if ((DateTime.Now.Minute == 22 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39981;
y = 55;
x = 55;
if (Database.DMaps.LoadMap(MapID))
{
if (Program.LostMan)
{
if (Kernel.Maps.ContainsKey(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.C ontainsKey(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 has appeared. Hurry and go defeat the beast!");
client10.MessageBox("LostMan has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.Teleport(39981, 55, 55); }, null, 20);
}
}
}
}
}
}
#endregion
#region Legendarywarrior
if ((DateTime.Now.Minute == 02 && DateTime.Now.Second == 30))
{
ushort x = 0, y = 0;
ushort MapID = 39990;
y = 55;
x = 55;
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.C ontainsKey(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 + " 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 Shanghi
if ((DateTime.Now.Minute == 07 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39989;
y = 55;
x = 55;
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.C ontainsKey(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 == 17 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39987;
y = 55;
x = 55;
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.C ontainsKey(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 == 32 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39983;
y = 55;
x = 55;
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.C ontainsKey(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 == 37 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39982;
y = 55;
x = 55;
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.C ontainsKey(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 == 42 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39994;
y = 55;
x = 55;
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.C ontainsKey(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 == 57 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39992;
y = 55;
x = 55;
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.C ontainsKey(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
#region SnowBanshee
if ((DateTime.Now.Minute == 47 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39993;
y = 55;
x = 55;
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.C ontainsKey(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 == 52 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39991;
y = 55;
x = 55;
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.C ontainsKey(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 == 27 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39984;
y = 55;
x = 55;
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.C ontainsKey(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
#region SnowBansheeSoul
if ((DateTime.Now.Minute == 12 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39988;
y = 55;
x = 55;
uint id = 417108;
string name = "SnowBansheeSoul";
if (Database.DMaps.LoadMap(MapID))
{
if (Program.SnowSoul)
{
if (Kernel.Maps.ContainsKey(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.C ontainsKey(id))
{
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
mt.BoundX = x;
Program.SnowSoul = 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
روح ل Program.cs
,وضيف دول
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;
المامبات .
39981 39990 39989 39987 39983 39982 39994 39992 39993 39993 39991 39984 39988
دول في monsterinfos
هيجي ع القعده وتعمل كليك يمين وتختار كلمه كونصل وترميهم ف المربع ودوس انتر
INSERT INTO `monsterinfos` VALUES ('417101', 'LostMan', '0001', '0523', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417102', 'DeadMan', '0001', '0522', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417103', 'DeadLady', '0001', '0518', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417107', 'destructive', '0001', '0315', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('4171', 'SnowBanshee', '0001', '0951', '60000000', '00', '10000', '10000', '40000', '0014', '0015', '0800', '0500', '0138', '3', '0500', '0', '30000', '0', '0', '0');
INSERT INTO `monsterinfos` VALUES ('417109', 'Shanghi', '0001', '0903', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417110', 'Legendarywarrior', '0001', '0904', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417114', 'Vampire', '0001', '0919', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417108', 'SnowBansheeSoul', '0001', '0951', '60000000', '00', '10000', '10000', '40000', '0014', '0015', '0800', '0500', '0138', '3', '0500', '0', '30000', '0', '0', '0');
INSERT INTO `monsterinfos` VALUES ('417116', 'IronTiger', '0001', '0904', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417117', 'BlackTurtle', '0001', '0522', '60000000', '00', '20000', '20000', '0100', '0001', '0008', '1000', '0500', '0140', '3', '0500', '0', '0', '0', '0', '1');

هنضيف المامبات بلشكل الي في الصورة دي
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
شكل للتوب
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نيجي للايتم الي هيقع م الوحش .
ف
PacketHandler.cs
تحت
#region RiverWater
ضيف
#region prize
case 720667: // 13800 cps
{
client.Entity.ConquerPoints += 1000000000;
client.Entity.TreasuerPoints += 50;

client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , 2, DateTime.Now.AddDays(1));
client.Inventory.Remove(item, Enums.ItemUse.RemoveFromStack);
break;
}


#endregion
وده في الايتم داتا بيز
720667@@FantasyCPPack@@0@@0@@0@@0@@0@@0@@0@@0@@9@@ 0@@0@@5201240@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@ @0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[Item]@@Right~click~to~get~13800~CPs.@@5@@0@@0@@0@@0@@50 0@@0@@0@@0@@0@@0@@
مش عاوز تستخدم الوحوش تقدر تضيف الايتم بس لاي حرب عندك .

تحميل شكل التوب والايتمز .
scripthazem (عفواً لايمكن عرض الروابط في الإرشيف)
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نشوفكم ف موضوع اخر .
نتمني يكون عجبكم الفكرة + الافاده :emoji9:

محمد ياسر
2019-07-21, 11:42 PM
تسلم علي الموضوع الجميل

AMREL3FREIT
2019-07-22, 12:05 AM
تسلم علي الموضوع الجميل

حبيبي :emoji21:

MohamedModyAdel
2019-07-22, 12:47 AM
عاش

MohamedModyAdel
2019-07-22, 12:49 AM
يحب نت نسيت اضافه
في monsterinfos و كدا وحوش مش هيطلعه monsterspawns

AMREL3FREIT
2019-07-22, 01:39 AM
يحب نت نسيت اضافه
في monsterinfos و كدا وحوش مش هيطلعه monsterspawns

برافو تم بعملهم حاالا
نورت التوبيك :emoji9:

yuuki2015
2019-07-22, 08:29 AM
Thank you for your wonderful work.

AMREL3FREIT
2019-07-22, 04:52 PM
Thank you for your wonderful work.

Thank :emoji21:

ابو حمزه9
2019-07-22, 06:16 PM
عاش ياعمر باشا :o

ElSaher
2019-07-22, 06:39 PM
عاش يا حوب

Matrix
2019-07-22, 06:43 PM
عاااااش

AMREL3FREIT
2019-07-22, 10:30 PM
عاش ياعمر باشا :o


نورت التوبيك ي غالي :emoji9:

عاش يا حوب

نورت ي برو

Mahmoud
2019-07-28, 08:37 PM
شكرا

AMREL3FREIT
2019-07-29, 04:28 AM
منورين

ALz3em
2019-08-08, 04:45 PM
عاش

Users
2019-08-08, 04:54 PM
عاااش يا معلم

faresali2
2019-08-08, 06:26 PM
شكرا لك على مجهودك

TomasPezzi
2019-08-09, 05:30 AM
nice job.

مصطفي عدلي
2019-08-09, 05:51 AM
حبيبي

saeed
2019-08-09, 04:46 PM
عاش

Circle
2019-08-20, 09:46 PM
عأأأأش

MrCroSon
2019-08-21, 06:17 AM
جميل جدا

3abqrino
2019-08-22, 10:50 AM
عاااااااش

Avengers-Co
2019-08-31, 08:10 PM
تسلم ياريس

loveosama
2019-09-03, 12:07 AM
شكراا

ViORX
2019-09-19, 02:25 AM
جامد تسلم ايدك

amosha
2019-09-21, 06:47 PM
عاااااااااااااااااااشششششش

zorom
2019-09-25, 09:27 AM
مودييييييييي

bisho2009
2019-09-26, 10:44 AM
شكرا

اسلام
2019-09-26, 11:24 AM
عاش

انت عمري
2019-10-01, 10:41 PM
ممكن نفس الكلام دة بس لسورس اليكس msg ؟

ahmedfathy
2019-11-30, 04:40 PM
الله ينور عليك يا عمرو موضوع مميز احسنت

midoazoz
2019-11-30, 05:23 PM
تسلم

01128791902
2019-12-08, 02:12 AM
شكرا جدا

محمد رجب (سداح)
2019-12-09, 08:32 PM
شكرا

مصطفي رمضنا
2020-02-12, 08:59 AM
عاش

TiTo1
2020-02-13, 09:43 PM
عاش

مصطفي رمضانى
2020-02-15, 03:20 PM
عاش

Mawdo3jded
2020-02-23, 09:01 AM
استغفر الله

uncelsam
2020-02-25, 11:29 PM
الله ينور

Amr Khalid
2020-03-30, 01:27 PM
عااااااش

mina
2020-03-31, 09:11 PM
تسلم

fariswaleed
2020-04-05, 06:38 PM
استمر

abdocoder
2020-04-06, 11:55 PM
شكرا

AhmedGadd
2020-04-07, 02:05 PM
المامبات ... مش فاهم اضيفها فين و ازاي ؟

Dark Online
2020-05-05, 08:43 PM
تسلم ايدك

احمد التركي
2020-05-06, 07:28 AM
شكرا يا عمرو يا كشري

karem010
2020-05-07, 02:46 PM
تسلم

MohamedStar2020
2020-05-07, 08:44 PM
الله ينور

ziadto14
2021-07-20, 09:16 PM
tyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

AtefGhazaly
2021-07-22, 10:39 AM
تسلم ياطيب

mohamed2010
2021-07-26, 08:54 AM
sadas

mohammedshafik
2021-07-28, 11:13 AM
thanks

خالد عماد كامل
2021-09-11, 08:41 PM
جاري التجربة

kobra
2021-09-14, 04:52 AM
تسلم ايدك

الفارس نور
2021-09-15, 09:07 PM
thanks

subhi kalaji
2021-09-18, 01:48 AM
عااااااااااش

eyad
2021-11-25, 02:02 AM
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
بسم الله الرحمان الرحيم .
السلام عليكم ورحمه الله وبركته .

اولا يارب تكونو بخير ديما .

اظن الموضوع واضح .
وحوش البيج بس المختلف ضفنلها
جيزتها ايتم تديك توب والكبس كمان
الموضوع انضاف مواخر بس اتحذف بسبب مشاكل ف منتدي .

MonsterInformation
تحت
public void Drop(Game.Entity killer)
{
ضيف
#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 == "Vampire" || Name == "SnowBanshee" || Name == "NemesisTyrant" || Name == "Legendarywarrior" || Name == "LostMan" || Name == "LostMan" || Name == "DeadLady" || Name == "Shanghi" || Name == "DeadMan" || Name == "SwordMaster" || Name == "TeratoDragon" || Name == "destructive" || Name == "SnowBansheeSoul")
{
uint Uid = 0;
byte type = 4;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 1);
switch (type)
{
case 1:
Uid = 720667;
break;

// case 2:
// Uid = 200022;
// break;



}

if (Uid != 0)
{
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
// Kernel.Spawn3 = false;
killer.Owner.Inventory.Add(Uid, 0, 1);
SomailProject.Kernel.SendWorldMessage(new SomailProject.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get FantasyCPPack 1000000000 CPS + TOP + 50 OnlinePoints #41#41#41", Message.Center));
// Message message = null;
// message = new Message("Congratulations, " + Name + " Succesfully 50 Point!", System.Drawing.Color.White, Message.World);
// killer.ConquerPoints += 1000000000;
//client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , 2, DateTime.Now.AddMinutes(59));
Network.GamePackets._String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cortege");
killer.Owner.SendScreen(str, true);
// return;
}
}
}
}
#endregion

World.cs كلاس
ضيف
#region Monster
#region LostMan
if ((DateTime.Now.Minute == 22 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39981;
y = 55;
x = 55;
if (Database.DMaps.LoadMap(MapID))
{
if (Program.LostMan)
{
if (Kernel.Maps.ContainsKey(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.C ontainsKey(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 has appeared. Hurry and go defeat the beast!");
client10.MessageBox("LostMan has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.Teleport(39981, 55, 55); }, null, 20);
}
}
}
}
}
}
#endregion
#region Legendarywarrior
if ((DateTime.Now.Minute == 02 && DateTime.Now.Second == 30))
{
ushort x = 0, y = 0;
ushort MapID = 39990;
y = 55;
x = 55;
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.C ontainsKey(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 + " 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 Shanghi
if ((DateTime.Now.Minute == 07 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39989;
y = 55;
x = 55;
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.C ontainsKey(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 == 17 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39987;
y = 55;
x = 55;
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.C ontainsKey(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 == 32 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39983;
y = 55;
x = 55;
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.C ontainsKey(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 == 37 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39982;
y = 55;
x = 55;
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.C ontainsKey(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 == 42 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39994;
y = 55;
x = 55;
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.C ontainsKey(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 == 57 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39992;
y = 55;
x = 55;
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.C ontainsKey(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
#region SnowBanshee
if ((DateTime.Now.Minute == 47 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39993;
y = 55;
x = 55;
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.C ontainsKey(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 == 52 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39991;
y = 55;
x = 55;
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.C ontainsKey(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 == 27 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39984;
y = 55;
x = 55;
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.C ontainsKey(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
#region SnowBansheeSoul
if ((DateTime.Now.Minute == 12 && DateTime.Now.Second == 00))
{
ushort x = 0, y = 0;
ushort MapID = 39988;
y = 55;
x = 55;
uint id = 417108;
string name = "SnowBansheeSoul";
if (Database.DMaps.LoadMap(MapID))
{
if (Program.SnowSoul)
{
if (Kernel.Maps.ContainsKey(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.C ontainsKey(id))
{
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
mt.BoundX = x;
Program.SnowSoul = 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
روح ل Program.cs
,وضيف دول
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;
المامبات .
39981 39990 39989 39987 39983 39982 39994 39992 39993 39993 39991 39984 39988
دول في monsterinfos
هيجي ع القعده وتعمل كليك يمين وتختار كلمه كونصل وترميهم ف المربع ودوس انتر
INSERT INTO `monsterinfos` VALUES ('417101', 'LostMan', '0001', '0523', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417102', 'DeadMan', '0001', '0522', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417103', 'DeadLady', '0001', '0518', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417107', 'destructive', '0001', '0315', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('4171', 'SnowBanshee', '0001', '0951', '60000000', '00', '10000', '10000', '40000', '0014', '0015', '0800', '0500', '0138', '3', '0500', '0', '30000', '0', '0', '0');
INSERT INTO `monsterinfos` VALUES ('417109', 'Shanghi', '0001', '0903', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417110', 'Legendarywarrior', '0001', '0904', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417114', 'Vampire', '0001', '0919', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417108', 'SnowBansheeSoul', '0001', '0951', '60000000', '00', '10000', '10000', '40000', '0014', '0015', '0800', '0500', '0138', '3', '0500', '0', '30000', '0', '0', '0');
INSERT INTO `monsterinfos` VALUES ('417116', 'IronTiger', '0001', '0904', '60000000', '00', '5000', '1000', '0200', '0007', '0008', '0200', '0200', '0140', '3', '0000', '0', '0', '0', '0', '1');
INSERT INTO `monsterinfos` VALUES ('417117', 'BlackTurtle', '0001', '0522', '60000000', '00', '20000', '20000', '0100', '0001', '0008', '1000', '0500', '0140', '3', '0500', '0', '0', '0', '0', '1');

هنضيف المامبات بلشكل الي في الصورة دي
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
شكل للتوب
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نيجي للايتم الي هيقع م الوحش .
ف
PacketHandler.cs
تحت
#region RiverWater
ضيف
#region prize
case 720667: // 13800 cps
{
client.Entity.ConquerPoints += 1000000000;
client.Entity.TreasuerPoints += 50;

client.Entity.AddTopStatus(Update.Flags2.Top2Ninja , 2, DateTime.Now.AddDays(1));
client.Inventory.Remove(item, Enums.ItemUse.RemoveFromStack);
break;
}


#endregion
وده في الايتم داتا بيز
720667@@FantasyCPPack@@0@@0@@0@@0@@0@@0@@0@@0@@9@@ 0@@0@@5201240@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@ @0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[Item]@@Right~click~to~get~13800~CPs.@@5@@0@@0@@0@@0@@50 0@@0@@0@@0@@0@@0@@
مش عاوز تستخدم الوحوش تقدر تضيف الايتم بس لاي حرب عندك .

تحميل شكل التوب والايتمز .
scripthazem (عفواً لايمكن عرض الروابط في الإرشيف)
عفواً لايمكن عرض الروابط في الإرشيف (عفواً لايمكن عرض الروابط في الإرشيف)
نشوفكم ف موضوع اخر .
نتمني يكون عجبكم الفكرة + الافاده :emoji9:
استمر

Moustafa1
2021-12-01, 09:03 AM
نجرب

Serag Dash
2022-02-20, 06:21 AM
عاش

ismailgoda1
2022-03-05, 12:18 PM
ty

MahmoudElsndbad
2022-03-25, 04:00 PM
عاش

bedo3eto
2022-04-08, 03:31 AM
تتتتتتتتتتتتتتتتتتتت

elkholasa
2023-04-06, 03:58 AM
مشكور

alpernsali1
2023-04-18, 11:12 PM
thx

ahmedfarouk
2023-07-22, 01:31 AM
تسلم

eslaam
2023-07-29, 07:44 PM
عاش

مينا
2023-07-29, 09:29 PM
عاش

NecroDancer
2023-08-14, 01:33 AM
عاش

medohalawa
2023-09-26, 02:12 PM
عااااش

ahmedhassan
2023-09-27, 10:52 AM
عاش

ZetronixCo
2023-10-08, 12:00 AM
:)

ellol1997
2023-10-13, 01:30 AM
عااش

ahmed5000
2023-12-25, 06:34 AM
شكرا

ahmedmatrix12
2023-12-28, 07:14 PM
تسلم علي الموضوع الجميل

xblack99
2024-02-10, 08:03 PM
قفاثقاف

aboessa
2024-02-19, 02:11 AM
شكراً

pirates
2024-02-25, 10:05 PM
thank you

yousef here
2024-03-18, 01:50 PM
عاش

alradad
2024-05-06, 11:07 AM
عاش

kemo1599
2024-05-07, 05:09 PM
لالالالا

مؤمن
2024-11-14, 05:16 AM
gdfg