منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   كويست cloudsaintjar زى كونكر (https://code.vpscairo.com/showthread.php?t=600)

محمد ياسر 2019-07-02 04:30 PM

كويست cloudsaintjar زى كونكر
 

السلام عليكم ورحمة الله وبركاته
الكوسته ده اكيد الكل لعبه في كونكر اونلاين
الكوسته ده الراجل الي بيديك ايتم ويقولك اقتل عدد وحوش وليكن 1000
الي مكانه جنب الي بتنقلك للماركت في التون ستي اكيد عرفتوها
يلا نخليه يعمل مهمته
الاول هنفتح
Entity.cs

ونبحث عن
كود PHP:

public unsafe class Entity : Writer, IBaseEntity, IMapObject 
    
{ 

وتحته نضيف
كود PHP:

public bool StartEpic = false; 
        public 
uint JarsCount = 0; 
        public 
uint Pheasant = 0; 
        public 
uint Poltergeist = 0; 
        public 
uint Bandit = 0; 
        public 
uint SandMonster = 0; 
        public 
uint BladeGhost = 0; 
        public 
uint BlizzardBat = 0; 
        public 
uint BloodyBat = 0; 
        public 
uint Birdman = 0; 
        public 
uint BullMonster = 0; 
        public 
uint WingedSnake = 0; 

و بعدين نفتح كلاس
MonsterTable.cs

ونبحث عن
كود PHP:

#region Kings OF Boss 

نقفله كله من السالب ونضيف تحته
كود PHP:

 #region NewQuset 

            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("Pheasant")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.Pheasant++; 
                        if (
killer.Pheasant >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("Poltergeist")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.Poltergeist++; 
                        if (
killer.Poltergeist >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("Bandit")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.Bandit++; 
                        if (
killer.Bandit >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("SandMonster")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.SandMonster++; 
                        if (
killer.SandMonster >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 


            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("BladeGhost")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.BladeGhost++; 
                        if (
killer.BladeGhost >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("BlizzardBat")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.BlizzardBat++; 
                        if (
killer.BlizzardBat >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("BloodyBat")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.BloodyBat++; 
                        if (
killer.BloodyBat >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("Birdman")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.Birdman++; 
                        if (
killer.Birdman >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 


            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("BullMonster")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.BullMonster++; 
                        if (
killer.BullMonster >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #region CloudSaintJar Quest 
             
                
if (Owner.Name.Contains("WingedSnake")) 
                { 
                    if (
killer.StartEpic) 
                    { 
                        
killer.JarsCount++; 
                        
killer.WingedSnake++; 
                        if (
killer.WingedSnake >= 1000) 
                            
killer.Owner.MessageBox("okay You Finesh Quest Go Get Prize", p => { p.Entity.Teleport(1002, 309, 338); }, null); 
                    } 
                } 

            
#endregion 
            #endregion 

و بعدين نفتح كلاس
Npc.cs


ونبحث عن
كود PHP:

#region FasterMan By LeGoOo 

ونقفله من السالب ونضيف تحته
كود PHP:

 #region CloudSaintJar 
                    
case 2000://CloudSaintJar 
                    
case 2001: 
                    case 
2002: 
                    case 
2003: 
                    case 
2004: 
                    case 
2005: 
                        { 
                            switch (
npcRequest.OptionID) 
                            { 
                                case 
0: 
                                    { 
                                        
dialog.Text("Hello Hero im CouldSaint , i can help you to obtain a good gift but you must help me to kill some monsters,"); 
                                        
dialog.Text("i will give you A jar will help you in That. after you done come back and change it with A 5000 Cps, "); 
                                        
dialog.Text("you can try this quest 1 time a day"); 
                                        
dialog.Option("Accept!", 1); 
                                        
dialog.Option("Done Mission!", 2); 
                                        
dialog.Option("JustPassingBy!", 255); 
                                        
dialog.Avatar(51); 
                                        
dialog.Send(); 
                                        break; 
                                    } 
                                 
                                case 
1: 
                                    { 
                                        if (!
client.Entity.StartEpic) 
                                        { 
                                            
client.Inventory.Remove(750000, 1); 
                                            
client.Entity.StartEpic = true; 
                                            
ConquerItem item = new Network.GamePackets.ConquerItem(true); 
                                            
item = new ConquerItem(true); 
                                            
item.ID = 750000; 
                                            
item.Durability = 1000; 
                                            
Random R = new Random(); 
                                            
int Nr = R.Next(1, 10); 
                                            if (
Nr == 1) 
                                            { 
                                                
item.MaximDurability = 1;//Pheasant 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 50 Pheasant And Come Back ", p => { p.Entity.Teleport(1002, 329, 393); }, null); 
                                            } 
                                            if (
Nr == 2) 
                                            { 
                                                
item.MaximDurability = 5;//Poltergeist 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 Poltergeist And Come Back ", p => { p.Entity.Teleport(1002, 86, 297); }, null); 
                                            } 
                                            if (
Nr == 3) 
                                            { 
                                                
item.MaximDurability = 7;//Bandit 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 Bandit And Come Back ", p => { p.Entity.Teleport(1011, 240, 391); }, null); 
                                            } 
                                            if (
Nr == 4) 
                                            { 
                                                
item.MaximDurability = 6;//WingedSnake 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 WingedSnake And Come Back ", p => { p.Entity.Teleport(1011, 335, 101); }, null); 
                                            } 
                                            if (
Nr == 5) 
                                            { 
                                                
item.MaximDurability = 3564;//SandMonster 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 SandMonster And Come Back ", p => { p.Entity.Teleport(1000, 605, 737); }, null); 
                                            } 
                                            if (
Nr == 6) 
                                            { 
                                                
item.MaximDurability = 17;//BladeGhost 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 BladeGhost And Come Back ", p => { p.Entity.Teleport(1000, 179, 288); }, null); 
                                            } 
                                            if (
Nr == 7) 
                                            { 
                                                
item.MaximDurability = 2179;//BlizzardBat 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 BlizzardBat And Come Back ", p => { p.Entity.Teleport(1000, 191, 245); }, null); 
                                            } 
                                            if (
Nr == 8) 
                                            { 
                                                
item.MaximDurability = 56;//BloodyBat 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 BloodyBat And Come Back ", p => { p.Entity.Teleport(1001, 236, 352); }, null); 
                                            } 
                                            if (
Nr == 9) 
                                            { 
                                                
item.MaximDurability = 18;//Birdman 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 Birdman And Come Back ", p => { p.Entity.Teleport(1015, 754, 709); }, null); 
                                            } 
                                            if (
Nr == 10) 
                                            { 
                                                
item.MaximDurability = 57;//BullMonster 
                                                
item.Color = (Game.Enums.Color)3; 
                                                
item.StackSize = 1; 
                                                
client.Inventory.Add(item, Game.Enums.ItemUse.CreateAndAdd); 
                                                
client.MessageBox("Go Kill 1000 BullMonster And Come Back ", p => { p.Entity.Teleport(1001, 172, 329); }, null); 
                                            } 


                                        } 
                                        break; 
                                    } 
                                case 
2: 
                                    { 
                                        if (
client.Entity.Pheasant >= 1000 || client.Entity.Poltergeist >= 1000 || client.Entity.Bandit >= 1000 || client.Entity.SandMonster >= 1000 
                                            
|| client.Entity.BladeGhost >= 1000 || client.Entity.BlizzardBat >= 1000 || client.Entity.BloodyBat >= 1000 || client.Entity.Birdman >= 1000 
                                            
|| client.Entity.BullMonster >= 1000 || client.Entity.WingedSnake >= 1000) 
                                        { 
                                            
client.Entity.JarsCount = 0; 
                                            
client.Inventory.Remove(710000, 1); 
                                            
client.Entity.StartEpic = false; 
                                            
client.Entity.Pheasant = 0; 
                                            
client.Entity.Poltergeist = 0; 
                                            
client.Entity.Bandit = 0; 
                                            
client.Entity.SandMonster = 0; 
                                            
client.Entity.BladeGhost = 0; 
                                            
client.Entity.BlizzardBat = 0; 
                                            
client.Entity.BloodyBat = 0; 
                                            
client.Entity.Birdman = 0; 
                                            
client.Entity.BullMonster = 0; 
                                            
client.Entity.WingedSnake = 0; 
                                            
client.Entity.ConquerPoints += 5000; 
                                            
client.Entity.MonstersPoints += 5000; 
                                            
client.Entity.OnlinePoints += 10; 
                                            
dialog.Text("Gratz You Fineshed Stage "); 
                                            
dialog.Option("Next Stage", 1); 
                                        } 
                                        else 
                                        { 
                                            
dialog.Text("You Stell must kill more monster"); 
                                        } 
                                        
dialog.Option("I see", 255); 
                                    } 

                                    
dialog.Send(); 
                                    break; 
                              
                            } 
                            break; 
                        } 
                    
#endregion 

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


ومن هنا تقدر تتحكم فى الجايزة
كود PHP:

    client.Entity.ConquerPoints += 5000; 
                                            
client.Entity.MonstersPoints += 5000; 
                                            
client.Entity.OnlinePoints += 10 

ومنا هنا تقدر تتحكم فى عدد الوحوش المطلوب قتلها شايف رقم 1000 دة تبحث عنه فى الكويست كله وتغيره بالعدد اللى تحبه
كود PHP:

item.Durability = 1000; 

كود PHP:

Go Kill 1000 

كود PHP:

if (client.Entity.Pheasant >= 1000 ||client.Entity.Poltergeist >= 1000 ||client.Entity.Bandit >= 1000 ||client.Entity.SandMonster >= 1000  
                                                        
||client.Entity.BladeGhost >= 1000 ||client.Entity.BlizzardBat >= 1000 ||client.Entity.BloodyBat >= 1000 ||client.Entity.Birdman >= 1000 
                                                        
||client.Entity.BullMonster >= 1000 ||client.Entity.WingedSnake >= 1000  ) 
                                                    { 

كود PHP:

if (killer.Pheasant >= 1000) 

كل دول اتعدل عليهم لو اتغير عدد الوحوش


Users 2019-07-02 07:25 PM

رد: كويست cloudsaintjar زى كونكر
 
عاااش يا وحش

Tefa 2019-07-04 10:12 PM

رد: كويست cloudsaintjar زى كونكر
 
عاش

Metwly 2024-02-21 11:47 PM

رد: كويست cloudsaintjar زى كونكر
 
بس مفيش شرط انه تتعمل 3 مرات او 4 مرات لكل اكونت فى اليوم الواحد


الساعة الآن 03:24 AM

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