قديم 2019-08-02, 08:11 PM
المشاركة 13
محمد ياسر
*
  • غير متواجد
افتراضي رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
شوف الرابط التاني وده متجرب وساحبه من سورسي كنت شغال عليه

قديم 2019-08-02, 08:12 PM
المشاركة 14
محمد ياسر
*
  • غير متواجد
افتراضي رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
يخلص الانبي سهاات واقفل الموضوع قولنا للمره الالف ممنوع عددة مشاكل في الموضوع الواحد

قديم 2019-08-03, 01:48 AM
المشاركة 15
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
تم طلب 3 ان بي سي هات
________________________
1 وينج و تيتل

هندخل علي PacketHandler.cs

هنبحث عن
كود:
 public static void LoginMessages

تحتها هنضيف

كود:
new TitleStorage().GetAll(client); 

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

هنضيف ده

كود:
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

هنضيف ده

كود:
 public bool haveallTitles false

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

كود:
#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-اضافت اولين بوينت لي السلفرات السهلا رجاء تحديد مقصود بالاضافه

كود:
   #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 



العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
فى التوبات عايز الايميل لما يقفل يفتح فى التون مش فى نفس المكان essamarpi1 مشكلات السيرفيرات كونكر الشخصيه 4 2020-05-11 01:42 PM
شباب عايز حل المشكله دي بسرعه بعد ما ظبط السوس وقعد شهر يطلع المشاكل دي عايز حل بسرعه Tyranny-Team's مشكلات السيرفيرات كونكر الشخصيه 1 2020-04-19 05:59 AM
لو سمحت محتاج مساعدة انا محتاج اتعلم ازاى اعدل على سورسات كونكر وافكسدها fersony مشكلات السيرفيرات كونكر الشخصيه 2 2020-03-09 01:46 PM
رجاء اقراء الموضوع ElSaher قسم الاقتراحات والابداع 0 2019-09-19 01:57 PM


الساعة الآن 08:33 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.