منتدي اكواد

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

salahsayed 2019-04-28 10:18 AM

مشكلة في صنديق اللوتري
 
كل لما اجي الف صنديق يجبلي المشكلة دي
http://www.mediafire.com/view/nzonkc...c/Untitled.png

salahsayed 2019-04-28 10:19 AM

اقتباس:

المشاركة الأصلية كتبت بواسطة salahsayed (المشاركة 482)
كل لما اجي الف صنديق يجبلي المشكلة دي
http://www.mediafire.com/view/nzonkc...c/Untitled.png

http://www.mediafire.com/view/nzonkc...c/Untitled.png

Tofanproject 2019-04-28 10:44 AM

مشاركة لعرض صورة المشكلة

Tofanproject 2019-04-28 10:45 AM

اللوتري عندك شغال بنظام بوينت شوفه ممكن تلاقيه بيتباع ب انبسي لو ملقتش يبقي اعملو واحد

محمد ياسر 2019-04-28 10:46 AM

رد علي الموضوع
 
اقتباس:

المشاركة الأصلية كتبت بواسطة tofanproject (المشاركة 490)
مشاركة لعرض صورة المشكلة

لغيت المشاركه لظهور الرابط في هذا القسم الان

salahsayed 2019-04-28 12:55 PM

اقتباس:

المشاركة الأصلية كتبت بواسطة tofanproject (المشاركة 491)
اللوتري عندك شغال بنظام بوينت شوفه ممكن تلاقيه بيتباع ب انبسي لو ملقتش يبقي اعملو واحد

طب ممكن تبعتلي اضافة الانبسي

Tofanproject 2019-04-28 11:52 PM

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

المشاركة الأصلية كتبت بواسطة salahsayed (المشاركة 498)
طب ممكن تبعتلي اضافة الانبسي

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

محمد ياسر 2019-07-13 10:37 AM

رد: مشكلة في صنديق اللوتري
 
ياريت صاحب الموضوع ييرفع صوره للمشكله لان الصوره الاولي محذوفه

Rider 2019-07-13 04:38 PM

رد: مشكلة في صنديق اللوتري
 
صوره غير موجوده بس الي فهمته من سياق الكلام ان لوتري ب نقط مش تكتات لوتري
ممكن نعملك ان بي سي بيبعهم او لو عايز تخليه ب لوتري

ابحث عن
كود PHP:

 public static void LuckyBox

و بدله ب ده

كود PHP:

 public static void LuckyBox(uint npcIDClient.GameState clientbool Jade false)
        {
            if (
client.Trade.InTrade)
                return;
           
            if (
client.Entity.ConquerPoints >= || Jade)
            {
                if (
Jade || client.Inventory.Contains(7115043))
                {
                    if (!
Jade)
                    {
                        
client.LotteryEntries++;
                    }
                    else
                    {
                        
client.Entity.LotteryJadeAdd++;
                    }
                    if ((
npcID != 0) && !Jade)
                    {
                        
_String packet = new _String(true);
                        
packet.UID npcID;
                        
packet.TextsCount 1;
                        
packet.Type _String.Effect;
                        
packet.Texts.Add("lottery");
                        
client.Send(packet);
                        if (
client.Entity.LotteryItemID 0)
                        {

                        }
                    }
                
tryagain:
                    
int rand Kernel.Random.Next(Database.LotteryTable.LotteryItems.Count);
                    var 
item Database.LotteryTable.LotteryItems[rand];
                    var 
Itemd Database.ConquerItemInformation.BaseInformations[item.ID];
                    if (
Itemd == null)
                        goto 
tryagain;
                    if (
Kernel.Rate(item.Rankitem.Chance) && Kernel.Rate(item.Rank35 item.Rank))
                    {
                        
ConquerItem Item = new ConquerItem(true);
                        
Item.ID item.ID;
                        
client.Entity.LotteryItemID item.ID;
                        
client.Entity.LotteryItemPlus item.Plus;
                        
client.Entity.LotteryItemColor = (byte)Game.Enums.Color.Blue;
                        
Item.Plus item.Plus;
                        
Item.Color Game.Enums.Color.Blue;
                        if (
item.Sockets 0)
                        {
                            
Item.SocketOne Game.Enums.Gem.EmptySocket;
                            
client.Entity.LotteryItemSoc1 255;
                        }
                        if (
item.Sockets 1)
                        {
                            
Item.SocketTwo Game.Enums.Gem.EmptySocket;
                            
client.Entity.LotteryItemSoc2 255;
                        }
                        
Item.Durability Item.MaximDurability Itemd.Durability;
                        if ((
Item != null))
                        {
                            if (!
Jade)
                            {
                                if (
client.Inventory.Contains(7115043))
                                {
                                    
client.Inventory.Remove(7115043);
                                }
                                else
                                {
                                    return;
                                }
                            }
                            else if (
client.Inventory.Contains(7115041))
                            {
                                
client.Inventory.Remove(7115041);
                            }
                            else
                            {
                                return;
                            }
                            
client.Entity.LotteryPrize Item;
                            
MsgLottery lottery = new MsgLottery
                            
{
                                
Color Item.Color,
                                
Plus Item.Plus,
                                
Prize Item.ID,
                                
SocketOne = (byte)Item.SocketOne,
                                
SocketTwo = (byte)Item.SocketTwo,
                                
AddJadeChances client.Entity.LotteryJadeAdd,
                                
Type Mode.ShowGUI
                            
};
                            
lottery.Send(client);
                        }
                        else
                        {
                        }
                    }
                    else
                    {
                        goto 
tryagain;
                    }
                }
                else
                {
                    
string msg string.Format("You need 3 Small Lottery Tickets to try at the lottery!"client.Entity.Nameclient.Entity.Name);
                    
client.Send(new Message(msgSystem.Drawing.Color.WhiteMessage.Talk));
                }
            }
            else
            {
                
string msg string.Format("You have used up all your lottery attempts today! But if you have a LotteryTicket you can exchange it for another try from Lady Luck!"client.Entity.Nameclient.Entity.Name);
                
client.Send(new Message(msgSystem.Drawing.Color.WhiteMessage.Talk));
            }
        } 


Rider 2019-07-13 04:39 PM

رد: مشكلة في صنديق اللوتري
 
صوره غير موجوده بس الي فهمته من سياق الكلام ان لوتري ب نقط مش تكتات لوتري
ممكن نعملك ان بي سي بيبعهم او لو عايز تخليه ب لوتري

ابحث عن
كود PHP:

 public static void LuckyBox

و بدله ب ده

كود PHP:

 public static void LuckyBox(uint npcIDClient.GameState clientbool Jade false)
        {
            if (
client.Trade.InTrade)
                return;
           
            if (
client.Entity.ConquerPoints >= || Jade)
            {
                if (
Jade || client.Inventory.Contains(7115043))
                {
                    if (!
Jade)
                    {
                        
client.LotteryEntries++;
                    }
                    else
                    {
                        
client.Entity.LotteryJadeAdd++;
                    }
                    if ((
npcID != 0) && !Jade)
                    {
                        
_String packet = new _String(true);
                        
packet.UID npcID;
                        
packet.TextsCount 1;
                        
packet.Type _String.Effect;
                        
packet.Texts.Add("lottery");
                        
client.Send(packet);
                        if (
client.Entity.LotteryItemID 0)
                        {

                        }
                    }
                
tryagain:
                    
int rand Kernel.Random.Next(Database.LotteryTable.LotteryItems.Count);
                    var 
item Database.LotteryTable.LotteryItems[rand];
                    var 
Itemd Database.ConquerItemInformation.BaseInformations[item.ID];
                    if (
Itemd == null)
                        goto 
tryagain;
                    if (
Kernel.Rate(item.Rankitem.Chance) && Kernel.Rate(item.Rank35 item.Rank))
                    {
                        
ConquerItem Item = new ConquerItem(true);
                        
Item.ID item.ID;
                        
client.Entity.LotteryItemID item.ID;
                        
client.Entity.LotteryItemPlus item.Plus;
                        
client.Entity.LotteryItemColor = (byte)Game.Enums.Color.Blue;
                        
Item.Plus item.Plus;
                        
Item.Color Game.Enums.Color.Blue;
                        if (
item.Sockets 0)
                        {
                            
Item.SocketOne Game.Enums.Gem.EmptySocket;
                            
client.Entity.LotteryItemSoc1 255;
                        }
                        if (
item.Sockets 1)
                        {
                            
Item.SocketTwo Game.Enums.Gem.EmptySocket;
                            
client.Entity.LotteryItemSoc2 255;
                        }
                        
Item.Durability Item.MaximDurability Itemd.Durability;
                        if ((
Item != null))
                        {
                            if (!
Jade)
                            {
                                if (
client.Inventory.Contains(7115043))
                                {
                                    
client.Inventory.Remove(7115043);
                                }
                                else
                                {
                                    return;
                                }
                            }
                            else if (
client.Inventory.Contains(7115041))
                            {
                                
client.Inventory.Remove(7115041);
                            }
                            else
                            {
                                return;
                            }
                            
client.Entity.LotteryPrize Item;
                            
MsgLottery lottery = new MsgLottery
                            
{
                                
Color Item.Color,
                                
Plus Item.Plus,
                                
Prize Item.ID,
                                
SocketOne = (byte)Item.SocketOne,
                                
SocketTwo = (byte)Item.SocketTwo,
                                
AddJadeChances client.Entity.LotteryJadeAdd,
                                
Type Mode.ShowGUI
                            
};
                            
lottery.Send(client);
                        }
                        else
                        {
                        }
                    }
                    else
                    {
                        goto 
tryagain;
                    }
                }
                else
                {
                    
string msg string.Format("You need 3 Small Lottery Tickets to try at the lottery!"client.Entity.Nameclient.Entity.Name);
                    
client.Send(new Message(msgSystem.Drawing.Color.WhiteMessage.Talk));
                }
            }
            else
            {
                
string msg string.Format("You have used up all your lottery attempts today! But if you have a LotteryTicket you can exchange it for another try from Lady Luck!"client.Entity.Nameclient.Entity.Name);
                
client.Send(new Message(msgSystem.Drawing.Color.WhiteMessage.Talk));
            }
        } 



الساعة الآن 04:49 AM

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