منتدي اكواد

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

Hassan Emprator 2019-07-08 07:58 AM

كويست Letters
 
السلام عليكم كويستت الليترز جميله وانشاء الله تعجبكو يله نبدا


اول حاجه هنفتح كلاس Npc وي نحط دا فيه

كود PHP:

#region [Quest Letters]
                
case 131312:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("Good job man you are strong man ,So What brought?");
                                    
dialog.Option("Swap C.O.N.Q.U.E.R"50);
                                    
dialog.Option("Swap C.O.N.Q.U.E.R.9."40);
                                    
dialog.Option("i`ll pass."255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                            
{
                                                                
dialog.Text("Good job man you are strong man ,So What brought?");
                                                                
dialog.Option("Swap C.O.N.Q.U.E.R"50);
                                                                
dialog.Option("Swap C.O.N.Q.U.E.R.9."40);
                                                                
dialog.Option("i`ll pass."255);
                                                                
dialog.Send();
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                
dialog.Option("Oh, sorry."255);
                                                                
dialog.Send();
                                                            }
                                    break;
                                }
                            case 
50:
                                {
                                    if (
client.Entity.Level 134 && client.Entity.First == 0)
                                    {
                                        if (
client.Inventory.Contains(7112141) || client.Inventory.Contains(7112151) || client.Inventory.Contains(7112161) || client.Inventory.Contains(7112171) || client.Inventory.Contains(7112181) || client.Inventory.Contains(7112191) || client.Inventory.Contains(7112201))
                                        {
                                            
dialog.Text("Well done! Now what would you like to claim?");
                                            
dialog.Option("10.000 CPs"110);
                                            
dialog.Option("70 OnlineTrainingPoints [OTP`s]"111);
                                            
dialog.Option("50000 Chi Points"112);
                                            
dialog.Option("SacredRefinery"172);
                                            
dialog.Send();
                                        }
                                        else
                                        {
                                            
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                            
dialog.Option("Oh, sorry."255);
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Sorry There isn't level 135 or more or you make it come back tommorrow!");
                                        
dialog.Option("okay"255);
                                        break;
                                    }
                                    break;
                                }
                            case 
172:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                            
{
                                                                
client.Inventory.Remove(7112141);
                                                                
client.Inventory.Remove(7112151);
                                                                
client.Inventory.Remove(7112161);
                                                                
client.Inventory.Remove(7112171);
                                                                
client.Inventory.Remove(7112181);
                                                                
client.Inventory.Remove(7112191);
                                                                
client.Inventory.Remove(7112201);
                                                                
client.Inventory.Add(300424901);
                                                                
client.Entity.First 1;
                                                                
client.Entity.Update(_String.Effect"end_task"true);
                                                                
dialog.Text("You`ve received a SacredRefinery");
                                                                
dialog.Send();
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                
dialog.Option("Oh, sorry."255);
                                                                
dialog.Send();
                                                            }
                                    break;
                                }
                            case 
112:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                            
{
                                                                
client.Inventory.Remove(7112141);
                                                                
client.Inventory.Remove(7112151);
                                                                
client.Inventory.Remove(7112161);
                                                                
client.Inventory.Remove(7112171);
                                                                
client.Inventory.Remove(7112181);
                                                                
client.Inventory.Remove(7112191);
                                                                
client.Inventory.Remove(7112201);
                                                                
client.ChiPoints += 50000;
                                                                
client.Entity.First 1;
                                                                
client.Entity.Update(_String.Effect"end_task"true);
                                                                
dialog.Text("You`ve received 50000 Chi Points");
                                                                
dialog.Send();
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                
dialog.Option("Oh, sorry."255);
                                                                
dialog.Send();
                                                            }
                                    break;
                                }
                            case 
111:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                            
{
                                                                
client.Inventory.Remove(7112141);
                                                                
client.Inventory.Remove(7112151);
                                                                
client.Inventory.Remove(7112161);
                                                                
client.Inventory.Remove(7112171);
                                                                
client.Inventory.Remove(7112181);
                                                                
client.Inventory.Remove(7112191);
                                                                
client.Inventory.Remove(7112201);
                                                                
client.Entity.OnlinePoints += 70;
                                                                
client.Entity.First 1;
                                                                
client.Entity.Update(_String.Effect"end_task"true);
                                                                
dialog.Text("You`ve received 70 OnlineTrainingPoints");
                                                                
dialog.Send();
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                
dialog.Option("Oh, sorry."255);
                                                                
dialog.Send();
                                                            }
                                    break;
                                }
                            case 
110:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                            
{
                                                                
client.Inventory.Remove(7112141);
                                                                
client.Inventory.Remove(7112151);
                                                                
client.Inventory.Remove(7112161);
                                                                
client.Inventory.Remove(7112171);
                                                                
client.Inventory.Remove(7112181);
                                                                
client.Inventory.Remove(7112191);
                                                                
client.Inventory.Remove(7112201);
                                                                
client.Entity.ConquerPoints += 10000;
                                                                
client.Entity.First 1;
                                                                
client.Entity.Update(_String.Effect"end_task"true);
                                                                
dialog.Option("You`ve received 50.000 CPs"112);
                                                                
dialog.Send();
                                                            }
                                                            else
                                                            {
                                                                
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                
dialog.Option("Oh, sorry."255);
                                                                
dialog.Send();
                                                            }
                                    break;
                                }
                            case 
40:
                                {
                                    if (
client.Entity.Level 134 && client.Entity.First == 0)
                                    {
                                        if (
client.Inventory.Contains(7112141) || client.Inventory.Contains(7112151) || client.Inventory.Contains(7112161) || client.Inventory.Contains(7112171) || client.Inventory.Contains(7112181) || client.Inventory.Contains(7112191) || client.Inventory.Contains(7112201) || client.Inventory.Contains(7112211))
                                        {
                                            
dialog.Text("Well done! Now what would you like to claim?");
                                            
dialog.Option("50.000 CPs"150);
                                            
dialog.Option("100 OnlineTrainingPoints [OTP`s]"140);
                                            
dialog.Option("P7EquipmentSoulPack"130);
                                            
dialog.Option("P7WeaponSoulPack"120);
                                            
dialog.Option("SacredRefinery"220);
                                            
dialog.Send();
                                        }
                                        else
                                        {
                                            
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                            
dialog.Option("Oh, sorry."255);
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        
dialog.Text("Sorry There isn't level 135 or more or you make it come back tommorrow!");
                                        
dialog.Option("okay"255);
                                        break;
                                    }
                                    break;
                                }
                            case 
220:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                                
if (client.Inventory.Contains(7112211))//9
                                                                
{
                                                                    
client.Inventory.Remove(7112141);
                                                                    
client.Inventory.Remove(7112151);
                                                                    
client.Inventory.Remove(7112161);
                                                                    
client.Inventory.Remove(7112171);
                                                                    
client.Inventory.Remove(7112181);
                                                                    
client.Inventory.Remove(7112191);
                                                                    
client.Inventory.Remove(7112201);
                                                                    
client.Inventory.Remove(7112211);
                                                                    
client.Inventory.Add(300424901);
                                                                    
client.Entity.First 1;
                                                                    
client.Entity.Update(_String.Effect"end_task"true);
                                                                    
PacketHandler.WorldMessage("Congratulations! " client.Entity.Name "! Give Letter C,O,N,Q,U,E,R,9 And Get SacredRefinery");
                                                                }
                                                                else
                                                                {
                                                                    
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                    
dialog.Option("Oh, sorry."255);
                                                                    
dialog.Send();
                                                                }
                                    break;
                                }
                            case 
120:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                                
if (client.Inventory.Contains(7112211))//9
                                                                
{
                                                                    
client.Inventory.Remove(7112141);
                                                                    
client.Inventory.Remove(7112151);
                                                                    
client.Inventory.Remove(7112161);
                                                                    
client.Inventory.Remove(7112171);
                                                                    
client.Inventory.Remove(7112181);
                                                                    
client.Inventory.Remove(7112191);
                                                                    
client.Inventory.Remove(7112201);
                                                                    
client.Inventory.Remove(7112211);
                                                                    
client.Inventory.Add(300424701);
                                                                    
client.Entity.First 1;
                                                                    
client.Entity.Update(_String.Effect"end_task"true);
                                                                    
PacketHandler.WorldMessage("Congratulations! " client.Entity.Name "! Give Letter C,O,N,Q,U,E,R,9 And Get P7WeaponSoulPack");
                                                                }
                                                                else
                                                                {
                                                                    
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                    
dialog.Option("Oh, sorry."255);
                                                                    
dialog.Send();
                                                                }
                                    break;
                                }
                            case 
130:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                                
if (client.Inventory.Contains(7112211))//9
                                                                
{
                                                                    
client.Inventory.Remove(7112141);
                                                                    
client.Inventory.Remove(7112151);
                                                                    
client.Inventory.Remove(7112161);
                                                                    
client.Inventory.Remove(7112171);
                                                                    
client.Inventory.Remove(7112181);
                                                                    
client.Inventory.Remove(7112191);
                                                                    
client.Inventory.Remove(7112201);
                                                                    
client.Inventory.Remove(7112211);
                                                                    
client.Inventory.Add(300424801);
                                                                    
client.Entity.First 1;
                                                                    
client.Entity.Update(_String.Effect"end_task"true);
                                                                    
PacketHandler.WorldMessage("Congratulations! " client.Entity.Name "! Give Letter C,O,N,Q,U,E,R,9 And Get P7EquipmentSoulPack");
                                                                }
                                                                else
                                                                {
                                                                    
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                    
dialog.Option("Oh, sorry."255);
                                                                    
dialog.Send();
                                                                }
                                    break;
                                }
                            case 
140:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                                
if (client.Inventory.Contains(7112211))//9
                                                                
{
                                                                    
client.Inventory.Remove(7112141);
                                                                    
client.Inventory.Remove(7112151);
                                                                    
client.Inventory.Remove(7112161);
                                                                    
client.Inventory.Remove(7112171);
                                                                    
client.Inventory.Remove(7112181);
                                                                    
client.Inventory.Remove(7112191);
                                                                    
client.Inventory.Remove(7112201);
                                                                    
client.Inventory.Remove(7112211);
                                                                    
client.Entity.OnlinePoints += 100;
                                                                    
client.Entity.First 1;
                                                                    
client.Entity.Update(_String.Effect"end_task"true);
                                                                    
PacketHandler.WorldMessage("Congratulations! " client.Entity.Name "! Give Letter C,O,N,Q,U,E,R,9 And Get 100 Online Training Points");
                                                                }
                                                                else
                                                                {
                                                                    
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                    
dialog.Option("Oh, sorry."255);
                                                                    
dialog.Send();
                                                                }
                                    break;
                                }
                            case 
150:
                                {
                                    if (
client.Inventory.Contains(7112141))//C
                                        
if (client.Inventory.Contains(7112151))//O
                                            
if (client.Inventory.Contains(7112161))//N
                                                
if (client.Inventory.Contains(7112171))//Q
                                                    
if (client.Inventory.Contains(7112181))//U
                                                        
if (client.Inventory.Contains(7112191))//E
                                                            
if (client.Inventory.Contains(7112201))//R
                                                                
if (client.Inventory.Contains(7112211))//9
                                                                
{
                                                                    
client.Inventory.Remove(7112141);
                                                                    
client.Inventory.Remove(7112151);
                                                                    
client.Inventory.Remove(7112161);
                                                                    
client.Inventory.Remove(7112171);
                                                                    
client.Inventory.Remove(7112181);
                                                                    
client.Inventory.Remove(7112191);
                                                                    
client.Inventory.Remove(7112201);
                                                                    
client.Inventory.Remove(7112211);
                                                                    
client.Entity.ConquerPoints += 50000;
                                                                    
client.Entity.First 1;
                                                                    
client.Entity.Update(_String.Effect"end_task"true);
                                                                    
PacketHandler.WorldMessage("Congratulations! " client.Entity.Name "! Give Letter C,O,N,Q,U,E,R,9 And Get 50.000 CPS");
                                                                }
                                                                else
                                                                {
                                                                    
dialog.Text("I believe you`ve missed some letter or so, please come again with C.O.N.Q.U.E.R 9 letter");
                                                                    
dialog.Option("Oh, sorry."255);
                                                                    
dialog.Send();
                                                                }
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 

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

كود PHP:

#region ConquerLetters
                    
if (Name == "Pheasant")
                    {
                        if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71121401);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71121501);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71121601);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71121701);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71121801);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71121901);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71122101);
                        }
                        else if (
Kernel.Rate(1) && Kernel.Rate(40))
                        {
                            
killer.Owner.Inventory.Add(71122001);
                        }
                    }
                    
#endregion 

دعوه حلوه بقلا

محمد ياسر 2019-07-08 08:12 AM

رد: كويست Letters
 
الله ينور


الساعة الآن 04:09 AM

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