الأربعاء، 13 مايو 2015
السلام عليكم ورحمة الله وبركاته
الفكرة عباره عن
هيا شبه كويستة Conquer7
بس معمولة بطريقه مختلفة
الفكره عباره عن ان حضرتك بتروح تقتل في وحوش برد بتجمع 7 بيضات بالوان مختلفة واسامي مختلفة
وبعدين بتروح لراجل الساعه 0.45 بيديك 100 الف سي بي اس
وفي الجايزا الكبرا وهيا من الاسبوك بيضة بتاخدها لما حضرتك بتقتل اسبوك واحده
بتروح تسلمها وتاخد 200 الف سي بي اس ولما الوقت يجي 0.45 علشان تسلم البيض
بيجي لحضرتك اوتو انفيت بينبهك انه جه وقت التسليم لو حضرتك عايز تروح
نيجي بقي لطريقة التركيب والاضافة 
اولا حضرتك هتفتح السورس ملف NPC
وتحت اي انبسي تضيف الاكواد دي

كود PHP:
#region VigoQuestEgg
                
case 250:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("hello that quest egg if you have egg.");
                                    
dialog.Text("if you have all egg will finsh quest");
                                    
dialog.Option("Yes I Have Give My Prize."1);
                                    
dialog.Option("Yes I Have BigEgg."2);
                                    
dialog.Option("Sorry I Don't Have All Items."255);
                                    
dialog.Avatar(116);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
DateTime.Now.Minute == 45)
                                    {
                                        if (
client.Inventory.Contains(7100601))//egg
                                        
{
                                            if (
client.Inventory.Contains(7100611))//Vigo
                                            
{
                                                if (
client.Inventory.Contains(7100621))//egg2
                                                
{
                                                    if (
client.Inventory.Contains(7100631))//Vigo
                                                    
{
                                                        if (
client.Inventory.Contains(7100641))//Vigo-gg
                                                        
{

                                                            
client.Inventory.Remove(7100601);
                                                            
client.Inventory.Remove(7100611);
                                                            
client.Inventory.Remove(7100621);
                                                            
client.Inventory.Remove(7100631);
                                                            
client.Inventory.Remove(7100641);
                                                            
client.Inventory.Add(71006501);
                                                            
client.Entity.ConquerPoints += 10000;
                                                            
Conquer_Online_Server.Kernel.SendWorldMessage(new Message("Congratulations! " client.Entity.Name " Has finshed Quest [Vigo] And Reward  SmallPrice."System.Drawing.Color.DarkGrayMessage.Center), Program.GamePool);
                                                        }

                                                        else
                                                        {
                                                            
dialog.Text("Sorry But You Don't Have All Things You Can't finish The Quest");
                                                            
dialog.Option("Ahh sorry."255);
                                                            
dialog.Avatar(116);
                                                            
dialog.Send();
                                                        }
                                                        break;
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry But You Don't Have All Things You Can't finish The Quest");
                                                        
dialog.Option("Ahh sorry."255);
                                                        
dialog.Avatar(116);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                                else
                                                {
                                                    
dialog.Text("Sorry But You Don't Have All Things You Can't finish The Quest.");
                                                    
dialog.Option("Ahh sorry."255);
                                                    
dialog.Avatar(116);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                            else
                                            {
                                                
dialog.Text("Sorry But You Don't Have All Things You Can't finish The Quest.");
                                                
dialog.Option("Ahh sorry."255);
                                                
dialog.Avatar(116);
                                                
dialog.Send();
                                            }
                                            break;
                                        }
                                        else
                                        {
                                            
dialog.Text("Sorry But You Don't Have All Things You Can't finish The Quest.");
                                            
dialog.Option("Ahh sorry."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialog.Text("Sorry You Can Only Claim Your Reward At Minute 45.");
                                        
dialog.Option("Okay sorry Iam Will Waiting."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Inventory.Contains(7100671))
                                    {
                                        
client.Inventory.Remove(7100671);
                                        
client.Entity.ConquerPoints += 20000;
                                    }
                                    else
                                    {
                                        
dialog.Text("You do not have a BigEgg");
                                        
dialog.Send();
                                    }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion  
تمام كده وبعد كده خش
Database/MonsterTable.cs
وبعد كده ابحث علي
كود PHP:
if (Name == "Naga")  
وبعدين ضيف تحته الكود ده
كود PHP:
#region Vigo
            
if (Name == "Birdman")
            {
                
byte times = (byte)Kernel.Random.Next(13);
                
byte ref_times = (byte)Kernel.Random.Next(16);
                for (
byte i 0timesi++)
                {

                    
uint Uid 0;
                    
byte type = (byte)Kernel.Random.Next(140);
                    switch (
type)
                    {
                        case 
1Uid 710060; break;
                        case 
2Uid 710061; break;
                        case 
3Uid 710062; break;
                        case 
4Uid 710063; break;
                        case 
5Uid 710064; break;
                        case 
6Uid 710065; break;
                        
                        


                    }

                    if (
Uid != 0)
                    {
                        
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 Uid;
                            
floorItem.Item.MaximDurability floorItem.Item.Durability 65535;
                            
floorItem.Item.UID Network.GamePackets.ConquerItem.ItemUID.Next;
                            
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;
                            
floorItem.ItemID Uid;
                            
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);
                        }
                    }
                }
            }
            
#endregion  
لحد كده تمام
نروح
نفتح السورس ونفتح ملف world.cs
ونضيف الكود ده

كود PHP:
#region VigoEggQuest
                    
if ((Now64.Minute == 45) && (Now64.Second == 01))
                    {
                        
Kernel.SendWorldMessage(new Message("VigoEggQuest has now you can Give Egg"Color.WhiteMessage.TopLeft), Program.GamePool);

                        
client.MessageBox("VigoEggQuest want Join?",
                                
=> { p.Entity.Teleport(267217217); }, null60);
                    }
                    
#endregion  
تمام كده وبعدين نفتح Sorce/Bin/Dug/Item
ونضيف الاكواد دي

كود PHP:
710060@@RedEasterEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It`s~used~in~the~Lucky~Box~Quest.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@
710061@@GreenEasterEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It
`s~used~in~the~Lucky~Box~Quest.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@ 710062@@BlueEasterEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It`s~used~in~the~Lucky~Box~Quest.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@
710063@@YellowEasterEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It
`s~used~in~the~Lucky~Box~Quest.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@ 710064@@WhiteEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It`s~got~from~Tracy~and~used~for~exchange~for~other~Striped~Eggs.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@
710065@@RedStripedEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It
`s~used~in~the~Easter~Egg~Exchange~Quest.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@ 710066@@PurpleStripedEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[2010Easter]@@It`s~used~in~the~Easter~Egg~Exchange~Quest.@@5@@0@@0@@0@@0@@500@@0@@0@@0@@0@@
710067@@YellowStripedEgg@@0@@0@@0@@0@@0@@0@@0@@0@@3@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0  
وبعد
كده نضيف ده في النافي كات

كود PHP:
10020    0    0    Beautician    5    250    -1    1002    331    231    0    0    0    0    0    0    0    0    0    0    0    0    None    0    0    0    0    0  
وكده تم الانتهاء 

هل أعجبك الموضوع؟! ↓
بضغطة زر تشارك الفائدة وتدعم هاى تك

عوادي الياس

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

0 التعليقات