منتدي اكواد

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

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

كوسته حرب التيمات
 
شـرح الـكـويست
الـكويست بـبتدا الساعه 19 في اللعبه اللي هو 7 و بتنتهي 7 و نص
بـيـجيلك اوتو انفيت بدوس عليه هيـوديك عند الراجل بتاع الكويست
والـكويست هتبقي عباره عن تـيـم قـصاد تـيم ||وفي شـروط عشان تدخلها
اللي يـدخلها لازم يـكون ال TeamLeader طبعا هيدخل بالتيم بتاعه
ولازم يـكون معاه الايتم بـتاع الكـويست اللي هـي
1-Strong
2-Team
ولازم يـكون معاك مـن كل واحده 5 والـايتم دي هتجبهم من الوحوش بتاعت
التون اللي هـما Phesant
هـتجيب الايتم تروح تكلم الراجل هيدخلك الـكويست و هياخد منك الايتم
وهيديك 10 مـليون سبس و ستادي بـوينتس وبـعد مـا تدخل طبعا في تيمات هتلاعبك جوا
ولازم تموت كل التيمات اللي قصادك عشان تـكسب وبعد ما تموتهم التيم ليدر هيكلم
الرجل اللي هـيخرجو و اللي هـيديـلو الـجـايزه واالي هـي برده 10 مـليون سبس
===== كـده خـلصنا الـشـرح نـدخل في الاضـاافات تــابع معايه =====
افتح ملف Npcs.cs وضيف دول
كود PHP:


#region StrongTeam By [LeGoOo-TeamXor] 
#region Winner of StrongTeam 
                    
case 666644
                        { 
                            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 == 19 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute 30
                                        { 
  
                                            
Conquord.Game.ConquerStructures.DailyQuest.CheackSpouse(); 
                                            if (
Conquord.Game.ConquerStructures.Daily.howmanyinmap3 == 1
                                            { 
                                                
client.Entity.ConquerPoints += 10000000
                                                
Conquord.Kernel.SendWorldMessage(new Message("Congratulations! The Monster " client.Team.TeamLeader " claimed the prize 10kk Frome StrongTeam war."System.Drawing.Color.BlackMessage.Center), Program.Values); 
  
                                                
//LeGoOo 
                                                //client.Entity.SendSpawn(client, true); 
                                                
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 
#region StrongTeam Quest 
                
case 66655
                    { 
                        switch (
npcRequest.OptionID
                        { 
                            case 
0
                                { 
                                    
dialog.Text("Do you Want To Go To StrongTeam Event !! "); 
                                    
dialog.Option("Yes I want to Join."1); 
                                    
dialog.Option("What is this?."2); 
                                    
dialog.Option("No THX."255); 
                                    
dialog.Send(); 
                                    break; 
                                } 
                            case 
1
                                { 

                                    
// if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute < 45) 
                                    
if (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute 30
                                    { 
                                        if (
client.Team != null && client.Team.TeamLeader
                                        { 
                                            if (
client.Inventory.Contains(3202015)) 
                                            { 
                                                if (
client.Inventory.Contains(3202025)) 
                                                { 
                                                    
client.Inventory.Remove(3202015); 
                                                    
client.Inventory.Remove(3202025); 
                                                    
client.Entity.ConquerPoints += 10000000
                                                    
client.Entity.StudyPoints += 1000
                                                    foreach (
Client.GameClient Teammate in client.Team.Teammates
                                                    { 
                                                        if (
Teammate != null
                                                        { 
                                                            
Random R = new Random(); 
                                                            
int Nr R.Next(13); 
                                                            if (
Nr == 1Teammate.Entity.Teleport(2255225124); 
                                                            if (
Nr == 2Teammate.Entity.Teleport(2255225124); 
                                                            if (
Nr == 3Teammate.Entity.Teleport(2255225124); 

                                                        } 
                                                        else 
                                                        { 
                                                            
dialog.Text("Sorey You Dont Leadr Team  . "); 
                                                            
dialog.Text("You Don't Have All Item . "); 
                                                            
dialog.Option("I don't care."255); 
                                                            
dialog.Send(); 
                                                            break; 
                                                        } 
                                                    } 
                                                } 
                                                else 
                                                { 
                                                    
dialog.Text("sign up to StrongTeam Event Every tuesdy in H : 7.00 to 7.30 . "); 
                                                    
dialog.Option("I don't care."255); 
                                                    
dialog.Send(); 
                                                } 
                                                break; 
                                            } 
                                        } 
                                    } 
                                } 
                            case 
2
                                { 
                                    
client.Send(new Message("https://www.facebook.com/m.m.aggag/"System.Drawing.Color.RedNetwork.GamePackets.Message.Website)); 
                                    break; 
                                } 
                        } 
                        break; 
                    } 
                
#endregion 
#endregion StrongTeam By [LeGoOo-TeamXor] 

وافتح handle.cs وحط دول

كود PHP:


#region StrongTeam 

            
if (attacker.MapID == 2255)//LeGoOo 
            
{//TeamXor 
                    
if (attacked.UID == 516090 
                    { 
                        
//if (attacker.PKMode != Enums.PKMode.Team) 
                               
                          //  return false;         
                      

                  
             } 
            
#endregion StrongTeam 

وفي world.cs وحط ده

كود PHP:


#region new mobs  
            
if (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute 30
            {  
                
Kernel.SendWorldMessage(new Network.GamePackets.Message("StrongTeam 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: 10kk CPs]",  
                      (
p) => { p.Entity.Teleport(1002335267); }, null60);  
            }  
            
#endregion 

وفي Daildy.cs حط ده

كود PHP:


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

            }  
        } 

وفي MonesterTable.cs ح\ ده
كود PHP:


#region StrongTeam Event  
            
if (Name == "Phesant")  
            { 
//LeGoOo  

                
uint ItemID 0;  
                
byte type1 30;  
                for (
int i 012i++)  
                {  
                    
type1 = (byte)Kernel.Random.Next(12);  
                    switch (
type1)  
                    {  
                        case 
1:  
                            
ItemID 320201;  
                            break;  
                        case 
2:  
                            
ItemID 320202;  
                            break;  
                          

                    }  
                    var 
infos Database.ConquerItemInformation.BaseInformations[ItemID];  
                    
ushort X Owner.XOwner.Y;  
                    
Game.Map Map Kernel.Maps[Owner.MapID];  
                    if (
Map.SelectCoordonates(ref Xref Y))  
                    {  
                        
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);  
                        
floorItem.Item = new Network.GamePackets.ConquerItem(true);  
                        
floorItem.Item.Color = (Conquer_Online_Server.Game.Enums.Color)Kernel.Random.Next(48);  
                        
floorItem.Item.ID ItemID;  
                        
floorItem.Item.Plus floorItem.Item.Plus;  
                        
floorItem.Item.MaximDurability infos.Durability;  
                        
floorItem.Item.Durability infos.Durability;  
                        
floorItem.Item.MobDropped true;  
                        
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;  
                        
floorItem.ItemID ItemID;  
                        
floorItem.MapID Owner.MapID;  
                        
floorItem.MapObjType Game.MapObjectType.Item;  
                        
floorItem.X;  
                        
floorItem.Y;  
                        
floorItem.Type Network.GamePackets.FloorItem.Drop;  
                        
floorItem.OnFloor Time32.Now;  
                        
floorItem.ItemColor floorItem.Item.Color;  
                        
floorItem.UID Network.GamePackets.FloorItem.FloorUID.Next;  
                        while (
Map.Npcs.ContainsKey(floorItem.UID))  

                            
floorItem.UID Network.GamePackets.FloorItem.FloorUID.Next;  

                        
Map.AddFloorItem(floorItem);  

                        
SendScreenSpawn(floorItem);  
                    }  
                }  
                
Kernel.Spawn false;  
                
killer.SubClasses.StudyPoints += 50;  
                
killer.ConquerPoints += 100;  
                
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Congratulations! " killer.Name " Has Killed " Name "and dropped A Rar Items!"Message.TopLeft));  
                return;  
            }  
            
#endregion 

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

كود PHP:


2233    1844    7    0 

والان بي سهات دي

كود PHP:


66655    0    0    StrongTeam    2    45010    
-1    1002    301    357    0    0    0    0    0    0    0    0    0    0    0    0        0    0    0    0    0 
66644    0    0    StronTeamWinner    45010    
-1    2255    225    124 

حط دول في items في السورس و itemtype في الكلينت


كود PHP:


320201
@@[~~Strong~~]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@@0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@Strong~Team@@Are~You~Brave~To~Open~It~?,The~Quest~Coded~By~Mr~LeGoOo.@@5@@0@@0@@0@@14040@@500@@ 
320202@@[~~Team~]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@@0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@Strong~Team@@Are~You~Brave~To~Open~It~?,The~Quest~Coded~By~Mr~LeGoOo.@@5@@0@@0@@0@@14040@@500@@ 

وفي ItemMinIcon حط

كود PHP:


[Item320201]  
FrameAmount=1  
Frame0
=data/ItemMinIcon/StrongTeam1.png 

[Item320202]  
FrameAmount=1  
Frame0
=data/ItemMinIcon/StrongTeam2.png 

دلوقتي اتختار صورتين من ملف ItemMinIcon
وتسميهم بالاسم دول
StrongTeam2.png
StrongTeam1.png

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


الساعة الآن 05:59 AM

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