منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   كوسته الارانب (https://code.vpscairo.com/showthread.php?t=283)

محمد ياسر 2019-05-07 12:45 PM

كوسته الارانب
 

كوسته تيم اكسور
كويستة التانية من موضوع الطلبات
كويستة حلوة و غريبة و جديدة

الشرح:هيجيك اوتو انفنت هتكلم الان بي سي الساعة 13:00
هيحولك لوحش من اصل 6 وحوش جديدة و قديمة
و هيعمل الهلث بتاعك 70 الف و يوديك مابة
متقدرش تستخدم اي سكلة طول ما انت متحول
التحول هيقعد 13 دقيقة
يعني مش هتقدر تضرب غير ضربة عادية
يعني اجري ورا الناس و اضربهم :hunter:
تمام نخش في الاضافة
خش على Nps
و ضيف دول
كود PHP:


 
#region new mobs q
                
case 4131:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to join the Monsters War?.");
                                    
dialog.Option("Yes i will be A Monster"1);
                                    
dialog.Option("I don't care."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
DateTime.Now.Hour == 13 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute 9)
                                    {
                                        
Random R = new Random();
                                        
int Nr R.Next(12);
                                        if (
Nr == 1client.Entity.Teleport(105515744);
                                        if (
Nr == 2client.Entity.Teleport(105515844);

                                        
int disguise Kernel.Random.Next(Database.DataHolder.Disguises2.Length);
                                        
ushort selected Database.DataHolder.Disguises[disguise];
                                        
bool wasTransformated client.Entity.Transformed;
                                        if (
wasTransformated)
                                        {
                                            
client.Entity.Hitpoints client.Entity.MaxHitpoints;
                                            
client.Entity.TransformationID 0;
                                            
client.Entity.TransformationStamp Time32.Now;
                                        }
                                        
ushort transformation selected;
                                        
client.Entity.TransformationID transformation;
                                        
client.Entity.TransformationStamp Time32.Now;
                                        
client.Entity.TransformationTime 780;
                                        
SpellUse spellUse = new SpellUse(true);
                                        
spellUse.Attacker client.Entity.UID;
                                        
spellUse.SpellID 1360;
                                        
spellUse.SpellLevel 4;
                                        
spellUse.client.Entity.X;
                                        
spellUse.client.Entity.Y;
                                        
spellUse.AddTarget(client.Entity.UID, (uint)0null);
                                        
client.Send(spellUse);
                                        
client.Entity.TransformationMaxHP 70000;
                                        
double maxHP client.Entity.MaxHitpoints;
                                        
double HP client.Entity.Hitpoints;
                                        
double point HP maxHP;
                                        
client.Entity.Hitpoints = (uint)(client.Entity.TransformationMaxHP point);
                                        
client.Entity.Update(Update.MaxHitpointsclient.Entity.TransformationMaxHPfalse);
                                        
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"You Are A Monster New Fight with Other Monsters To Get Glory  ");
                                        
npc.OptionID 255;
                                        
client.Send(npc.ToArray());
                                    }
                                    else
                                    {
                                        
dialog.Text("Monsters War is held during  at 13:9 ");
                                        
dialog.Option("I don't care."255);
                                        
dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
               #region Winner of mobs 
                
case 21995
                    { 
                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 
                                    
dialog.Text("Hey there " client.Entity.Name " Would you like to claim your Prize?."); 
                                    
dialog.Option("Yes Please"1); 
                                    
dialog.Option("I don't care."255); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 
                                    
                                    if (
DateTime.Now.Hour == 13 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute 20
                                    { 
                                        
                                         
Conquer_Online_Server.Game.ConquerStructures.Daily.CheackSpouse(); 
                                    if (
Conquer_Online_Server.Game.ConquerStructures.Daily.howmanyinmap3 == 1
                                    { 
                                            
client.Entity.ConquerPoints += 1000000
                                            
Conquer_Online_Server.Kernel.SendWorldMessage(new Message("Congratulations! The Monster " client.Entity.Name " claimed the prize 1kk Frome Monsters war."System.Drawing.Color.BlackMessage.Center), Program.GamePool); 

                                            
// oras  
                                            
client.Entity.SendSpawn(clienttrue); 
                                            
client.Entity.Teleport(1002301278); 

                                        } 
                                        else 
                                        { 
                                            
dialog.Text("There are still " +  Daily.howmanyinmap3 " players in the map kill it first to claim prize!"); 
                                            
dialog.Option("okay"255); 
                                            
dialog.Send(); 
                                            break; 
                                        } 
                                    } 
                                    else 
                                    { 
                                        
dialog.Text("Hey there " client.Entity.Name "You can only claim the prize when the time on or after 13:10"); 
                                        
dialog.Option("okay"255); 
                                        
dialog.Send(); 
                                        break; 
                                    } 
                                    break; 
                                } 
                        } 
                        break; 
                    } 
                
#endregion 

و خش على World
و دور على

كود PHP:


#region Last man 

و ضيف فوقو
كود PHP:


 
#region new mobs 
            
if (Now64.Second <= && Now64.Hour == 13 && Now64.Minute == 00
            { 
                
Kernel.SendWorldMessage(new Network.GamePackets.Message("Monsters War has begun! Go to Challenge Other Players !"System.Drawing.Color.WhiteNetwork.GamePackets.Message.Center), Program.GamePool); 
                
client.MessageBox("Monsters War has begun! Would you like to join? [Prize: 1kk CPs]"
                      (
p) => { p.Entity.Teleport(1002335267); }, null60); 
            } 
            
#endregion 

خش على Daily.cs
و دور على

كود PHP:


public static void CheackAlive2() 

حط فوقو
كود PHP:


 
public static void CheackAlive7() 
        { 
            
howmanyinmap2 0
            foreach (
Client.GameClient client in Program.GamePool
            { 
                if (
client.Entity.MapID == 10551 && client.Entity.Hitpoints >= 1
                { 
                    
howmanyinmap2 += 1
                    
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Players Alive in Monsters War: " howmanyinmap2 " "System.Drawing.Color.BlackConquer_Online_Server.Network.GamePackets.Message.FirstRightCorner), Program.GamePool); 
                } 

            } 
        } 

تمام خش على
Database
و افتح DataHolder.cs
و دور على

كود PHP:


public static ushort[] Disguises = new ushort[] { 111224117152113833116245112222114221115220 }; 

و حط تحتو

كود PHP:


public static ushort[] Disguises2 = new ushort[] { 111127979976977983 }; 

دلوقتي افتح
Constants.cs
و دور على

كود PHP:


public static readonly System.Collections.Generic.List<ushortPKFreeMaps = new System.Collections.Generic.List<ushort>()
        { 

و حط تحت اول قوس

كود PHP:


 10551


طيب دلوقتي خش على PacketHandler.cs
و دور على

كود PHP:


#region LifeFruit 

اقفلو من السالب و بدلو بدا
كود PHP:


#region LifeFruit
                
case 723726:
                    {
                        if (
client.Entity.MapID == 10551)
                            break; 
                        
client.Inventory.Remove(itemGame.Enums.ItemUse.Remove);
                        
client.Entity.Hitpoints client.Entity.MaxHitpoints;
                        
client.Entity.Mana client.Entity.MaxMana;
                        break;
                    }
                
#endregion 

خلي بالك دور على
#region LifeFruit
الي تحتها مكتوب
case 723726:
و دور على

كود PHP:


#region Medicine 

و اقفلو من السالب و بدلو بدا
كود PHP:


#region Medicine
                
case 1000000:
                case 
1000010:
                case 
1000020:
                case 
1000030:
                case 
1002000:
                case 
1002010:
                case 
1002020:
                case 
1002050:
                case 
725065:
                    {
                        if (
client.Entity.MapID == 10551)
                            break;  
                        if (
client.Entity.NoDrugsTime 0)
                        {
                            if (
Time32.Now client.Entity.NoDrugsStamp.AddSeconds(client.Entity.NoDrugsTime))
                            {
                                
client.Entity.NoDrugsTime 0;
                            }
                            else
                            {
                                return;
                            }
                        }
                        if (
client.Entity.Hitpoints == client.Entity.MaxHitpoints)
                            return;
                        
client.Inventory.Remove(itemGame.Enums.ItemUse.Remove);
                        
client.Entity.Hitpoints Math.Min(client.Entity.Hitpoints infos.BaseInformation.ItemHPclient.Entity.MaxHitpoints);
                        break;
                    }
                case 
1001000:
                case 
1001010:
                case 
1001020:
                case 
1001030:
                case 
1001040:
                case 
1002030:
                case 
1002040:
                case 
725066:
                    {
                        if (
client.Entity.MapID == 10551)
                            break;  
                        if (
client.Entity.NoDrugsTime 0)
                        {
                            if (
Time32.Now client.Entity.NoDrugsStamp.AddSeconds(client.Entity.NoDrugsTime))
                            {
                                
client.Entity.NoDrugsTime 0;
                            }
                            else
                            {
                                return;
                            }
                        }
                        if (
client.Entity.Mana == client.Entity.MaxMana)
                            return;
                        
client.Inventory.Remove(itemGame.Enums.ItemUse.Remove);
                        
client.Entity.Mana = (ushort)Math.Min(client.Entity.Mana infos.BaseInformation.ItemMPclient.Entity.MaxMana);
                        break;
                    }
                
#endregion 

تمام كدا شغل السورس خش على النافي كات
دوس f6 ايطعلط قنصل القاعده حط دول ف فيهم


كود PHP:


INSERT INTO 
`mapsVALUES ('10550''10550''0007''0000');
INSERT INTO `mapsVALUES ('10551''10550''0007''0000');
INSERT INTO `npcsVALUES ('4131''0''0''new mobs q''0002''1340''-1''1002''0335''0264''0000''0000''0000''0000''0000''0000''0000''0000''0''0''0''0''''0000''00''00''0000''00'null);
INSERT INTO `npcsVALUES ('21995''0''0''new mobs win''0002''1340''-1''10551''0056''0037''0000''0000''0000''0000''0000''0000''0000''0000''0''0''0''0''''0000''00''00''0000''00'null); 




karem1q 2023-10-09 07:30 AM

رد: كوسته الارانب
 
Tmam


الساعة الآن 08:19 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب