منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   Daily Quests TQ100% (https://code.vpscairo.com/showthread.php?t=212)

محمد ياسر 2019-04-27 10:23 AM

Daily Quests TQ100%
 

كويستايه النهارده Honoring the Ancestors

شرح:

الان بي سي بالحرف الواحد

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

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

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




هتكلم كل واحد و تشوف ايه الجوايز اللي بيديها ، للعلم هتاخد الجايزه اللي مكتوبه بالظبط
و مينفعش تكلم اكتر من مره واحده في اليوم




ملحوظه لازم تقف قدام الان بي سي بالظبط عشان تعمل Honoring



بعد ما عملتها



بتتعمل مره واحده في اليوم او اما السيرفر يترستر

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
بتاخد اكس بي و بلسينج و ستادي بوينتس + التشي توكن

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


نيجي للأكواد

PacketHandler.cs
ضيف دول
كود PHP:

public static void Send_Effect(Client.GameState Clientuint data_8ushort Typeushort directionuint LoopTimestring EffectName

// Send_Effect(Client, 220, 164, 1, 5, "Pick"); 
//38 + 1 + 8 + EffectName.Length = 47 + EffectName.Length 
//Where 38 is the normal 10010 packet length, 1 for the extra byte at offset 38, 8 for the Server Stamp 
byte[] Packet = new byte[47 EffectName.Length]; 
Writer.WriteUInt16((ushort)(Packet.Length 8), 0Packet); 
Writer.WriteUInt16(100102Packet); 
Writer.WriteUInt32(Client.Entity.UID4Packet); 
Writer.WriteUInt32(data_88Packet); 
Writer.WriteUInt16(Type20Packet); 
Writer.WriteUInt16(direction22Packet); 
Writer.WriteUInt32(LoopTime32Packet); 
Writer.WriteByte(137Packet); 
Writer.WriteByte((byte)(EffectName.Length), 38Packet); 
Writer.WriteString(EffectName39Packet); 
Client.Send(Packet); 


في الــEntity.cs
حط ده
كود PHP:

public byte AncestorHonored 0

و في Npc.cs

حتحط ده

كود PHP:

#region DailyQuest [*******]
                #region DailyQuestEnvoy
                
case 1994://my birth date :P
                    
{
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("All hereoesn can talk to me to learn about the daily tasks,");
                                    
dialogs.Text("And go to the required places to accept work");
                                    
dialogs.Option("Honoring The Ancestors[L50]"1);
                                    
dialogs.Option("Everything Has A Price[L60]"2);
                                    
dialogs.Option("Release The Souls[L70]"3);
                                    
dialogs.Option("Magnolias All Around[L80]"4);
                                    
dialogs.Option("Everything Has A Price[L60]"5);
                                    
dialogs.Option("Exorcism[L90]"6);
                                    
dialogs.Option("Spirit Beads.[L100]"7);
                                    
dialogs.Option("Leave."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {

                                    
dialogs.Text("Go to the Ancestral Hall and worship the Ancestors.");
                                    
dialogs.Text("Then you will recive a reward.");
                                    
dialogs.Text("If you've devoted enough, you will have the chance to receive 200 study points and 20 CPS (B) as a bonus Blessing!");
                                    
dialogs.Option("Go to the Ancestral Hall"8);
                                    
dialogs.Option("Leave."255);
                                    
dialogs.Send();
                                    break;

                                }

                            case 
8:
                                {
                                    
client.Entity.Teleport(30815356);
                                    
Kernel.SendWorldMessage(new Message("You were teleported to the Ancestral Hall. what a respectful and solmen place! [Team-Xor]"System.Drawing.Color.WhiteMessage.System), Kernel.GamePool.Values);
                                    break;
                                }


                        }
                        break;
                    }
                
#endregion
                #region Honoring Ancestors
                #region goodmanLui
                
case 1995:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("When You finish i can send you back to town.if you want if you want to back to twin city, I can send you back.");
                                    
dialogs.Option("How to worship them?"1);
                                    
dialogs.Option(" Back to Twin City."2);
                                    
dialogs.Option("Im just passing by."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
dialogs.Text("When You enter the Hall. you will see the images of Nuwa,HuangDi and YanDi , Diffrent Ancestors will grant you diffrent Blessing.");
                                    
dialogs.Option("Worship HuangDi"3);
                                    
dialogs.Option("Worship Nuwa"4);
                                    
dialogs.Option("WorshipYangDi"5);
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();

                                    break;
                                }
                            case 
2:
                                {
                                    
client.Entity.Teleport(1002421377);
                                    break;
                                }

                            case 
3:
                                {
                                    
dialogs.Text("HuangDi is a legendary Chinese sovereign and cultral hero. if you worship him, you'll recieve 60 minutes of EXP, 50 Study points and 1 Chi Token. ");
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();
                                    break;
                                }


                            case 
4:
                                {
                                    
dialogs.Text("Nuwa is known for creating mankind and repairing the wall of heaven . if you worship her, you'll recieve 5 hours of blessing of EXP, 60 minutes of EXP and 1 Chi Token. ");
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();
                                    break;
                                }

                            case 
5:
                                {
                                    
dialogs.Text("YanDi is another Legendary ruler of Ancient China. if you worship him, you'll recieve 5 hours of blessing of EXP, 50 study points and 1 Chi Token. ");
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();
                                    break;
                                }

                        }
                        break;
                    }

                
#endregion
                #region HuanDi
                
case 1996:
                case 
1997:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("HuangDi is a legendary Chinese sovereign and cultral hero. if you worship him, you'll recieve 60 minutes of EXP, 50 Study points and 1 Chi Token. ");
                                    
dialogs.Option("Worship him."1);
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.AncestorHonored == 0)
                                    {
                                        if (
client.Entity.<= 55)
                                        {
                                            
PacketHandler.Send_Effect(client22016415"worship");
                                            
client.IncreaseExperience(client.ExpBalls += 1false);
                                            
client.Entity.SubClasses.StudyPoints += 50;
                                            
client.Inventory.Add(72930401);
                                            
client.Entity.AncestorHonored++;
                                        }
                                        else
                                        {
                                            
dialogs.Text(" You must stand infront of the Ancestor to Honor Him![Team-Xor]");
                                            
dialogs.Send();


                                        }
                                        break;
                                    }
                                    else
                                    {
                                        
dialogs.Text(" you have honored the ancestor today please come back tomorrow");
                                        
dialogs.Send();
                                    }
                                }
                                break;
                        }
                        break;
                    }
                
#endregion
                #region Nuwa
                
case 1998:
                case 
19991:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("Nuwa is known for creating mankind and repairing the wall of heaven . if you worship her, you'll recieve 5 hours of blessing of EXP, 60 minutes of EXP and 1 Chi Token.");
                                    
dialogs.Option("Worship her."1);
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.AncestorHonored == 0)
                                    {
                                        if (
client.Entity.<= 55)
                                        {
                                            
PacketHandler.Send_Effect(client22016415"worship");
                                            
uint value = (uint)(60 60);
                                            
client.AddBless(value);
                                            
client.Entity.Update(Network.GamePackets.Update.OnlineTrainingclient.OnlineTrainingPointsfalse);
                                            
client.Inventory.Add(72930401);
                                            
client.IncreaseExperience(client.ExpBallfalse);
                                            
client.Entity.Update(10"end_task"true);
                                            
client.Entity.AncestorHonored++;

                                        }
                                        else
                                        {
                                            
dialogs.Text(" You must stand infront of the Ancestor to Honor Him![Team-Xor]");
                                            
dialogs.Send();


                                        }
                                    }
                                    else
                                    {
                                        
dialogs.Text(" you have honored the ancestor today please come back tomorrow");
                                        
dialogs.Send();
                                    }
                                    break;
                                }

                        }
                        break;
                    }
                
#endregion
                #region YanDi
                
case 1999:
                case 
199922:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialogs.Text("YanDi is another Legendary ruler of Ancient China. if you worship him, you'll recieve 5 hours of blessing of EXP, 50 study points and 1 Chi Token. ");
                                    
dialogs.Option("Worship him"1);
                                    
dialogs.Option("I see."255);
                                    
dialogs.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    if (
client.Entity.AncestorHonored == 0)
                                    {

                                        if (
client.Entity.<= 55)
                                        {
                                            
PacketHandler.Send_Effect(client22016415"worship");
                                            
uint value = (uint)(60 60);
                                            
client.AddBless(value);
                                            
client.Entity.Update(Network.GamePackets.Update.OnlineTrainingclient.OnlineTrainingPointsfalse);
                                            
client.Inventory.Add(72930401);
                                            
client.Entity.SubClasses.StudyPoints += 50;
                                            
client.Entity.Update(10"end_task"true);
                                            
client.Entity.AncestorHonored++;
                                            
                                        }
                                        else
                                        {
                                            
dialogs.Text(" You must stand infront of the Ancestor to Honor Him![Team-Xor]");
                                            
dialogs.Send();
                                        }


                                    }

                                    else
                                    {
                                        
dialogs.Text(" you have honored the ancestor today please come back tomorrow");
                                        
dialogs.Send();
                                    }


                                    break;

                                }

                        }
                        break;
                    }

                
#endregion
                #endregion
                #endregion 

النافيكات :
كود PHP:

19992    0    0    YanDi    2    19450    -1    3081    61    44
1999    0    0    CenserYandi    2    19490    
-1    3081    63    51
19991    0    0    Nuwa    2    19310    
-1    3081    52    44
1998    0    0    CenserNuwa    2    19490    
-1    3081    54    51
1997    0    0    HuangDi    2    19440    
-1    3081    43    44
1996    0    0    CenserHuangDi    2    19490    
-1    3081    45    51
1994    0    0    DailyQuestEnvoy    2    19930    
-1    1002    426    396 



الساعة الآن 12:50 PM

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