احصائياتى

الردود
9

المشاهدات
1523
 
salahsayed
.:: عضو نشيط ::.
الإجابات المقدمة: 4

    غير متواجد

المشاركات
193

+التقييم
0.07

تاريخ التسجيل
Apr 2019

الاقامة
شبار مصر

نظام التشغيل
Windows 10

رقم العضوية
39
2019-04-28, 10:18 AM
المشاركة 1
2019-04-28, 10:18 AM
المشاركة 1
افتراضي تمت الإجابة مشكلة في صنديق اللوتري
كل لما اجي الف صنديق يجبلي المشكلة دي


أفضل جواب - كتبه Rider
صوره غير موجوده بس الي فهمته من سياق الكلام ان لوتري ب نقط مش تكتات لوتري
ممكن نعملك ان بي سي بيبعهم او لو عايز تخليه ب لوتري

ابحث عن
كود:
 public static void LuckyBox( 

و بدله ب ده


كود:
 public static void LuckyBox(uint npcID, Client.GameState client, bool Jade = false)
        {
            if (
client.Trade.InTrade)
                return;
           
            if (
client.Entity.ConquerPoints >= 0 || Jade)
            {
                if (
Jade || client.Inventory.Contains(711504, 3))
                {
                    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.Rank, item.Chance) && Kernel.Rate(item.Rank, 35 - 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(711504, 3))
                                {
                                    
client.Inventory.Remove(711504, 3);
                                }
                                else
                                {
                                    return;
                                }
                            }
                            else if (
client.Inventory.Contains(711504, 1))
                            {
                                
client.Inventory.Remove(711504, 1);
                            }
                            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.Name, client.Entity.Name);
                    
client.Send(new Message(msg, System.Drawing.Color.White, Message.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.Name, client.Entity.Name);
                
client.Send(new Message(msg, System.Drawing.Color.White, Message.Talk));
            }
        } 

قديم 2019-04-28, 10:19 AM
المشاركة 2
salahsayed
.:: عضو نشيط ::.
الإجابات المقدمة: 4
  • غير متواجد
قديم 2019-04-28, 10:44 AM
المشاركة 3
Tofanproject
.:: عضو جديد ::.
  • غير متواجد
افتراضي
مشاركة لعرض صورة المشكلة

قديم 2019-04-28, 10:45 AM
المشاركة 4
Tofanproject
.:: عضو جديد ::.
  • غير متواجد
افتراضي
اللوتري عندك شغال بنظام بوينت شوفه ممكن تلاقيه بيتباع ب انبسي لو ملقتش يبقي اعملو واحد

قديم 2019-04-28, 10:46 AM
المشاركة 5
Hazem
.:: المدير العام::.
الإجابات المقدمة: 181
  • غير متواجد
افتراضي رد علي الموضوع
لغيت المشاركه لظهور الرابط في هذا القسم الان

قديم 2019-04-28, 12:55 PM
المشاركة 6
salahsayed
.:: عضو نشيط ::.
الإجابات المقدمة: 4
  • غير متواجد
افتراضي
اللوتري عندك شغال بنظام بوينت شوفه ممكن تلاقيه بيتباع ب انبسي لو ملقتش يبقي اعملو واحد
طب ممكن تبعتلي اضافة الانبسي

قديم 2019-04-28, 11:52 PM
المشاركة 7
Tofanproject
.:: عضو جديد ::.
  • غير متواجد
افتراضي رد: مشكلة في صنديق اللوتري
طب ممكن تبعتلي اضافة الانبسي
للاسف والله انا ف الشغل حاليا وبتابع من الفون بس انت لو بحثت عن الكلام اللي ظهرلك تحت ده ومشيت واره هتفهم الدنيا واول ما انزل اجازة لو لقيتك مش حليتها هيبقي ابعتلك الحل السليم

قديم 2019-07-13, 10:37 AM
المشاركة 8
Hazem
.:: المدير العام::.
الإجابات المقدمة: 181
  • غير متواجد
افتراضي رد: مشكلة في صنديق اللوتري
ياريت صاحب الموضوع ييرفع صوره للمشكله لان الصوره الاولي محذوفه

قديم 2019-07-13, 04:38 PM
المشاركة 9
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: مشكلة في صنديق اللوتري
صوره غير موجوده بس الي فهمته من سياق الكلام ان لوتري ب نقط مش تكتات لوتري
ممكن نعملك ان بي سي بيبعهم او لو عايز تخليه ب لوتري

ابحث عن
كود:
 public static void LuckyBox( 

و بدله ب ده


كود:
 public static void LuckyBox(uint npcID, Client.GameState client, bool Jade = false)
        {
            if (
client.Trade.InTrade)
                return;
           
            if (
client.Entity.ConquerPoints >= 0 || Jade)
            {
                if (
Jade || client.Inventory.Contains(711504, 3))
                {
                    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.Rank, item.Chance) && Kernel.Rate(item.Rank, 35 - 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(711504, 3))
                                {
                                    
client.Inventory.Remove(711504, 3);
                                }
                                else
                                {
                                    return;
                                }
                            }
                            else if (
client.Inventory.Contains(711504, 1))
                            {
                                
client.Inventory.Remove(711504, 1);
                            }
                            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.Name, client.Entity.Name);
                    
client.Send(new Message(msg, System.Drawing.Color.White, Message.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.Name, client.Entity.Name);
                
client.Send(new Message(msg, System.Drawing.Color.White, Message.Talk));
            }
        } 


قديم 2019-07-13, 04:39 PM
المشاركة 10
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: مشكلة في صنديق اللوتري
صوره غير موجوده بس الي فهمته من سياق الكلام ان لوتري ب نقط مش تكتات لوتري
ممكن نعملك ان بي سي بيبعهم او لو عايز تخليه ب لوتري

ابحث عن
كود:
 public static void LuckyBox( 

و بدله ب ده


كود:
 public static void LuckyBox(uint npcID, Client.GameState client, bool Jade = false)
        {
            if (
client.Trade.InTrade)
                return;
           
            if (
client.Entity.ConquerPoints >= 0 || Jade)
            {
                if (
Jade || client.Inventory.Contains(711504, 3))
                {
                    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.Rank, item.Chance) && Kernel.Rate(item.Rank, 35 - 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(711504, 3))
                                {
                                    
client.Inventory.Remove(711504, 3);
                                }
                                else
                                {
                                    return;
                                }
                            }
                            else if (
client.Inventory.Contains(711504, 1))
                            {
                                
client.Inventory.Remove(711504, 1);
                            }
                            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.Name, client.Entity.Name);
                    
client.Send(new Message(msg, System.Drawing.Color.White, Message.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.Name, client.Entity.Name);
                
client.Send(new Message(msg, System.Drawing.Color.White, Message.Talk));
            }
        } 



العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: مشكلة في صنديق اللوتري
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
حل مشكلة اللوتري في سورسي اللي نزلتة Mostafa Shalby تطوير سيرفرات كونكر 5 2020-07-08 02:10 AM
اخر مشكلة في اللوتري ElSaher مشكلات السيرفيرات كونكر الشخصيه 10 2020-01-28 10:13 PM
مشكلة في اللوتري ElSaher مشكلات السيرفيرات كونكر الشخصيه 3 2020-01-27 04:41 AM
بخصوص اللوتري salahsayed مشكلات السيرفيرات كونكر الشخصيه 5 2019-11-20 09:55 AM
مطلوب كود اللوتري Mahmoud مشكلات السيرفيرات كونكر الشخصيه 1 2019-05-11 12:20 AM


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