قديم 2019-08-02, 08:10 PM
المشاركة 11
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
يا حوبي يا حازم الموضوع بردو مش كامل انا عايزو يدي الونج وا التيتن

قديم 2019-08-02, 08:11 PM
المشاركة 12
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: محتاج 3npc ومشكلة ومش عايز حد يقفل الموضوع
,
  1. وعايز موضوع بتاع الوحوش كامل

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

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

قديم 2019-08-03, 01:48 AM
المشاركة 15
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: محتاج 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.ID, false);
            }
            
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(723467, 4))
                                                {
                                                    
client.Inventory.Remove(723467, 4);
                                                    
client.Inventory.Add(2100075, 0, 0, 0, 0, 0, 0, 1, true);
                                                }
                                                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(723467, 2))
                                                {
                                                    
client.Inventory.Remove(723467, 2);
                                                    
client.Inventory.Add(2100085, 0, 0, 0, 0, 0, 0, 1, true);
                                                }
                                                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(723467, 1))
                                                {
                                                    
client.Inventory.Remove(723467, 1);
                                                    
client.Inventory.Add(2100065, 0, 0, 0, 0, 0, 0, 1, true);
                                                }
                                                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(723467, 2))
                                                {
                                                    
client.Inventory.Remove(723467, 2);
                                                    
client.Inventory.Add(2100065, 0, 0, 0, 0, 0, 0, 1, true);
                                                }
                                                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(723467, 1))
                                                {
                                                    
client.Inventory.Remove(723467, 1);
                                                    
client.Inventory.Add(2100055, 0, 0, 0, 0, 0, 0, 1, true);
                                                }
                                                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(1200005, 0, 1);
                                        
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(720027, 0, 1);
                                        
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(3004121, 0, 1);
                                        
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(200221, 0, 1);
                                        
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(192765, 0, 1);
                                        
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(3007110, 0, 1);
                                    }
                                    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(3004181, 0, 1);
                                        
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 ومشكلة ومش عايز حد يقفل الموضوع
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
الموضوع بعيد عن بروتو او لا nova مشكلات السيرفيرات كونكر الشخصيه 2 2019-11-26 11:40 AM
الموضوع التاني اهوة xd uncelsam مشكلات السيرفيرات كونكر الشخصيه 3 2019-10-30 01:16 AM
رجاء اقراء الموضوع ElSaher قسم الاقتراحات والابداع 0 2019-09-19 01:57 PM
ياجدعان الموضوع بسيط npc توب بس MeGoo مشكلات السيرفيرات كونكر الشخصيه 1 2019-07-27 11:08 PM
شرح تنسيق الموضوع + القوانين Rider تطوير سيرفرات كونكر 2 2019-07-23 04:30 PM


الساعة الآن 01:48 AM