منتدي اكواد

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

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

Npc حظ الايتيم
 

السلام عليكم ورحمة الله وبركاته
قولت اعملك حاجه حلوه كده
الموضوع متاخد من موضوع ميروا بتاع حظ السي بي
انا عدلته خليته حظ الايتم ياعني انت لو معاك مثلا المبلغ المطلوب وليكن مليون سي بي وعايز تلعب بيهم في ال NPC انت وحظك الاتيم الي ايطعلك

في ال NPCS.CS
حط دول
كود PHP:

#region Lucky Play ITEM
                    
case 54586:  
                        {

                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {

                                        
dialog.Text("Try You'r Lucky With Play ITEM");
                                        
dialog.Option("play item 1M CPS."1);
                                        
dialog.Option("not now."255);
                                        
dialog.Avatar(80);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
3:
                                    {
                                        if (
client.Entity.ConquerPoints >= 1000000)
                                        {
                                            
client.Entity.ConquerPoints -= 1000000;
                                            
Random R = new Random();
                                            
int Nr R.Next(17);
                                            if (
Nr == 1client.Inventory.Add(72002701); // name item
                                            
if (Nr == 1client.MessageBox("you win item  "null);
                                            if (
Nr == 1client.Inventory.Add(72002701); // name item
                                            
if (Nr == 1client.MessageBox("you win item  "null);
                                            if (
Nr == 1client.Inventory.Add(72002701); // name item
                                            
if (Nr == 1client.MessageBox("you win item  "null);
                                            if (
Nr == 1client.Inventory.Add(72002701); // name item
                                            
if (Nr == 1client.MessageBox("you win item  "null);
                                            if (
Nr == 2client.Inventory.Add(72002701); // name item
                                            
if (Nr == 2client.MessageBox("you win item  "null);
                                            if (
Nr == 3client.Inventory.Add(72002701); // name item
                                            
if (Nr == 3client.MessageBox("you win item  "null);
                                            if (
Nr == 4client.Inventory.Add(72002701); // name item
                                            
if (Nr == 4client.MessageBox("you win item  "null);
                                            if (
Nr == 5client.Inventory.Add(72002701); // name item
                                            
if (Nr == 5client.MessageBox("you win item  "null);
                                            if (
Nr == 6client.Inventory.Add(72002701); // name item
                                            
if (Nr == 6client.MessageBox("you win item  "null);
                                            if (
Nr == 7client.Inventory.Add(72002701); // name item
                                            
if (Nr == 7client.MessageBox("you win item  "null);
                                            
DialyQuestsEffect.Check(client"Sure");

                                        }
                                        else
                                        {

                                            
dialog.Text("You do not have 1M Cps.");
                                            
dialog.Option("I see."255);
                                            
dialog.Avatar(116);
                                            
dialog.Send();

                                        }

                                        break;
                                    }
                                    break;
                            }
                        }
                    
#endregion 

انت اتغير الرقم ده 720027 في كل السطور علي حسب الايتم الي عايزه والمليون سي بي برضوا غيرها ذي مانت عايز


الساعة الآن 11:24 AM

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