عرض مشاركة واحدة
قديم 2019-07-27, 09:27 PM
المشاركة 9
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: طلب بسيط فى سورس ahmedfathy
كود:
#region TeratoDragon
            
if ((DateTime.Now.Minute == 55 && DateTime.Now.Second == 35))
            {
                
ushort x 00;
                
ushort MapID 39984;
                
93;
                
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.Monsterfalse);
                                
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;
                                
entity.Boss 1;
                                
entity.y;
                                if (
== || == 0)
                                {
                                    var 
cord Map.RandomCoordinates();
                                    
entity.cord.Item1;
                                    
entity.cord.Item2;
                                    do
                                    {
                                        
cord Map.RandomCoordinates();
                                        
entity.cord.Item1;
                                        
entity.cord.Item2;
                                    }
                                    while (!
Map.Floor[entity.Xentity.YMapObjectType.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.Xclllient.Player.Yentity.Xentity.Y) <
                                            
Constants.nScreenDistance)
                                        {
                                            
entity.SendSpawn(clllientfalse);
                                            
clllient.Send(stringPacket);
                                            
clllient.Send(data);
                                            if (
entity.MaxHitpoints 65535)
                                            {
                                                
Update upd = new Update(true) { UID entity.UID };
                                                
upd.Append(Update.MaxHitpointsentity.MaxHitpoints);
                                                
upd.Append(Update.Hitpointsentity.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(MapIDxy); }, null20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion 

بوس كدا هنا
انفيت تحت خالص

كود:
 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(MapIDxy); }, null20); 

بتيجي لما الوحش يطلع