منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://code.vpscairo.com/forumdisplay.php?f=12)
-   -   مشكلة في اللوري (https://code.vpscairo.com/showthread.php?t=3446)

ElSaher 2020-01-25 07:24 PM

مشكلة في اللوري
 
مشكلة في اللوتري لما اجي افتحو مش بيفتح

Rider 2020-01-25 07:30 PM

رد: مشكلة في اللوري
 
npc.cs
سيرش علي اي واحده من دول
كود PHP:

 case 925:
                                case 
926:
                                case 
927:
                                case 
928:
                                case 
929:
                                case 
930:
                                case 
931:
                                case 
932:
                                case 
933:
                                case 
934:
                                case 
935:
                                case 
936:
                                case 
937:
                                case 
938:
                                case 
939:
                                case 
940:
                                case 
942:
                                case 
943:
                                case 
944:
                                case 
945

هنيجي للحته المهمه
كود PHP:

 if (client.Inventory.Contains(7296911))
                                                    {
                                                        
client.Inventory.Remove(7296911); 

رقم ده غيره لرقم روتري عادي عشان تفتح معاك
كود PHP:

729691 

او ممكن تقلبها لوتري بكبس

ElSaher 2020-01-25 07:33 PM

رد: مشكلة في اللوري
 
كود PHP:

                    #region Lottery
                    
case 700:
                        {
                            switch (
client.ActiveNpc)
                            {
                                
#region LuckyBox
                                
case 925:
                                case 
926:
                                case 
927:
                                case 
928:
                                case 
929:
                                case 
930:
                                case 
931:
                                case 
932:
                                case 
933:
                                case 
934:
                                case 
935:
                                case 
936:
                                case 
937:
                                case 
938:
                                case 
939:
                                case 
940:
                                case 
942:
                                case 
943:
                                case 
944:
                                case 
945:
                                    {
                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {
                                                    if (
client.Inventory.Contains(7296911))
                                                    {
                                                        
client.Inventory.Remove(7296911);
                                                        if (
client.LotteryEntries 255)
                                                        {
                                                            
int rand Kernel.Random.Next(Fighter.Database.LotteryTable.LotteryItems.Count);
                                                            var 
item Fighter.Database.LotteryTable.LotteryItems[rand];
                                                            var 
tobesent = new newLottery(true);
                                                            
tobesent.boxid 3;//npcRequest.NpcID;// 0x10103; 
                                                            
tobesent.ItemID item.ID;
                                                            
client.Player.LOTOITEM item;
                                                            if (
item.Sockets 0)
                                                                
tobesent.SocketGem1 255;
                                                            if (
item.Sockets 1)
                                                                
tobesent.SocketGem2 255;
                                                            
client.Player.AddJade 0;
                                                            
tobesent.JadesAdded client.Player.AddJade;
                                                            
tobesent.plus item.Plus;
                                                            
client.LotteryEntries += 1;
                                                            
client.Send(tobesent);
                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry, your LotteryEntries has finished come tomorrow.");
                                                            
dialog.Option("Okay"255);
                                                        }
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry You need NewLottery to draw from the lottery in the lottery Center.");
                                                        
dialog.Option("Okay"255);
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion
                                #region CollecterZhao
                                
case 3952:
                                    {
                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {
                                                    
dialog.Text("Hello mate, i can help you to change Amulets and LifeFruitBasket for 10 cps what you have?.");
                                                    
dialog.Option("LifeFruitBasket"1);
                                                    
dialog.Option("PenitenceAmulet."2);
                                                    
dialog.Option("DisguiseAmulet."3);
                                                    
dialog.Option("Nothing thank you."255);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    if (
client.Inventory.Contains(7237251))
                                                    {
                                                        
client.Inventory.Remove(7237251);
                                                        
client.Player.ConquerPoints += 10;
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you dont Have Any LifeFruitBaskets.");
                                                        
dialog.Option("Alright Thanks"255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 
2:
                                                {
                                                    if (
client.Inventory.Contains(7237271))
                                                    {
                                                        
client.Inventory.Remove(7237271);
                                                        
client.Player.ConquerPoints += 10;
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you dont Have Any PenitenceAmulet.");
                                                        
dialog.Option("Alright Thanks"255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 
3:
                                                {
                                                    if (
client.Inventory.Contains(7237241))
                                                    {
                                                        
client.Inventory.Remove(7237241);
                                                        
client.Player.ConquerPoints += 10;
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you dont Have Any DisguiseAmulet.");
                                                        
dialog.Option("Alright Thanks."255);
                                                        
dialog.Send();
                                                    }
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                
#endregion
                                #region Clear
                                
case 59522:
                                    {

                                        switch (
npcRequest.OptionID)
                                        {
                                            case 
0:
                                                {

                                                    
dialog.Text("Hello my bro . I can clear your items for 10 Cps");
                                                    
dialog.Option("Okay.Clear"51);
                                                    
dialog.Option("Just passing by."255);
                                                    
dialog.Avatar(80);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
51:
                                                {
                                                    
dialog.Text("Are you sure ?");
                                                    
dialog.Option("Yes,Clear"1);
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
1:
                                                {
                                                    {
                                                        if (
client.Player.ConquerPoints >= 10)
                                                        {
                                                            
client.Player.ConquerPoints -= 10;
                                                            
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
                                                            
client.Inventory.Objects.CopyTo(inventory0);

                                                            foreach (
ConquerItem item in inventory)
                                                            {
                                                                
client.Inventory.Remove(itemFighter.Game.Enums.ItemUse.Remove);
                                                            }

                                                        }
                                                        else
                                                        {
                                                            
dialog.Text("Sorry you don't have 10 Cps.");
                                                            
dialog.Option("I see."255);
                                                            
dialog.Avatar(116);
                                                            
dialog.Send();
                                                        }
                                                    }

                                                    break;
                                                }

                                        }
                                        break;
                                    }
                                
#endregion
                            
}
                            break;
                        }
                    
#endregion 



الساعة الآن 09:47 AM

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