عرض مشاركة واحدة
قديم 2020-05-01, 01:57 AM
المشاركة 2
ElSaher
.:: مشرف قسم المشاكل ::.
  • غير متواجد
افتراضي رد: مساااااااااعده
سهلا جدا يا صديقي هتروح علي world
دي مسال رسالة توب عاديه

كود:
            #region Prites PK[T] Pk//[00:36]
            
if (DateTime.Now.Minute == 35 && Now64.Second == 58)
            {
                
Kernel.SendWorldMessage(new Message(" Prites PK [T] Has Started , Get Ready To Join !"Color.WhiteMessage.Center), Program.Values);
                foreach (var 
client in Program.Values)
                    
client.MessageBox(" Prites PK [T] Pk Has Began , Would You like to Join?",
               (
p) => { p.Entity.Teleport(1002296266); }, null60);
            }
            
#endregion 

دي المكان الي الرسالة هتيجي لي اللاعب لو داس ok هتدويه فيه
1002, 296, 266
وهتعدل علي اسم التوب

كود:
Prites PK 

بعدها هتعدل علي الوقت الي الرسالة هتيجي فيه

كود:
 if (DateTime.Now.Minute == 35 && Now64.Second == 58

الدقيقه 35وا 58 سنيه الرسالة هتيجي لي الناس الي في السيرفر كولها
?/////////////////////////////////////////////////////////////////////////
طيب مسال غيرو رسالة وحش

كود:
#region Legendarywarrior [xx:08]
            
if ((DateTime.Now.Minute == 08 && DateTime.Now.Second == 58))
            {
                
ushort x 00;
                
ushort MapID 39990;
                
55;
                
55;
                
uint id 417110;
                
string name "Legendarywarrior";
                if (
Database.DMaps.LoadMap(MapID))
                {
                    if (
Program.Legendary)
                    {
                        if (
Kernel.Maps.ContainsKey(MapID))
                        {
                            var 
Map Kernel.Maps[MapID];
                            if (
Database.MonsterInformation.MonsterInformations.ContainsKey(id))
                            {
                                
Database.MonsterInformation mt Database.MonsterInformation.MonsterInformations[id];
                                
mt.BoundX x;
                                
Program.Legendary false;
                                
mt.BoundY y;
                                
Entity entity = new Entity(EntityFlag.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.Entity.Xclllient.Entity.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.Entity.SendSysMessage(name " has appeared.  Hurry and go defeat the beast!");
                                    
client10.MessageBox(name " has appeared Would you Want to Kill-Monster?",
                                   (
p) => { p.Entity.Teleport(MapIDxy); }, null20);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion 

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