منتدي اكواد

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

محمد ياسر 2020-05-13 11:30 PM

كوسته فوانيس رمضان
 


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

صوره للكوسته
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

كفايه صور ندخل علي الشرح
الشرح

هي المهمه تافه وبسيطه بس حبيت انزلكم حاجه كده بخصوص رمضان واسف اني اتاخرت عليه
ده كوسته يوميه بتتعمل مره واحده في اليوم بتروح عند الراج الي في اول الصوره بيوديك عند فوانيس الي في تاني صوره المهم الفانوس ايطلب منك 50 كل من كل واحش في المدينه علي حسب المدينه الي انت فيه والوحش ده بيكون محدد مش اي وحش تضربه ايتحسب لازم الوحش الي الفانوس ايويدك عندها اول ما تجمع ال 50 كل ترجعله تاني ايوديك لمدينه الي بعدها وهكذا هي 5 مدن وا اول ماتخلص الفانوس ايرجعك تاني لراجل الي في التون وتستلم الجايزها

الاضافه

في كلاس NPCS

كود PHP:

 #region Ramadan lantern
                #region Ramadan
                
case 15518:// انبي سي بداء المهمه
                    
{
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {

                                    
dialog.Text("Hello " client.Entity.Name " every year and you are fine on the occasion of Ramadan, the Holy month. Do you want to start the mission and get the blessings of Ramadan?.");
                                    
dialog.Option("Starting lanterns."1);
                                    
dialog.Option("How to complete the mission?"2);
                                    
dialog.Option("Get the prize."3);
                                    
dialog.Option("I'll think it over."255);
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.event2 == 0)
                                    {

                                      
                                         
client.Entity.Teleport(1002332551);
                                            
                                      
                                    }
                                    else
                                    {
                                        
dialog.Text("You have completed the mission today. Please wait until 12 pm.");
                                        
dialog.Option("OK thanks."255);
                                        
dialog.Avatar(51);
                                        
dialog.Send();
                                    }

                                    break;
                                }
                            case 
2:
                                {
                                    
dialog.Text("You will go to all 6 cities and light the lanterns by killing the required monsters.");
                                    
dialog.Option("Oh It's Ok Thanks."255);
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Entity.prizeLantern == 5)
                                    {
                                        
dialog.Text("Congratulations, I got 50,000 cps");
                                        
dialog.Option("Thanks."255);
                                        
client.Entity.ConquerPoints += 50000;
                                        
client.Entity.prizeLantern 0;
                                        
client.Entity.event2 1;
                                        
_String str = new _String(true);
                                        
str.UID client.Entity.UID;
                                        
str.Type _String.Effect;
                                        
str.Texts.Add("break_start");
                                        
str.TextsCount 1;
                                        
client.Entity.SendScreen(str);
                                    }
                                    else {
                                        
dialog.Text("You must complete the lighting tasks of the lamps first.");
                                        
dialog.Option("Oh It's Ok Thanks."255);
                                    }
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #region lantern1
                
case 1555:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    if (
client.Entity.event2 == 0)
                                    {
                                        
dialog.Text("Hello " client.Entity.Name " your kill " client.Entity.Lantern1 " you need 50 kill Pheasant.");
                                        
dialog.Option("Next Lantern."1);
                                        
dialog.Option("Go to kill?"2);
                                        
dialog.Option("I'll think it over."255);
                                        
dialog.Avatar(51);
                                        
dialog.Send();
                                        break;

                                    }
                                    else
                                    {
                                        
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"You have completed the mission today!");
                                        
client.Send(npc.ToArray());
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.Lantern1 >= 50)
                                    {
                                        if (
client.Entity.prizeLantern == 0)
                                        {
                                            
client.Entity.Teleport(1011190268);
                                            
client.Entity.prizeLantern 1;
                                        }
                                        else {
                                            
dialog.Text("You can not complete this delusion now.");
                                        }

                                    }
                                    else {
                                        
dialog.Text("You have not yet completed the 50 killed.");
                                        
dialog.Option("Oh yes, I'm sorry."255);
                                    }
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;

                                   

                                }
                                case 
2:
                                {
                                    
client.Entity.Teleport(1002561371);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #region lantern2
                
case 1556:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    if (
client.Entity.event2 == 0)
                                    {
                                        
dialog.Text("Hello " client.Entity.Name " your kill " client.Entity.Lantern2 " you need 50 kill Bandit.");
                                        
dialog.Option("Next Lantern."1);
                                        
dialog.Option("Go to kill?"2);
                                        
dialog.Option("I'll think it over."255);
                                        
dialog.Avatar(51);
                                        
dialog.Send();
                                        break;

                                    }
                                    else
                                    {
                                        
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"You have completed the mission today!");
                                        
client.Send(npc.ToArray());
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.Lantern2 >= 50)
                                    {
                                        if (
client.Entity.prizeLantern == 1)
                                        {
                                            
client.Entity.Teleport(1020567589);
                                            
client.Entity.prizeLantern 2;
                                        }
                                        else
                                        {
                                            
dialog.Text("You can not complete this delusion now.");
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You have not yet completed the 50 killed.");
                                        
dialog.Option("Oh yes, I'm sorry."255);
                                    }
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;



                                }
                            case 
2:
                                {
                                    
client.Entity.Teleport(1011206361);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #region lantern3
                
case 1557:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    if (
client.Entity.event2 == 0)
                                    {
                                        
dialog.Text("Hello " client.Entity.Name " your kill " client.Entity.Lantern3 " you need 50 kill Macaque.");
                                        
dialog.Option("Next Lantern."1);
                                        
dialog.Option("Go to kill?"2);
                                        
dialog.Option("I'll think it over."255);
                                        
dialog.Avatar(51);
                                        
dialog.Send();
                                        break;

                                    }
                                    else
                                    {
                                        
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"You have completed the mission today!");
                                        
client.Send(npc.ToArray());
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.Lantern3 >= 50)
                                    {
                                        if (
client.Entity.prizeLantern == 2)
                                        {
                                            
client.Entity.Teleport(1000471649);
                                            
client.Entity.prizeLantern 3;
                                        }
                                        else
                                        {
                                            
dialog.Text("You can not complete this delusion now.");
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("You have not yet completed the 50 killed.");
                                        
dialog.Option("Oh yes, I'm sorry."255);
                                    }
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;



                                }
                            case 
2:
                                {
                                    
client.Entity.Teleport(1020583647);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #region lantern4
                
case 1558:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    if (
client.Entity.event2 == 0)
                                    {
                                        
dialog.Text("Hello " client.Entity.Name " your kill " client.Entity.Lantern4 " you need 50 kill SandMonster.");
                                        
dialog.Option("Next Lantern."1);
                                        
dialog.Option("Go to kill?"2);
                                        
dialog.Option("I'll think it over."255);
                                        
dialog.Avatar(51);
                                        
dialog.Send();
                                        break;

                                    }
                                    else
                                    {
                                        
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"You have completed the mission today!");
                                        
client.Send(npc.ToArray());
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.Lantern4 >= 50)
                                    {
                                        if (
client.Entity.prizeLantern == 3)
                                        {
                                            
client.Entity.Teleport(1015722576);
                                            
client.Entity.prizeLantern 4;
                                        }
                                        else
                                        {
                                            
dialog.Text("You can not complete this delusion now.");
                                        }
                                        
                                    }
                                    else
                                    {
                                        
dialog.Text("You have not yet completed the 50 killed.");
                                        
dialog.Option("Oh yes, I'm sorry."255);
                                    }
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;



                                }
                            case 
2:
                                {
                                    
client.Entity.Teleport(1000618650);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #region lantern5
                
case 1559:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    if (
client.Entity.event2 == 0)
                                    {
                                        
dialog.Text("Hello " client.Entity.Name " your kill " client.Entity.Lantern5 " you need 50 kill Bridman.");
                                        
dialog.Option("Next Lantern."1);
                                        
dialog.Option("Go to kill?"2);
                                        
dialog.Option("I'll think it over."255);
                                        
dialog.Avatar(51);
                                        
dialog.Send();
                                        break;

                                    }
                                    else
                                    {
                                        
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6"You have completed the mission today!");
                                        
client.Send(npc.ToArray());
                                    }
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.Lantern5 >= 50)
                                    {
                                        if (
client.Entity.prizeLantern == 4)
                                        {
                                            
client.Entity.Teleport(1002365363);
                                            
client.Entity.prizeLantern 5;
                                        }
                                        else
                                        {
                                            
dialog.Text("You can not complete this delusion now.");
                                                
dialog.Option("Oh yes, I'm sorry."255);
                                        }

                                    }
                                    else
                                    {
                                        
dialog.Text("You have not yet completed the 50 killed.");
                                        
dialog.Option("Oh yes, I'm sorry."255);
                                    }
                                    
dialog.Avatar(51);
                                    
dialog.Send();
                                    break;



                                }
                            case 
2:
                                {
                                    
client.Entity.Teleport(1015748720);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion
                #endregion 

في كلاس MonsteTable
ابحث عن
كود PHP:

public void Drop(Game.Entity killer

تحت الكوس ارمي دول
كود PHP:

#region quest Lantern
            
if (Name == "Pheasant" && killer.MapID == 1002)
             {
                
killer.Lantern1 += 1;
             }
            if (
Name == "Bandit")
            {
                
killer.Lantern2 += 1;
            }
            if (
Name == "Macaque")
            {
                
killer.Lantern3 += 1;
            }
            if (
Name == "SandMonster")
            {
                
killer.Lantern4 += 1;
            }
            if (
Name == "Birdman")
            {
                
killer.Lantern5 += 1;
            }

            
#endregion 

في كلاس
Entity.cs
ضيف دول
كود PHP:


#region Ramadan lantern
public uint event2;
        public 
Time32 event2Stamp;
        public 
uint Lantern1 0;
        public 
uint Lantern2 0;
        public 
uint Lantern3 0;
        public 
uint Lantern4 0;
        public 
uint Lantern5 0;
       
// public uint Lantern6 = 0;
        
public uint prizeLantern 0;
        
#endregion 

في كلاس
EntityTable.cs
ابحث عن
كود PHP:

client.Entity.BoundCps reader.ReadUInt32("boundcps"); 

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

client.Entity.event2 reader.ReadByte("event2"); 

في نفس الكلاس ابحث عن
كود PHP:

.Set("Money"e.Money

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

.Set("event2"e.event2

في نفس الكلاس ابحث عن
كود PHP:

client.ExpBalls 0

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

client.Entity.event2 0

ده علشان لما ترستل القنصل المهام اليوميه ترجع الاضافه ده لسورس رايزو فقط لكن لو اي سورس حط اي كود من التحويل وحدد الوقت بس كده لكن الاضافه الاخيرها لرايزو ياريت تكونوا ختوا بالكم من ده

شغل السورس خلص
في كلاس world
ابحث عن
كود PHP:

 private void WorldTournaments(int time

تحت القوس ارمي الكود ده
كود PHP:

 if (Now64.Hour == 00 && Now64.Minute == 00 && Now64.Second <= 00)
            {
                
Program.CommandsAI("@restart");
            } 

ده علشان الفنصل يرستل مع الساعه 1 الليل

ندخل لشغل القاعدها
في جدول
entities
حط صف جديد باسم event2

في جدول npc
حط دول
كود PHP:

15518 Ramadan lanterns 2 8460 1002 364 358 
1555 RamdanTwinCity 2 34410 1002 332 547
1556 RamdanPhoenix 2 34410 1011 189 271
1557 RamdanApy 2 34410 1020 568 586
1558 RamdanDesert 2 34410 1000 471 643
1559 Ramdanlast 2 34410 1015 722 574 

بس كده الاضافه سهله ومفهاش حاجه

Users 2020-05-14 12:33 AM

رد: كوسته فوانيس رمضان
 
عااااااش يا حزومىى

محمد ياسر 2020-05-14 12:40 AM

رد: كوسته فوانيس رمضان
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Mr~Rayzo (المشاركة 43455)
عااااااش يا حزومىى

pحبيبي

ALz3em 2020-05-14 01:57 AM

رد: كوسته فوانيس رمضان
 
تسلم يامدير


الساعة الآن 03:44 PM

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