-->

إشترك في النشرة البريدية

إغلاق القائمة
جميع الحقوق محفوظة لـ الاختراع سمارت © 2019

تم تجديد الموقع وسنقوم بالعمل عليه مره اخري


شرح ازاى تعمل شوب فى اى مكان فى اللعبه


    السلام عليكم ورحمه الله وبركاته  
    المـــوضــوع بيتــكلم عن راجــل بيبع شــوب 
    Npc بيـــدك ايـــتم تعمل شـــوب فى اى مـــكان
    صوره : 

    هتفـــح مــلف NPC.cs 
    هتضـــيف الكـــود دة تحت اى NPC

    #region Booth Item Seller 
                    
    case 56428
                        switch (
    npcRequest.OptionID
                        { 
                            case 
    0
                                
    dialog.Text("Hello, I'm the Booth item seller, Do you want to buy the booth item?"); 
                                
    dialog.Option("Yes!"1); 
                                
    dialog.Option("Just passing by."byte.MaxValue); 
                                break; 
                            case 
    1
                                if (
    client.Entity.ConquerPoints >= 50000
                                { 
                                    if (
    client.Inventory.Count 40
                                    { 
                                        
    client.Entity.ConquerPoints -= 50000
                                        
    client.Inventory.Add(300445801); 
                                    } 
                                    else 
                                    { 
                                        
    dialog.Text("Sorry There is no free spaces in your inventory!"); 
                                        
    dialog.Option("Shit."byte.MaxValue); 
                                    } 
                                } 
                                else 
                                { 
                                    
    dialog.Text("Sorry you don't have enough cps you need 50000"); 
                                    
    dialog.Option("Shit."byte.MaxValue); 
                                } 
                                break; 
                        } 
                        break; 
                    
    #endregion  


    إرسال تعليق