منتدي اكواد

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

ElSaher 2020-01-27 04:32 AM

اخر مشكلة في اللوتري
 

اللوتر عندي بياخود كل الي في الايتم بدل ما ياخود 3بس

فديو للتوضيح

https://streamable.com/a6xqu


Hassan Emprator 2020-01-27 04:43 AM

رد: اخر مشكلة في اللوتري
 
سيرش هنا

كود PHP:

                            case (byte)newLottery.Continue: 

بدله بي دا

كود PHP:

                            case (byte)newLottery.Continue:
                                {
                                    if (
client.LotteryEntries 10)
                                    {
                                        
client.LotteryEntries += 1;
                                        
client.Entity.AddJade 0;
                                        
client.Inventory.Remove(7115043);

                                        
int rand Kernel.Random.Next(MrHassan.Database.LotteryTable.LotteryItems.Count);
                                        var 
item MrHassan.Database.LotteryTable.LotteryItems[rand];

                                        var 
tobesent = new newLottery(true);
                                        
tobesent.boxid 3;
                                        
tobesent.ItemID item.ID;
                                        
client.Entity.LOTOITEM item;
                                        
tobesent.JadesAdded client.Entity.AddJade;
                                        
tobesent.plus item.Plus;
                                        if (
item.Sockets 0)
                                            
I.SocketGem1 255;
                                        if (
item.Sockets 1)
                                            
I.SocketGem2 255;
                                        
//  tobesent.times = (ushort)(10 - client.LotteryEntries);
                                        
client.Send(tobesent);
                                    }
                                    break;
                                } 


ElSaher 2020-01-27 05:20 AM

رد: اخر مشكلة في اللوتري
 
مش موجوده

ElSaher 2020-01-27 05:58 AM

رد: اخر مشكلة في اللوتري
 
لسه مش اتحلت

ElSaher 2020-01-27 10:58 PM

رد: اخر مشكلة في اللوتري
 
ياريت حل يا جدعان

ElSaher 2020-01-28 12:26 AM

رد: اخر مشكلة في اللوتري
 
المشكلة مش اتحلت

Mostafa Shalby 2020-01-28 02:43 AM

رد: اخر مشكلة في اللوتري
 
ادي الانبي سي اللي انتا قولتلي علية اللي ف المركت

كود بلغة HTML:

#region LadyLuck
                                case 923:
                                    {
                                        dialog.Avatar(123);
                                        switch (npcRequest.OptionID)
                                        {
                                            case 0:
                                                {
                                                    dialog.Text("Welcome to the Lottery Center! There are many Lucky Boxes here, each containing incredible treasures! Pay me 3 Small Lottery Tickets to draw from the Lucky Box in the Lottery Center. You are allowed to enter the Lottery Center and try your luck upto 10");
                                                    dialog.Text("~times a day. You will have extra lottery chances if you are a VIP player.");
                                                    dialog.Option("Let`s~try~my~luck!", 1);
                                                    dialog.Option("Exchange~Small~Lottery~Ticket.", 2);
                                                    dialog.Option("May~I~know~the~rules~first?", 3);
                                                    dialog.Option("How~about~the~VIP~privilege?", 4);
                                                    dialog.Option("Nice~to~see~you.", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                            case 1:
                                                {
                                                    if (client.Player.Level >= 70)
                                                    {

                                                        client.Player.Teleport(700, 42, 50);

                                                    }
                                                    else
                                                    {
                                                        dialog.Text("You may not join the lottery , you need level 70 first.");
                                                        dialog.Option("Ahh sorry.", 255);
                                                        dialog.Send();
                                                    }
                                                    break;
                                                }
                                            case 2:
                                                {
                                                    dialog.Text("You don`t have any Lottery Tickets to exchange for the Small Lottery Tickets.");
                                                    dialog.Option("Oops.", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                            case 3:
                                                {
                                                    dialog.Text("Each player can draw from the Lottery up to 10 times, each day. But if you are a VIP, you will have extra chances to play! Level 1 VIP: 10 extra chances. Level 2 VIP: 20 extra chances. Level 3 VIP: 30 extra chances.~Level 4 VIP: 40 extra chances. Level 5 VIP: 50 extra chances. Level 6 VIP: 60 extra chances.");
                                                    dialog.Option("Got~it!", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                            case 4:
                                                {
                                                    dialog.Text("There are many Lucky Boxes in the Lottery Center. Pay 3 Small Lottery Tickets, and you can draw from the Lucky Box! If you are not satisfied with the item you get, you can pay 1 more Small Lottery Ticket to change the item you drew. However, you can~only pay and change the item for 2 times. Each player is allowed to draw from the Lottery up to 10 times, each day.");
                                                    dialog.Option("Okay,~I~see.", 255);
                                                    dialog.Send();
                                                    break;
                                                }
                                        }
                                        break;
                                    }
                                #endregion


Mostafa Shalby 2020-01-28 02:47 AM

رد: اخر مشكلة في اللوتري
 
وحل المكلة ضيف دي في PacketHandelar

كود بلغة HTML:

#region SmallLotteryTicketPack
                case 724002:
                    {
                        client.Inventory.Add(711504, 0, 3);
                        client.Inventory.Remove(item, Enums.ItemUse.Remove);
                        break;
                    }
                #endregion


ElSaher 2020-01-28 10:51 AM

رد: اخر مشكلة في اللوتري
 
المشكلة مش اتحلت يا جدعان

Rider 2020-01-28 06:02 PM

رد: اخر مشكلة في اللوتري
 
في صناديق لوتري ف npc روح علي صندوق بدل remvoe امسحها و هتلاقي كلمه مكانها اسمها Rider حطها مكان remove


الساعة الآن 03:52 PM

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