AMREL3FREIT |
2019-07-21 11:34 PM |
وحوش Big Monster + Top + Prize scripthazem
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
بسم الله الرحمان الرحيم .
السلام عليكم ورحمه الله وبركته .
اولا يارب تكونو بخير ديما .
اظن الموضوع واضح .
وحوش البيج بس المختلف ضفنلها
جيزتها ايتم تديك توب والكبس كمان
الموضوع انضاف مواخر بس اتحذف بسبب مشاكل ف منتدي .
MonsterInformation
تحت
كود PHP:
public void Drop(Game.Entity killer)
{
ضيف
كود PHP:
#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 كلاس
ضيف
كود PHP:
#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.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 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.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 + " 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.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 == 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.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 == 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.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 == 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.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 == 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.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 == 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.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
#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.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 == 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.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 == 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.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
#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.ContainsKey(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
,وضيف دول
كود PHP:
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;
المامبات .
كود PHP:
39981 39990 39989 39987 39983 39982 39994 39992 39993 39993 39991 39984 39988
دول في monsterinfos
هيجي ع القعده وتعمل كليك يمين وتختار كلمه كونصل وترميهم ف المربع ودوس انتر
كود PHP:
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
ضيف
كود PHP:
#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
وده في الايتم داتا بيز
كود PHP:
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@@500@@0@@0@@0@@0@@0@@
مش عاوز تستخدم الوحوش تقدر تضيف الايتم بس لاي حرب عندك .
تحميل شكل التوب والايتمز .
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
نشوفكم ف موضوع اخر .
نتمني يكون عجبكم الفكرة + الافاده :emoji9:
|