منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع (https://code.vpscairo.com/showthread.php?t=1290)

ElSaher 2019-08-02 07:18 PM

محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
علشان انا زهقت كل شويا يتقفلي موضوع وربنه زهقت
اول حاجا عايز npcيفتح wing and tita
وا npc راجل يبدل 4توكن وار بي كاس وا نفس الكلام عايز اخلي الوار يدي توكن
وا اضافت اولين بوينت لي السلفرات السهلا
وا حل مشكلة ان الفايبي 7 مش بيدي اي حاجا خالص ولما بحثت عليه في game state في سورس مار بندا الي نزلو فيروس
مش لاقيه ولا لاقي اي حاجا

ElSaher 2019-08-02 07:22 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
وعايز npc الوحوش كامله

محمد ياسر 2019-08-02 07:29 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
كل ده موجود في قسم التطوير

ElSaher 2019-08-02 07:43 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
مش لاقي يعني يا حازم

محمد ياسر 2019-08-02 07:49 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
ازاي مش موجودين ياجدع هههه

ElSaher 2019-08-02 07:50 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
طيب هتلي المواضيع بتاعتهم

محمد ياسر 2019-08-02 08:01 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
https://code.vpscairo.com/showthread.php?t=1047

https://code.vpscairo.com/showthread.php?t=1083
https://code.vpscairo.com/showthread.php?t=400

ElSaher 2019-08-02 08:02 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
اول واحد مش كامل بتاع الونج

محمد ياسر 2019-08-02 08:03 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
دانت الي منزله علي فكره

محمد ياسر 2019-08-02 08:06 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
https://code.vpscairo.com/showthread...ighlight=Wings

ElSaher 2019-08-02 08:10 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
يا حوبي يا حازم الموضوع بردو مش كامل انا عايزو يدي الونج وا التيتن

ElSaher 2019-08-02 08:11 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
,
  1. وعايز موضوع بتاع الوحوش كامل

محمد ياسر 2019-08-02 08:11 PM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
شوف الرابط التاني وده متجرب وساحبه من سورسي كنت شغال عليه

محمد ياسر 2019-08-02 08:12 PM

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

Tefa 2019-08-03 01:48 AM

رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
 
تم طلب 3 ان بي سي هات
________________________
1 وينج و تيتل

هندخل علي PacketHandler.cs

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

 public static void LoginMessages

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

new TitleStorage().GetAll(client); 

بعدها هندخل علي Wardrobe.cs

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

public void GetAll(Client.GameState client)
        {
            foreach (var 
title in Database.WardrobeTable.Titles.Values)
            {
                
AddTitle(client, (short)title.Type, (short)title.IDfalse);
            }
            
client.Entity.haveallTitles true;
        } 

هنروح علي Entity.cs

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

 public bool haveallTitles false

كده اول ما اي حد يفتح عندك هياخد الوينج و التيتل كاملين
---------------------------------------------------------------------
وا npc راجل يبدل 4توكن وار بي كاس
كود PHP:

#region Prize Seller
                            
case 200033:
                                {
                                    switch (
npcRequest.OptionID)
                                    {
                                        case 
0:
                                            {
                                                
dialog.Text("Greetings! I'm a great seller, I have the most precious items in the entire ");
                                                
dialog.Text("world. What do you want to get?");
                                                
dialog.Option("GoldPrize [4 LordTokens]"1);
                                                
//dialog.Option("Super|Cup| [2 LordTokens]", 2);
                                                //dialog.Option("Elite|Cup| [1 LordTokens]", 3);
                                                
dialog.Option("Just passing by."255);
                                                
dialog.Avatar(85);
                                                
dialog.Send();
                                                break;
                                            }
                                        case 
1:
                                            {
                                                if (
client.Inventory.Contains(7234674))
                                                {
                                                    
client.Inventory.Remove(7234674);
                                                    
client.Inventory.Add(21000750000001true);
                                                }
                                                else
                                                {
                                                    
dialog.Text("You don't have enough 3 LordTokens ");
                                                    
dialog.Option("I see."255);
                                                    
dialog.Avatar(85);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
2:
                                            {
                                                if (
client.Inventory.Contains(7234672))
                                                {
                                                    
client.Inventory.Remove(7234672);
                                                    
client.Inventory.Add(21000850000001true);
                                                }
                                                else
                                                {
                                                    
dialog.Text("You don't have enough 2 LordTokens ");
                                                    
dialog.Option("I see."255);
                                                    
dialog.Avatar(85);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
3:
                                            {
                                                if (
client.Inventory.Contains(7234671))
                                                {
                                                    
client.Inventory.Remove(7234671);
                                                    
client.Inventory.Add(21000650000001true);
                                                }
                                                else
                                                {
                                                    
dialog.Text("You don't have enough 1 LordTokens ");
                                                    
dialog.Option("I see."255);
                                                    
dialog.Avatar(85);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
4:
                                            {
                                                if (
client.Inventory.Contains(7234672))
                                                {
                                                    
client.Inventory.Remove(7234672);
                                                    
client.Inventory.Add(21000650000001true);
                                                }
                                                else
                                                {
                                                    
dialog.Text("You don't have enough 2 LordTokens !");
                                                    
dialog.Option("I see."255);
                                                    
dialog.Avatar(85);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                        case 
5:
                                            {
                                                if (
client.Inventory.Contains(7234671))
                                                {
                                                    
client.Inventory.Remove(7234671);
                                                    
client.Inventory.Add(21000550000001true);
                                                }
                                                else
                                                {
                                                    
dialog.Text("You don't have enough 1 LordTokens !");
                                                    
dialog.Option("I see."255);
                                                    
dialog.Avatar(85);
                                                    
dialog.Send();
                                                }
                                                break;
                                            }
                                    }
                                    break;
                                }
                            
#endregion 

-----------------------------------------------------------------------------------
3-اضافت اولين بوينت لي السلفرات السهلا رجاء تحديد مقصود بالاضافه
كود PHP:

   #region online points
                
case 1212129:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("IaM Online Points Master You Are Get 1 Points For online to 1 Mint You have " client.Entity.OnlinePoints " Point!");
                                  
//  dialog.Option("Check My Piontes.", 1);
                                    
dialog.Option("1 Online Points For MeteorScroll."7);
                                   
// dialog.Option("Union 1 OnlinePoints..", 8);
                                    
dialog.Option("60 Online Points For ( VIP 2 )."2);
                                    
dialog.Option("120 Online Points For ( VIP 3 )."3);
                                    
dialog.Option("300 Online Points For ( VIP 4 )."4);
                                    
dialog.Option("60 Online Points For ( 50k cps )."5);
                                    
dialog.Option("10 Online Points For ( ToughDrill[2-Soc] )."6);
                                    
// dialog.Option("30 Online Points For ( 1 SvageBone[P7] ).", 9);
                                    // dialog.Option("600 Online Points For ( Vip4 1day ).", 10);
                                    
dialog.Option("1500 Online Points For ( Mount:WFC(Strike&imm) )."11);
                                    
dialog.Option("1000 Online Points For ( Germant:Freedomsuit(strike&imm) )."12);
                                    
dialog.Option("Meh!"255);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
dialog.Text(" I see you have " client.Entity.OnlinePoints " Online Points");
                                    
dialog.Option("Oh I See!."255);
                                    
dialog.Send();

                                    break;
                                }
                            case 
2:
                                {
                                    if (
client.Entity.VIPLevel == 1)
                                    {
                                        
uint cost 60;
                                        if (
client.Entity.OnlinePoints >= cost)
                                        {
                                            
client.Entity.OnlinePoints -= cost;

                                            
client.Entity.VIPLevel 2;
                                            
dialog.Text("Congratulations. You Get  VIP 2 for " cost "  Points.");
                                            
dialog.Option("Thank you."255);
                                        }
                                        else
                                        {
                                            
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                            
dialog.Option("Sorry "255); dialog.Send();
                                        }
                                    }
                                    break;
                                }
                            case 
3:
                                {
                                    if (
client.Entity.VIPLevel == 2)
                                    {
                                        
uint cost 120;
                                        if (
client.Entity.OnlinePoints >= cost)
                                        {
                                            
client.Entity.OnlinePoints -= cost;

                                            
client.Entity.VIPLevel 3;
                                            
dialog.Text("Congratulations. You Get  VIP 3 for " cost "  Points.");
                                            
dialog.Option("Thank you."255);
                                        }
                                        else
                                        {
                                            
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                            
dialog.Option("Sorry "255); dialog.Send();
                                        }
                                    }
                                    break;
                                }
                            case 
4:
                                {
                                    if (
client.Entity.VIPLevel == 3)
                                    {
                                        
uint cost 300;
                                        if (
client.Entity.OnlinePoints >= cost)
                                        {
                                            
client.Entity.OnlinePoints -= cost;

                                            
client.Entity.VIPLevel 4;
                                            
dialog.Text("Congratulations. You Get  VIP 4 for " cost "  Points.");
                                            
dialog.Option("Thank you."255);
                                        }
                                        else
                                        {
                                            
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                            
dialog.Option("Sorry "255); dialog.Send();
                                        }
                                    }
                                    break;
                                }
                            case 
5:
                                {
                                    
uint cost 60;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Entity.ConquerPoints += 50000;
                                        
dialog.Text("Congratulations. You Get  50k cps for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }
                                    break;
                                }
                            case 
6:
                                {
                                    
uint cost 10;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Inventory.Add(120000501);
                                        
dialog.Text("Congratulations. You Get  ToughDrill for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }
                                    break;
                                }
                            case 
7:
                                {
                                    
uint cost 1;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Inventory.Add(72002701);
                                        
dialog.Text("Congratulations. You Get MeteorScroll for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }

                                    break;
                                }
                            case 
10:
                                {
                                    
uint cost 600;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Inventory.Add(300412101);
                                        
dialog.Text("Congratulations. You Get Vip4 for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }

                                    break;
                                }
                            case 
11:
                                {
                                    
uint cost 1500;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Inventory.Add(20022101);
                                        
dialog.Text("Congratulations. You Get WingedMount for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }

                                    break;
                                }
                            case 
12:
                                {
                                    
uint cost 1000;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Inventory.Add(19276501);
                                        
dialog.Text("Congratulations. You Get FreedomSuit for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }

                                    break;
                                }
                            case 
8:
                                {
                                    if (
client.Entity.OnlinePoints >= 1)
                                    {
                                        
client.Entity.OnlinePoints -= 1;
                                        
client.Inventory.Add(300711001);
                                    }
                                    else
                                    {
                                        
dialog.Text("Please take 1 OnlinePoints.");
                                        
dialog.Option("I see."255);
                                        
dialog.Avatar(116);
                                        
dialog.Send();
                                    }
                                    break;
                                }
                            case 
9:
                                {
                                    
uint cost 30;
                                    if (
client.Entity.OnlinePoints >= cost)
                                    {
                                        
client.Entity.OnlinePoints -= cost;

                                        
client.Inventory.Add(300418101);
                                        
dialog.Text("Congratulations. You Get SavageBone[P7] for " cost "  Points.");
                                        
dialog.Option("Thank you."255);
                                    }
                                    else
                                    {
                                        
dialog.Text("You Don't Have " cost "Points Come When You Have it ");
                                        
dialog.Option("Sorry "255); dialog.Send();
                                    }

                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 



الساعة الآن 06:17 AM

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