كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   مشكلات السيرفيرات كونكر الشخصيه (https://conquer-arab.com/forumdisplay.php?f=12)
-   -   مشكلة في اللوري (https://conquer-arab.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(729691, 1))
                                                    {
                                                        
client.Inventory.Remove(729691, 1); 

رقم ده غيره لرقم روتري عادي عشان تفتح معاك
كود 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(729691, 1))
                                                    {
                                                        
client.Inventory.Remove(729691, 1);
                                                        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(723725, 1))
                                                    {
                                                        
client.Inventory.Remove(723725, 1);
                                                        
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(723727, 1))
                                                    {
                                                        
client.Inventory.Remove(723727, 1);
                                                        
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(723724, 1))
                                                    {
                                                        
client.Inventory.Remove(723724, 1);
                                                        
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(inventory, 0);

                                                            foreach (
ConquerItem item in inventory)
                                                            {
                                                                
client.Inventory.Remove(item, Fighter.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 



الساعة الآن 07:15 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas