احصائياتى

الردود
7

المشاهدات
601
 
Abod ayman
.:: عضو نشيط ::.

    غير متواجد

المشاركات
106

+التقييم
0.04

تاريخ التسجيل
Mar 2020

الاقامة

نظام التشغيل

رقم العضوية
3603
2020-04-03, 07:21 AM
المشاركة 1
2020-04-03, 07:21 AM
المشاركة 1
افتراضي تمت الإجابة مشكلة في توقيت الوحوش الكبيرة
ازاي اخلي الوحوش بتطلع في وقت معين انا عايزه لانها بتظهر كل 3600 ثانية (ساعة) ومش لاقي طريقة اظبط بيها وقت الوحوش يعني مثلا اخليها بتطلع في الدقيقة 30 مثلا او 15
دورت وتعبت من التدوير والله ومش لاقي فايدة خالص ارجو الحل


أفضل جواب - كتبه Rider
هتعمل حقن للملفات Dll ده لو لودر معكش الاوبن سورس انما لو معاك الاوبن سورس هتعكل لود لل Dll في ريفيرونس
قديم 2020-04-03, 09:00 AM
المشاركة 2
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
وضح الكود الي عندك

قديم 2020-04-03, 09:24 AM
المشاركة 3
Abod ayman
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
معلش بس وضحلي اكتر ... اي كود بالظبط ؟
وشكرا على مجهودك مقدما 💙

قديم 2020-04-03, 01:08 PM
المشاركة 4
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
بتعدل علي وقت الوحوش في Wrold يا حوب

قديم 2020-04-03, 04:01 PM
المشاركة 5
Abod ayman
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
بتعدل علي وقت الوحوش في wrold يا حوب
مش بلاقي توقيت الوحوش لا .. في حاجة تانية سورس مستر زيزو

قديم 2020-04-03, 04:01 PM
المشاركة 6
Abod ayman
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
هوا سورس مستر زيزو و 2d

قديم 2020-04-03, 05:09 PM
المشاركة 7
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
يا حوب خود الوحوش اهي كاملة علشان مش يجيلك مشاكل

امسح الاضاقت الي عندك وضيف دول

اول حاجا كلاس MonsterTable.cs

هتضيف فيه
دول


كود:

            
#region Big-Monsters
            
if (Name == "Vampire")
                
Program.Vampira = true;
            if (
Name == "SnowBanshee")
                
Program.SnowBa = true;
            if (
Name == "NemesisTyrant")
                
Program.Nemesis = true;
            if (
Name == "Legendarywarrior")
                
Program.Legendary = true;
            if (
Name == "LostMan")
                
Program.LostMan = true;
            if (
Name == "DeadLady")
                
Program.DeadLady = true;
            if (
Name == "DeadMan")
                
Program.DeadMan = true;
            if (
Name == "Shanghi")
                
Program.Shangi = true;
            if (
Name == "SwordMaster")
                
Program.SwordMaster = true;
            if (
Name == "TeratoDragon")
                
Program.TeratoDragon = true;
            if (
Name == "destructive")
                
Program.Destructive = true;
            if (
Name == "SnowBansheeSoul")
                
Program.SnowSoul = true;
            if (
Name == "ThrillingSpook")
                
Program.ThrillingSpook = true;
    
#endregion 
دول 

#region TheBigMonster
#region Boss[Stone-Perf]
if (Name == "Vampire" || Name == "destructive" || Name == "SwordMaster")
{
killer.Owner.Player.ConquerPoints += 15000000;
killer.Owner.Player.OnlinePoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = Database.ConquerItemInformation.BaseInformations[3004181];
ushort XX = Owner.X, YY = Owner.Y;
Game.Map MMap = Kernel.Maps[Owner.MapID];
if (MMap.SelectCoordonates(ref XX, ref YY))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (Mr_Panda.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = infoss.ID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infoss.Durability;
floorItem.Item.Durability = infoss.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = infoss.ID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = XX;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infoss.StackSize;
floorItem.Y = YY;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.Owner = killer.Owner;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (MMap.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
MMap.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
foreach (var client in Kernel.GamePool.Values)
{
Mr_Panda.Kernel.SendWorldMessage(new Mr_Panda.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get [15.000.000] ConquerPoints.The And Online Points 200 ", Message.Center));
}
}
#endregion
#region Boss[Stone]
if (Name == "DeadLady" || Name == "Shanghi" || Name == "DeadMan" || Name == "SnowBansheeSoul")
{
killer.Owner.Player.ConquerPoints += 15000000;
killer.Owner.Player.OnlinePoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = Database.ConquerItemInformation.BaseInformations[3004181];
ushort XX = Owner.X, YY = Owner.Y;
Game.Map MMap = Kernel.Maps[Owner.MapID];
if (MMap.SelectCoordonates(ref XX, ref YY))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (Mr_Panda.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = infoss.ID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infoss.Durability;
floorItem.Item.Durability = infoss.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = infoss.ID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = XX;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infoss.StackSize;
floorItem.Y = YY;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.Owner = killer.Owner;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (MMap.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
MMap.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
foreach (var client in Kernel.GamePool.Values)
{
Mr_Panda.Kernel.SendWorldMessage(new Mr_Panda.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get [15.000.000] ConquerPoints .The And Online Points 200 ", Message.Center));
}
}
#endregion
#region Boss[War]
#region Legendarywarrior
if (Name == "Legendarywarrior" || Name == "LostMan" )
{
killer.Owner.Player.ConquerPoints += 15000000;
killer.Owner.Player.OnlinePoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = Database.ConquerItemInformation.BaseInformations[3004181];
ushort XX = Owner.X, YY = Owner.Y;
Game.Map MMap = Kernel.Maps[Owner.MapID];
if (MMap.SelectCoordonates(ref XX, ref YY))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (Mr_Panda.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = infoss.ID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infoss.Durability;
floorItem.Item.Durability = infoss.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = infoss.ID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = XX;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infoss.StackSize;
floorItem.Y = YY;
floorItem.OwnerUID = killer.UID;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.Owner = killer.Owner;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (MMap.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
MMap.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
foreach (var client in Kernel.GamePool.Values)
{
Mr_Panda.Kernel.SendWorldMessage(new Mr_Panda.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get [15.000.000] ConquerPoints .The And Online Points 200 ", Message.Center));
}
}
#endregion
#endregion
#region Boss[DragonIsland]
if (Name == "SnowBanshee" || Name == "ThrillingSpook" || Name == "NemesisTyrant" || Name == "TeratoDragon")
{
killer.Owner.Player.ConquerPoints += 15000000;
killer.Owner.Player.OnlinePoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = Database.ConquerItemInformation.BaseInformations[3004181];
ushort XX = Owner.X, YY = Owner.Y;
Game.Map MMap = Kernel.Maps[Owner.MapID];
if (MMap.SelectCoordonates(ref XX, ref YY))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (Mr_Panda.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = infoss.ID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infoss.Durability;
floorItem.Item.Durability = infoss.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = infoss.ID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = XX;
floorItem.Item.StackSize = 1;
floorItem.Item.MaxStackSize = infoss.StackSize;
floorItem.Y = YY;
floorItem.OwnerUID = killer.UID;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.Owner = killer.Owner;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (MMap.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
MMap.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
//killer.Owner.Player.ConquerPoints += 50000;
}
}
foreach (var client in Kernel.GamePool.Values)
{
Mr_Panda.Kernel.SendWorldMessage(new Mr_Panda.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get [15.000.000] ConquerPoints .The And Online Points 200", Message.Center));
}
}
#endregion
#endregion
[/PHP]


تاني حاجا كلاس npc.cs
ضيف دول


كود:

                    
#region Boss-Monster
                    
case 4716112:
                        {
                            switch (
npcRequest.OptionID)
                            {

                                case 
0:
                                    {
                                        
dialog.Text(" Hello " + client.Player.Name + " Do You Want Kill Dangerous Monsters ");
                                        
dialog.Option("Deadman[xx:00]", 7);
                                        
dialog.Option("DeadLady[xx:05]", 8);
                                        
dialog.Option("Shanghi[xx:10]", 9);
                                        
dialog.Option("Destructive[xx:15]", 10);
                                        
dialog.Option("SwordMaster[xx:20]", 11);
                                        
dialog.Option("Vampire[xx:25]", 12);
                                        
dialog.Option("LostMan[xx:30]", 13);
                                        
dialog.Option("Legendarywarrior[xx:35]", 14);
                                        
dialog.Option("NemesisTyrant[xx:40]", 3);
                                        
dialog.Option("SnowBanshee[xx:45]", 4);
                                        
dialog.Option("ThrillingSpook[xx:50]", 5);
                                        
dialog.Option("TeratoDragon[xx:55]", 6);                           
                                        
dialog.Option("No Thanks", 255);
                                        
dialog.Avatar(0);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
100:
                                    {
                                        
dialog.Text("This all Monster[Stone]");
                                        
dialog.Option("Deadman", 7);
                                        
dialog.Option("DeadLady", 8);
                                        
dialog.Option("Shanghi", 9);
                                        break;
                                    }
                                case 
102:
                                    {
                                        
dialog.Text("This all Monster[Stone-Perf]");
                                        
dialog.Option("Destructive", 10);
                                        
dialog.Option("SwordMaster", 11);
                                        
dialog.Option("Vampire", 12);
                                        break;
                                    }
                                case 
105:
                                    {
                                        
dialog.Text("This all Monster[Chi-Jiang]");
                                        
dialog.Option("LostMan [War-Stone +7[Betl3 12.10 Al Dohr]", 13);
                                        
dialog.Option("Legendarywarrior [War-Stone +7[Betl3 12.10 Blel]]", 14);
                                        break;
                                    }
                                case 
110:
                                    {
                                        
dialog.Text("This all Monster[SavageBone]");
                                        
dialog.Option("NemesisTyrant", 3);
                                        
dialog.Option("SnowBanshee", 4);
                                        
dialog.Option("ThrillingSpook", 5);
                                        
dialog.Option("TeratoDragon", 6);
                                        break;
                                    }
                                
#region Monster[DragonIsland]
                                
case 3:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39984, 132, 183);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
4:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39984, 360, 226);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
5:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39984, 152, 290);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
6:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39984, 212, 93);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                
#endregion
                                #region Monster[War]
                                
case 13:
                                    {
                                        
DateTime Now64 = DateTime.Now;
                                        if (
DateTime.Now.Hour == 12 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 30)
                                        {
                                            
client.Player.RemoveFlag(Update.Flags.Ride);
                                            
client.Player.Teleport(1038, 120, 132);
                                            
client.Player.PKMode = Game.Enums.PKMode.Team;
                                            
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        }
                                        else
                                        {
                                            
dialog.Text("The LostMan is held during 12:10 to 12:30 you have 20 min to signup ");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                case 
14:
                                    {
                                        
DateTime Now64 = DateTime.Now;
                                        if (
DateTime.Now.Hour == 00 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 30)
                                        {
                                            
client.Player.RemoveFlag(Update.Flags.Ride);
                                            
client.Player.Teleport(1038, 120, 132);
                                            
client.Player.PKMode = Game.Enums.PKMode.Team;
                                            
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        }
                                        else
                                        {
                                            
dialog.Text("The Legendarywarrior is held during 00:10 to 00:30 you have 20 min to signup ");
                                            
dialog.Option("I don't care.", 255);
                                            
dialog.Send();
                                            break;
                                        }
                                        break;
                                    }
                                
#endregion
                                #region Monster[Stone]
                                
case 7:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39990, 363, 267);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
8:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39990, 281, 337);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
9:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39990, 121, 183);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
10:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39990, 167, 266);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
11:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39990, 136, 88);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                case 
12:
                                    {
                                        
client.Player.RemoveFlag(Update.Flags.Ride);
                                        
client.Player.Teleport(39990, 234, 111);
                                        
client.Player.PKMode = Game.Enums.PKMode.Team;
                                        
client.Send(new Data(true) { UID = client.Player.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Player.PKMode });
                                        break;
                                    }
                                
#endregion
                            
}
                            break;
                        }
                    
#endregion 

خوش علي كلاس World.cs
ضيف دول


كود:
     #region The-Monster
            #region BigMonster [War]
            #region LostMan
            
if (DateTime.Now.Minute == 30 && DateTime.Now.Second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39984;
                
y = 150;
                
x = 187;
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.LostMan)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(417101))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[417101];
                                
mt.BoundX = x;
                                
Program.LostMan = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage("LostMan has appeared.  Hurry and go defeat the beast");
                                    
client10.MessageBox("LostMan has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region Legendarywarrior
            
if (DateTime.Now.Minute == 35 && DateTime.Now.Second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39984;
                
y = 266;
                
x = 159;
                
uint id = 417110;
                
string name = "Legendarywarrior";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.Legendary)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.Legendary = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #endregion
            #region BigMonster [SavageBone]
            #region ThrillingSpook
            
if (DateTime.Now.Minute == 50 && DateTime.Now.Second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39984;
                
y = 290;
                
x = 152;
                
uint id = 4172;
                
string name = "ThrillingSpook";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.ThrillingSpook)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.ThrillingSpook = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region SnowBanshee
            
if (DateTime.Now.Minute == 45 && DateTime.Now.Second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39984;
                
y = 226;
                
x = 360;
                
uint id = 4171;
                
string name = "SnowBanshee";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.SnowBa)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.SnowBa = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region NemesisTyrant
            
if (DateTime.Now.Minute == 40 && DateTime.Now.Second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39984;
                
y = 183;
                
x = 132;
                
uint id = 4220;
                
string name = "NemesisTyrant";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.Nemesis)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.Nemesis = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region TeratoDragon
            
if ((DateTime.Now.Minute == 55 && DateTime.Now.Second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39984;
                
y = 93;
                
x = 212;
                
uint id = 4152;
                
string name = "TeratoDragon"; ;
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.TeratoDragon)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.TeratoDragon = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #endregion
            #region BigMonster [Stone]
            #region Shanghi
            
if ((DateTime.Now.Minute == 10 && DateTime.Now.Second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39990;
                
y = 177;
                
x = 114;
                
uint id = 417109;
                
string name = "Shanghi";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.Shangi)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.Shangi = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region Destructive
            
if ((DateTime.Now.Minute == 15 && DateTime.Now.Second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39990;
                
y = 266;
                
x = 159;
                
uint id = 417107;
                
string name = "destructive";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.Destructive)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.Destructive = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " Dah W7sh al Stone-Perf Low htro7 Dos Ok!");
                                    
client10.MessageBox(name + " Dah W7sh al Stone-Perf Low htro7 Dos Ok?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region DeadLady
            
if ((DateTime.Now.Minute == 05 && DateTime.Now.Second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39990;
                
y = 345;
                
x = 289;
                
uint id = 417103;
                
string name = "DeadLady";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.DeadLady)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.DeadLady = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region DeadMan
            
if ((DateTime.Now.Minute == 00 && DateTime.Now.Second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39990;
                
y = 273;
                
x = 368;
                
uint id = 417102;
                
string name = "DeadMan";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.DeadMan)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.DeadMan = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region Vampire
            
if ((DateTime.Now.Minute == 25 && DateTime.Now.Second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39990;
                
y = 104;
                
x = 226;
                
uint id = 417114;
                
string name = "Vampire";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.Vampira)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.Vampira = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " Dah W7sh al Stone-Perf Low htro7 Dos Ok!");
                                    
client10.MessageBox(name + " Dah W7sh al Stone-Perf Low htro7 Dos Ok?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region SwordMaster
            
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort MapID = 39990;
                
y = 83;
                
x = 130;
                
uint id = 4170;
                
string name = "SwordMaster";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.SwordMaster)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map = Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX = x;
                                
Program.SwordMaster = false;
                                
mt.BoundY = y;
                                
Entity entity = new Entity(EntityFlag.Monster, false);
                                
entity.MapObjType = MapObjectType.Monster;
                                
entity.MonsterInfo = mt.Copy();
                                
entity.MonsterInfo.Owner = entity;
                                
entity.Name = mt.Name;
                                
entity.MinAttack = mt.MinAttack;
                                
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
                                
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
                                
entity.Defence = mt.Defence;
                                
entity.Body = mt.Mesh;
                                
entity.Level = mt.Level;
                                
entity.UID = Map.EntityUIDCounter.Next;
                                
entity.MapID = MapID;
                                
entity.X = x;
                                
entity.Boss = 1;
                                
entity.Y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = Map.RandomCoordinates();
                                    
entity.X = cord.Item1;
                                    
entity.Y = cord.Item2;
                                    do
                                    {
                                        
cord = Map.RandomCoordinates();
                                        
entity.X = cord.Item1;
                                        
entity.Y = cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
                                }

                                
Map.AddEntity(entity);
                                
Network.GamePackets._String stringPacket =
                                new 
Network.GamePackets._String(true);
                                
stringPacket.UID = entity.UID;
                                
stringPacket.Type = Network.GamePackets._String.Effect;
                                
stringPacket.Texts.Add("MBStandard");
                                
Data data = new Data(true);
                                
data.UID = entity.UID;
                                
data.ID = Network.GamePackets.Data.AddEntity;
                                
data.wParam1 = entity.X;
                                
data.wParam2 = entity.Y;
                                foreach (
Client.GameState clllient in Program.Values)
                                {
                                    if (
clllient.Map.ID == entity.MapID)
                                    {
                                        if (
Kernel.GetDistance(clllient.Player.X, clllient.Player.Y, entity.X, entity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllient, false);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints > 65535)
                                            {
                                                
Update upd = new Update(true) { UID = entity.UID };
                                                
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
                                                
upd.Append(Update.Hitpoints, entity.Hitpoints);
                                                
clllient.Send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in Program.Values)
                                {
                                    
client10.Player.SendSysMessage(name + " Dah W7sh al Stone-Perf Low htro7 Dos Ok!");
                                    
client10.MessageBox(name + " Dah W7sh al Stone-Perf Low htro7 Dos Ok?",
                                   (
p) => { p.Player.Teleport(MapID, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #endregion
            #endregion 

بس كدا ياريت يكون اتحلت عندك امسح الاضاقت الي عندك وضيف دول

قديم 2020-04-03, 06:41 PM
المشاركة 8
Abod ayman
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة في توقيت الوحوش الكبيرة
يا حوب خود الوحوش اهي كاملة علشان مش يجيلك مشاكل

امسح الاضاقت الي عندك وضيف دول

اول حاجا كلاس monstertable.cs

هتضيف فيه
دول


كود:

            
#region big-monsters
            
if (name == "vampire")
                
program.vampira = true;
            if (
name == "snowbanshee")
                
program.snowba = true;
            if (
name == "nemesistyrant")
                
program.nemesis = true;
            if (
name == "legendarywarrior")
                
program.legendary = true;
            if (
name == "lostman")
                
program.lostman = true;
            if (
name == "deadlady")
                
program.deadlady = true;
            if (
name == "deadman")
                
program.deadman = true;
            if (
name == "shanghi")
                
program.shangi = true;
            if (
name == "swordmaster")
                
program.swordmaster = true;
            if (
name == "teratodragon")
                
program.teratodragon = true;
            if (
name == "destructive")
                
program.destructive = true;
            if (
name == "snowbansheesoul")
                
program.snowsoul = true;
            if (
name == "thrillingspook")
                
program.thrillingspook = true;
    
#endregion 
دول 

#region thebigmonster
#region boss[stone-perf]
if (name == "vampire" || name == "destructive" || name == "swordmaster")
{
killer.owner.player.conquerpoints += 15000000;
killer.owner.player.onlinepoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = database.conqueriteminformation.baseinformations[3004181];
ushort xx = owner.x, yy = owner.y;
game.map mmap = kernel.maps[owner.mapid];
if (mmap.selectcoordonates(ref xx, ref yy))
{
network.gamepackets.flooritem flooritem = new network.gamepackets.flooritem(true);
flooritem.item = new network.gamepackets.conqueritem(true);
flooritem.item.color = (mr_panda.game.enums.color)kernel.random.next(4, 8);
flooritem.item.id = infoss.id;
flooritem.item.plus = flooritem.item.plus;
flooritem.item.maximdurability = infoss.durability;
flooritem.item.durability = infoss.durability;
flooritem.item.mobdropped = true;
flooritem.valuetype = network.gamepackets.flooritem.floorvaluetype.item;
flooritem.itemid = infoss.id;
flooritem.mapid = owner.mapid;
flooritem.mapobjtype = game.mapobjecttype.item;
flooritem.x = xx;
flooritem.item.stacksize = 1;
flooritem.item.maxstacksize = infoss.stacksize;
flooritem.y = yy;
flooritem.type = network.gamepackets.flooritem.drop;
flooritem.onfloor = time32.now;
flooritem.owner = killer.owner;
flooritem.itemcolor = flooritem.item.color;
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
while (mmap.npcs.containskey(flooritem.uid))
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
mmap.addflooritem(flooritem);
sendscreenspawn(flooritem);
}
}
foreach (var client in kernel.gamepool.values)
{
mr_panda.kernel.sendworldmessage(new mr_panda.network.gamepackets.message(" congratulations " + killer.name + " has killed " + name + " and get [15.000.000] conquerpoints.the and online points 200 ", message.center));
}
}
#endregion
#region boss[stone]
if (name == "deadlady" || name == "shanghi" || name == "deadman" || name == "snowbansheesoul")
{
killer.owner.player.conquerpoints += 15000000;
killer.owner.player.onlinepoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = database.conqueriteminformation.baseinformations[3004181];
ushort xx = owner.x, yy = owner.y;
game.map mmap = kernel.maps[owner.mapid];
if (mmap.selectcoordonates(ref xx, ref yy))
{
network.gamepackets.flooritem flooritem = new network.gamepackets.flooritem(true);
flooritem.item = new network.gamepackets.conqueritem(true);
flooritem.item.color = (mr_panda.game.enums.color)kernel.random.next(4, 8);
flooritem.item.id = infoss.id;
flooritem.item.plus = flooritem.item.plus;
flooritem.item.maximdurability = infoss.durability;
flooritem.item.durability = infoss.durability;
flooritem.item.mobdropped = true;
flooritem.valuetype = network.gamepackets.flooritem.floorvaluetype.item;
flooritem.itemid = infoss.id;
flooritem.mapid = owner.mapid;
flooritem.mapobjtype = game.mapobjecttype.item;
flooritem.x = xx;
flooritem.item.stacksize = 1;
flooritem.item.maxstacksize = infoss.stacksize;
flooritem.y = yy;
flooritem.type = network.gamepackets.flooritem.drop;
flooritem.onfloor = time32.now;
flooritem.owner = killer.owner;
flooritem.itemcolor = flooritem.item.color;
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
while (mmap.npcs.containskey(flooritem.uid))
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
mmap.addflooritem(flooritem);
sendscreenspawn(flooritem);
}
}
foreach (var client in kernel.gamepool.values)
{
mr_panda.kernel.sendworldmessage(new mr_panda.network.gamepackets.message(" congratulations " + killer.name + " has killed " + name + " and get [15.000.000] conquerpoints .the and online points 200 ", message.center));
}
}
#endregion
#region boss[war]
#region legendarywarrior
if (name == "legendarywarrior" || name == "lostman" )
{
killer.owner.player.conquerpoints += 15000000;
killer.owner.player.onlinepoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = database.conqueriteminformation.baseinformations[3004181];
ushort xx = owner.x, yy = owner.y;
game.map mmap = kernel.maps[owner.mapid];
if (mmap.selectcoordonates(ref xx, ref yy))
{
network.gamepackets.flooritem flooritem = new network.gamepackets.flooritem(true);
flooritem.item = new network.gamepackets.conqueritem(true);
flooritem.item.color = (mr_panda.game.enums.color)kernel.random.next(4, 8);
flooritem.item.id = infoss.id;
flooritem.item.plus = flooritem.item.plus;
flooritem.item.maximdurability = infoss.durability;
flooritem.item.durability = infoss.durability;
flooritem.item.mobdropped = true;
flooritem.valuetype = network.gamepackets.flooritem.floorvaluetype.item;
flooritem.itemid = infoss.id;
flooritem.mapid = owner.mapid;
flooritem.mapobjtype = game.mapobjecttype.item;
flooritem.x = xx;
flooritem.item.stacksize = 1;
flooritem.item.maxstacksize = infoss.stacksize;
flooritem.y = yy;
flooritem.owneruid = killer.uid;
flooritem.type = network.gamepackets.flooritem.drop;
flooritem.onfloor = time32.now;
flooritem.owner = killer.owner;
flooritem.itemcolor = flooritem.item.color;
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
while (mmap.npcs.containskey(flooritem.uid))
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
mmap.addflooritem(flooritem);
sendscreenspawn(flooritem);
}
}
foreach (var client in kernel.gamepool.values)
{
mr_panda.kernel.sendworldmessage(new mr_panda.network.gamepackets.message(" congratulations " + killer.name + " has killed " + name + " and get [15.000.000] conquerpoints .the and online points 200 ", message.center));
}
}
#endregion
#endregion
#region boss[dragonisland]
if (name == "snowbanshee" || name == "thrillingspook" || name == "nemesistyrant" || name == "teratodragon")
{
killer.owner.player.conquerpoints += 15000000;
killer.owner.player.onlinepoints += 200;
for (int x = 0; x < 5; x++)
{
var infoss = database.conqueriteminformation.baseinformations[3004181];
ushort xx = owner.x, yy = owner.y;
game.map mmap = kernel.maps[owner.mapid];
if (mmap.selectcoordonates(ref xx, ref yy))
{
network.gamepackets.flooritem flooritem = new network.gamepackets.flooritem(true);
flooritem.item = new network.gamepackets.conqueritem(true);
flooritem.item.color = (mr_panda.game.enums.color)kernel.random.next(4, 8);
flooritem.item.id = infoss.id;
flooritem.item.plus = flooritem.item.plus;
flooritem.item.maximdurability = infoss.durability;
flooritem.item.durability = infoss.durability;
flooritem.item.mobdropped = true;
flooritem.valuetype = network.gamepackets.flooritem.floorvaluetype.item;
flooritem.itemid = infoss.id;
flooritem.mapid = owner.mapid;
flooritem.mapobjtype = game.mapobjecttype.item;
flooritem.x = xx;
flooritem.item.stacksize = 1;
flooritem.item.maxstacksize = infoss.stacksize;
flooritem.y = yy;
flooritem.owneruid = killer.uid;
flooritem.type = network.gamepackets.flooritem.drop;
flooritem.onfloor = time32.now;
flooritem.owner = killer.owner;
flooritem.itemcolor = flooritem.item.color;
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
while (mmap.npcs.containskey(flooritem.uid))
flooritem.uid = network.gamepackets.flooritem.flooruid.next;
mmap.addflooritem(flooritem);
sendscreenspawn(flooritem);
//killer.owner.player.conquerpoints += 50000;
}
}
foreach (var client in kernel.gamepool.values)
{
mr_panda.kernel.sendworldmessage(new mr_panda.network.gamepackets.message(" congratulations " + killer.name + " has killed " + name + " and get [15.000.000] conquerpoints .the and online points 200", message.center));
}
}
#endregion
#endregion
[/php]


تاني حاجا كلاس npc.cs
ضيف دول


كود:

                    
#region boss-monster
                    
case 4716112:
                        {
                            switch (
npcrequest.optionid)
                            {

                                case 
0:
                                    {
                                        
dialog.text(" hello " + client.player.name + " do you want kill dangerous monsters ");
                                        
dialog.option("deadman[xx:00]", 7);
                                        
dialog.option("deadlady[xx:05]", 8);
                                        
dialog.option("shanghi[xx:10]", 9);
                                        
dialog.option("destructive[xx:15]", 10);
                                        
dialog.option("swordmaster[xx:20]", 11);
                                        
dialog.option("vampire[xx:25]", 12);
                                        
dialog.option("lostman[xx:30]", 13);
                                        
dialog.option("legendarywarrior[xx:35]", 14);
                                        
dialog.option("nemesistyrant[xx:40]", 3);
                                        
dialog.option("snowbanshee[xx:45]", 4);
                                        
dialog.option("thrillingspook[xx:50]", 5);
                                        
dialog.option("teratodragon[xx:55]", 6);                           
                                        
dialog.option("no thanks", 255);
                                        
dialog.avatar(0);
                                        
dialog.send();
                                        break;
                                    }
                                case 
100:
                                    {
                                        
dialog.text("this all monster[stone]");
                                        
dialog.option("deadman", 7);
                                        
dialog.option("deadlady", 8);
                                        
dialog.option("shanghi", 9);
                                        break;
                                    }
                                case 
102:
                                    {
                                        
dialog.text("this all monster[stone-perf]");
                                        
dialog.option("destructive", 10);
                                        
dialog.option("swordmaster", 11);
                                        
dialog.option("vampire", 12);
                                        break;
                                    }
                                case 
105:
                                    {
                                        
dialog.text("this all monster[chi-jiang]");
                                        
dialog.option("lostman [war-stone +7[betl3 12.10 al dohr]", 13);
                                        
dialog.option("legendarywarrior [war-stone +7[betl3 12.10 blel]]", 14);
                                        break;
                                    }
                                case 
110:
                                    {
                                        
dialog.text("this all monster[savagebone]");
                                        
dialog.option("nemesistyrant", 3);
                                        
dialog.option("snowbanshee", 4);
                                        
dialog.option("thrillingspook", 5);
                                        
dialog.option("teratodragon", 6);
                                        break;
                                    }
                                
#region monster[dragonisland]
                                
case 3:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39984, 132, 183);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
4:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39984, 360, 226);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
5:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39984, 152, 290);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
6:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39984, 212, 93);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                
#endregion
                                #region monster[war]
                                
case 13:
                                    {
                                        
datetime now64 = datetime.now;
                                        if (
datetime.now.hour == 12 && datetime.now.minute >= 10 && datetime.now.minute <= 30)
                                        {
                                            
client.player.removeflag(update.flags.ride);
                                            
client.player.teleport(1038, 120, 132);
                                            
client.player.pkmode = game.enums.pkmode.team;
                                            
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        }
                                        else
                                        {
                                            
dialog.text("the lostman is held during 12:10 to 12:30 you have 20 min to signup ");
                                            
dialog.option("i don't care.", 255);
                                            
dialog.send();
                                            break;
                                        }
                                        break;
                                    }
                                case 
14:
                                    {
                                        
datetime now64 = datetime.now;
                                        if (
datetime.now.hour == 00 && datetime.now.minute >= 10 && datetime.now.minute <= 30)
                                        {
                                            
client.player.removeflag(update.flags.ride);
                                            
client.player.teleport(1038, 120, 132);
                                            
client.player.pkmode = game.enums.pkmode.team;
                                            
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        }
                                        else
                                        {
                                            
dialog.text("the legendarywarrior is held during 00:10 to 00:30 you have 20 min to signup ");
                                            
dialog.option("i don't care.", 255);
                                            
dialog.send();
                                            break;
                                        }
                                        break;
                                    }
                                
#endregion
                                #region monster[stone]
                                
case 7:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39990, 363, 267);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
8:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39990, 281, 337);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
9:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39990, 121, 183);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
10:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39990, 167, 266);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
11:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39990, 136, 88);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                case 
12:
                                    {
                                        
client.player.removeflag(update.flags.ride);
                                        
client.player.teleport(39990, 234, 111);
                                        
client.player.pkmode = game.enums.pkmode.team;
                                        
client.send(new data(true) { uid = client.player.uid, id = data.changepkmode, dwparam = (uint)client.player.pkmode });
                                        break;
                                    }
                                
#endregion
                            
}
                            break;
                        }
                    
#endregion 

خوش علي كلاس world.cs
ضيف دول


كود:
     #region the-monster
            #region bigmonster [war]
            #region lostman
            
if (datetime.now.minute == 30 && datetime.now.second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39984;
                
y = 150;
                
x = 187;
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.lostman)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(417101))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[417101];
                                
mt.boundx = x;
                                
program.lostman = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage("lostman has appeared.  Hurry and go defeat the beast");
                                    
client10.messagebox("lostman has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region legendarywarrior
            
if (datetime.now.minute == 35 && datetime.now.second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39984;
                
y = 266;
                
x = 159;
                
uint id = 417110;
                
string name = "legendarywarrior";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.legendary)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.legendary = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #endregion
            #region bigmonster [savagebone]
            #region thrillingspook
            
if (datetime.now.minute == 50 && datetime.now.second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39984;
                
y = 290;
                
x = 152;
                
uint id = 4172;
                
string name = "thrillingspook";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.thrillingspook)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.thrillingspook = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region snowbanshee
            
if (datetime.now.minute == 45 && datetime.now.second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39984;
                
y = 226;
                
x = 360;
                
uint id = 4171;
                
string name = "snowbanshee";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.snowba)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.snowba = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region nemesistyrant
            
if (datetime.now.minute == 40 && datetime.now.second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39984;
                
y = 183;
                
x = 132;
                
uint id = 4220;
                
string name = "nemesistyrant";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.nemesis)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.nemesis = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region teratodragon
            
if ((datetime.now.minute == 55 && datetime.now.second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39984;
                
y = 93;
                
x = 212;
                
uint id = 4152;
                
string name = "teratodragon"; ;
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.teratodragon)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.teratodragon = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #endregion
            #region bigmonster [stone]
            #region shanghi
            
if ((datetime.now.minute == 10 && datetime.now.second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39990;
                
y = 177;
                
x = 114;
                
uint id = 417109;
                
string name = "shanghi";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.shangi)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.shangi = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region destructive
            
if ((datetime.now.minute == 15 && datetime.now.second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39990;
                
y = 266;
                
x = 159;
                
uint id = 417107;
                
string name = "destructive";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.destructive)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.destructive = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " dah w7sh al stone-perf low htro7 dos ok!");
                                    
client10.messagebox(name + " dah w7sh al stone-perf low htro7 dos ok?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region deadlady
            
if ((datetime.now.minute == 05 && datetime.now.second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39990;
                
y = 345;
                
x = 289;
                
uint id = 417103;
                
string name = "deadlady";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.deadlady)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.deadlady = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region deadman
            
if ((datetime.now.minute == 00 && datetime.now.second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39990;
                
y = 273;
                
x = 368;
                
uint id = 417102;
                
string name = "deadman";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.deadman)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.deadman = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " has appeared.  Hurry and go defeat the beast!");
                                    
client10.messagebox(name + " has appeared would you want to kill-monster?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region vampire
            
if ((datetime.now.minute == 25 && datetime.now.second == 35))
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39990;
                
y = 104;
                
x = 226;
                
uint id = 417114;
                
string name = "vampire";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.vampira)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.vampira = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " dah w7sh al stone-perf low htro7 dos ok!");
                                    
client10.messagebox(name + " dah w7sh al stone-perf low htro7 dos ok?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #region swordmaster
            
if (datetime.now.minute == 20 && datetime.now.second == 35)
            {
                
ushort x = 0, y = 0;
                
ushort mapid = 39990;
                
y = 83;
                
x = 130;
                
uint id = 4170;
                
string name = "swordmaster";
                if (
database.dmaps.loadmap(mapid))
                {
                    if (
program.swordmaster)
                    {
                        if (
kernel.maps.containskey(mapid))
                        {
                            var 
map = kernel.maps[mapid];
                            if (
database.monsterinformation.monsterinformations.containskey(id))
                            {
                                
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
                                
mt.boundx = x;
                                
program.swordmaster = false;
                                
mt.boundy = y;
                                
entity entity = new entity(entityflag.monster, false);
                                
entity.mapobjtype = mapobjecttype.monster;
                                
entity.monsterinfo = mt.copy();
                                
entity.monsterinfo.owner = entity;
                                
entity.name = mt.name;
                                
entity.minattack = mt.minattack;
                                
entity.maxattack = entity.magicattack = mt.maxattack;
                                
entity.hitpoints = entity.maxhitpoints = mt.hitpoints;
                                
entity.defence = mt.defence;
                                
entity.body = mt.mesh;
                                
entity.level = mt.level;
                                
entity.uid = map.entityuidcounter.next;
                                
entity.mapid = mapid;
                                
entity.x = x;
                                
entity.boss = 1;
                                
entity.y = y;
                                if (
x == 0 || y == 0)
                                {
                                    var 
cord = map.randomcoordinates();
                                    
entity.x = cord.item1;
                                    
entity.y = cord.item2;
                                    do
                                    {
                                        
cord = map.randomcoordinates();
                                        
entity.x = cord.item1;
                                        
entity.y = cord.item2;
                                    }
                                    while (!
map.floor[entity.x, entity.y, mapobjecttype.monster]);
                                }

                                
map.addentity(entity);
                                
network.gamepackets._string stringpacket =
                                new 
network.gamepackets._string(true);
                                
stringpacket.uid = entity.uid;
                                
stringpacket.type = network.gamepackets._string.effect;
                                
stringpacket.texts.add("mbstandard");
                                
data data = new data(true);
                                
data.uid = entity.uid;
                                
data.id = network.gamepackets.data.addentity;
                                
data.wparam1 = entity.x;
                                
data.wparam2 = entity.y;
                                foreach (
client.gamestate clllient in program.values)
                                {
                                    if (
clllient.map.id == entity.mapid)
                                    {
                                        if (
kernel.getdistance(clllient.player.x, clllient.player.y, entity.x, entity.y) <
                                            
constants.nscreendistance)
                                        {
                                            
entity.sendspawn(clllient, false);
                                            
clllient.send(stringpacket);
                                            
clllient.send(data);
                                            if (
entity.maxhitpoints > 65535)
                                            {
                                                
update upd = new update(true) { uid = entity.uid };
                                                
upd.append(update.maxhitpoints, entity.maxhitpoints);
                                                
upd.append(update.hitpoints, entity.hitpoints);
                                                
clllient.send(upd);
                                            }

                                        }
                                    }
                                }
                                foreach (var 
client10 in program.values)
                                {
                                    
client10.player.sendsysmessage(name + " dah w7sh al stone-perf low htro7 dos ok!");
                                    
client10.messagebox(name + " dah w7sh al stone-perf low htro7 dos ok?",
                                   (
p) => { p.player.teleport(mapid, x, y); }, null, 20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion
            #endregion
            #endregion 

بس كدا ياريت يكون اتحلت عندك امسح الاضاقت الي عندك وضيف دول
تمام جاري التجربة وشكرا لمجهودك


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: مشكلة في توقيت الوحوش الكبيرة
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
مشكلة في الوحوش ElSaher مشكلات السيرفيرات كونكر الشخصيه 4 2020-02-21 12:19 PM
حل مشكلة الوحوش ElSaher مشكلات السيرفيرات كونكر الشخصيه 1 2020-02-05 04:15 PM
طل يخص الوحوش الكبيرة Big-Monster خدمة ياحازم ميدو مشكلات السيرفيرات كونكر الشخصيه 2 2019-09-30 07:09 AM
مشكلة فى الوحوش الكبيرة ViORX مشكلات السيرفيرات كونكر الشخصيه 6 2019-09-21 10:21 PM
مشكلة فى الوحوش bebo100 مشكلات السيرفيرات كونكر الشخصيه 2 2019-08-04 01:36 PM


الساعة الآن 06:12 PM