الموضوع: System Lottery Done 100%
عرض مشاركة واحدة
احصائياتى

الردود
11

المشاهدات
1851
 
Mero
.:: عضو نشيط ::.

    غير متواجد

المشاركات
157

+التقييم
0.06

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

الاقامة
Egypt

نظام التشغيل
Designer and Programmer

رقم العضوية
11
2019-04-28, 03:12 PM
المشاركة 1
2019-04-28, 03:12 PM
المشاركة 1
Post System Lottery Done 100%



صورة




الشرح


افتح Game state او Game client
وابحث عن



كود:
public uint VirtuePoints; 

حط تحتها


كود:
public DateTime LastLotteryEntry;  
public 
byte LotteryEntries;  
public 
bool InLottery; 


افتح Entitytable

وابحث عن


افتح Entitytable

وابحث عن



كود:
public static bool LoadEntity 


وانزل لحد ما تلاقي كود زي دا



كود:
client.HeadgearClaim = reader.ReadBoolean("HeadgearClaim"); 


حط تحتيه



كود:
client.InLottery = reader.ReadBoolean("InLottery");  
client.LotteryEntries = reader.ReadByte("LotteryEntries");  
client.LastLotteryEntry = DateTime.FromBinary(reader.ReadInt64("LastLotteryEntry")); 

في نفس الكلاس زي ما انت ابحث عن


كود:
client.ExpBalls = 0; 

حط تحته دا


كود:
client.LotteryEntries = 0; 


هتلاقي تحتهم ده


كود:
ResetExpball(client); 


حط تحته ده


كود:
ResetLottery(client); 


زي ما احنا في نفس الكلاس


ابحث عن ده


كود:
public static void ResetExpball 


اقفله من السالب و حط تحته ده


كود:
public static void ResetLottery(Client.GameState client)  
        {  
            
UpdateData(client, "LotteryEntries", 0);  
        } 


ابحث عن ده


كود:
.Set("Class", e.Class) 


حط تحته دول


كود:
.Set("InLottery", c.InLottery)  
.
Set("LotteryEntries", c.LotteryEntries)  
.
Set("LastLotteryEntry", c.LastLotteryEntry.Ticks) 


هنفتح فولدر Database وهنعمل كلاس باسم LotteryTable و نمسح كل حاجه فيه و نحط ده ولو عندك برده امسح كل حاجه فيه ال وحط ده


كود:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 

namespace 
Conquer_Online_Server.Database 
{ 
    public class 
LotteryTable 
    
{ 
        public class 
LotteryItem 
        
{ 
            public 
int Rank, Chance; 
            public 
string Name; 
            public 
uint ID; 
            public 
byte Color; 
            public 
byte Sockets; 
            public 
byte Plus; 
            public 
uint NPCID; 

        } 
        public static List<
LotteryItem> LotteryItems = new List<LotteryItem>(); 
        public static 
void Load() 
        { 
            
using (var cmd = new MySqlCommand(MySqlCommandType.SELECT).Select("lottery")) 
            
using (var reader = cmd.CreateReader()) 
            { 
                while (
reader.Read()) 
                { 
                    
LotteryItem item = new LotteryItem(); 
                    
item.Rank = reader.ReadInt32("Rank"); 
                    
item.Chance = reader.ReadInt32("Chance"); 
                    
item.Name = reader.ReadString("Prize_Name"); 
                    
item.ID = reader.ReadUInt32("Prize_Item"); 
                    
item.Color = reader.ReadByte("Color"); 
                    
item.Sockets = reader.ReadByte("Hole_Num"); 
                    
item.Plus = reader.ReadByte("Addition_Lev"); 
                    
LotteryItems.Add(item); 
                } 
            } 
            
Console.WriteLine("Lottery items loaded."); 
        } 
    } 
} 


نروح لكلاس Entity
ابحث عن ده


كود:
public Time32 FreezeStamp; 

حط تحتو دول


كود:
public uint LotteryItemID = 0;  
public 
byte LotteryJadeAdd;  
public 
uint LotteryItemPlus;  
public 
uint LotteryItemSocket1;  
public 
uint LotteryItemSoc2;  
public 
uint LotteryItemColor;  
public 
ConquerItem LotteryPrize; 


في نفس الكلاس ابحث عن ده


كود:
public LotteryTable.LotteryItem LotoItem; 

ابحث عن ده


كود:
public bool UseItem = false; 


حط تحتو ده


كود:
public uint LotteryItemSoc1; 


ابحث عن ده


كود:
mapName = "OfflineTG"; 

وتحت كلمه break; حط تحتها ده


كود:
case 700:  
mapName = "LotteryMap";  
break; 


ابحث عن ده


كود:
mapName = "DesertArena"; 


تحت كلمه break; ارزع ده


كود:
case 0x760:  
mapName = "LotteryHouse";  
break; 


هتفتح فولدر Game وتعمل كلاس باسم Lottery



كود:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using Conquer_Online_Server.Network.GamePackets; 
using Conquer_Online_Server.Interfaces; 

namespace 
Conquer_Online_Server.Game 
{ 
    public class 
Lottery 
    
{ 

        public static 
void LotteryRewardMessage(Conquer_Online_Server.Client.GameState Hero, ConquerItem i) 
        { 
            
string str = ""; 
            
string str2 = ""; 
            
string str3 = ""; 
            if ((
Conquer_Online_Server.Game.Enums.ItemQuality)(i.ID % 10) >= Conquer_Online_Server.Game.Enums.ItemQuality.Elite) 
            { 
                
str = "Elite "; 
                if ((
Conquer_Online_Server.Game.Enums.ItemQuality)(i.ID % 10) >= Conquer_Online_Server.Game.Enums.ItemQuality.Super) 
                { 
                    
str = "Super "; 
                } 
                if (
Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[i.ID].Name.Contains("MoneyBag")) 
                { 
                    
str = ""; 
                } 
            } 
            if (
i.SocketOne > 0) 
            { 
                
str2 = "1-Socket "; 
                if (
i.SocketTwo > 0) 
                { 
                    
str2 = "2-Socket "; 
                } 
            } 
            if (
i.Plus > 0) 
            { 
                
str3 = "(+" + i.Plus + ")"; 
            } 
            
string str4 = str + str2 + Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[i.ID].Name + str3; 
            
string msg = string.Format("{0} won a {1} from the Lottery!", Hero.Entity.Name, str4); 

            if ((
Conquer_Online_Server.Game.Enums.ItemQuality)(i.ID % 10) >= Conquer_Online_Server.Game.Enums.ItemQuality.Elite) 
            { 
                
Kernel.SendWorldMessage(new Message(msg, System.Drawing.Color.Red, Conquer_Online_Server.Network.GamePackets.Message.Talk), Program.Values); 



            } 
            else 
            { 
                
Hero.Send(new Message(msg, System.Drawing.Color.White, Message.Talk)); 

            } 
        } 
        public static 
void GiveLotteryPrize(Conquer_Online_Server.Client.GameState Hema) 
        { 
            
LotteryRewardMessage(Hema, Hema.Entity.LotteryPrize); 
            
Conquer_Online_Server.Database.ConquerItemInformation Itemd = new Conquer_Online_Server.Database.ConquerItemInformation(Hema.Entity.LotteryItemID, 0); 
            
//var Itemd = Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[Hema.Entity.LotteryItemID];  
            
ConquerItem Item = new ConquerItem(true); 
            
Item.ID = Hema.Entity.LotteryItemID; 

            
Item.Plus = (byte)Hema.Entity.LotteryItemPlus; 
            
Item.Color = Conquer_Online_Server.Game.Enums.Color.Blue; 
            if (
Hema.Entity.LotteryItemSoc1 > 0) 
            { 
                
Item.SocketOne = Conquer_Online_Server.Game.Enums.Gem.EmptySocket; 
                
Hema.Entity.LotteryItemSoc1 = 0; 
            } 
            if (
Hema.Entity.LotteryItemSoc2 > 0) 
            { 
                
Item.SocketTwo = Conquer_Online_Server.Game.Enums.Gem.EmptySocket; 
                
Hema.Entity.LotteryItemSoc2 = 0; 
            } 
            
Item.Durability = Item.MaximDurability = Itemd.BaseInformation.Durability; 

            
Hema.Inventory.Add(Item, Conquer_Online_Server.Game.Enums.ItemUse.CreateAndAdd); 


            
Hema.Entity.LotteryItemID = 0; 
            
Hema.Entity.LotteryJadeAdd = 0; 
        } 
        public static 
void LuckyBox(uint npcID, Conquer_Online_Server.Client.GameState h, bool jade) 
        { 
            if (
jade || h.Inventory.Contains(0xadb50, 3)) 
            { 
                if (!
jade) 
                { 
                    
h.LotteryEntries += 1; 
                    
h.Activenes.SendSinglePacket(h, Activeness.Types.LotteryTask, h.LotteryEntries); 
                } 
                else 
                { 
                    
h.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"); 
                    
h.Send(packet); 
                } 
            
tryagain: 
                
int rand = Kernel.Random.Next(Conquer_Online_Server.Database.LotteryTable.LotteryItems.Count); 
            var 
item = Conquer_Online_Server.Database.LotteryTable.LotteryItems[rand]; 
            var 
Itemd = Conquer_Online_Server.Database.ConquerItemInformation.BaseInformations[item.ID]; 
                if (
Itemd == null || item == null) 
                    goto 
tryagain; 
                if (
item.NPCID != npcID && Kernel.Rate(70)) 
                    goto 
tryagain; 
                if (!(
Network.PacketHandler.GetPositionFromID(item.ID) != Network.PacketHandler.Positions.Garment && Network.PacketHandler.GetPositionFromID(item.ID) != 0 && Kernel.Rate(99))) 
                { 
                    
ConquerItem Item = new ConquerItem(true); 
                    
Item.ID = item.ID; 
                    
h.Entity.LotteryItemID = item.ID; 
                    
h.Entity.LotteryItemPlus = item.Plus; 
                    
h.Entity.LotteryItemColor = (byte)Conquer_Online_Server.Game.Enums.Color.Blue; 
                    
Item.Plus = item.Plus; 
                    
Item.Color = Conquer_Online_Server.Game.Enums.Color.Blue; 
                    if (
item.Sockets > 0) 
                    { 
                        
Item.SocketOne = Conquer_Online_Server.Game.Enums.Gem.EmptySocket; 
                        
h.Entity.LotteryItemSoc1 = 255; 
                    } 
                    if (
item.Sockets > 1) 
                    { 
                        
Item.SocketTwo = Conquer_Online_Server.Game.Enums.Gem.EmptySocket; 
                        
h.Entity.LotteryItemSoc2 = 255; 

                    } 
                    
Item.Durability = Item.MaximDurability = Itemd.Durability; 
                    
// h.Inventory.Add(Item, Game.Enums.ItemUse.Add); 
                    //h.Entity.LotteryPrize = Item; 
                    
if ((Item != null)) 
                    { 
                        if (!
jade) 
                        { 
                            if (
h.Inventory.Contains(0xadb50, 3)) 
                            { 

                                
h.Inventory.Remove(0xadb50, 3); 
                            } 
                            else 
                            { 
                                return; 
                            } 
                        } 
                        else 
                        { 
                            if (
h.Inventory.Contains(0xadb50, 1)) 
                            { 

                                
h.Inventory.Remove(0xadb50, 1); 
                            } 
                            else 
                            { 
                                return; 
                            } 
                        } 

                        
h.Entity.LotteryPrize = Item; 
                        
Conquer_Online_Server.Network.GamePackets.Lottery lottery = new Conquer_Online_Server.Network.GamePackets.Lottery 
                        
{ 
                            
//Chances = (byte)(10 - h.LotteryEntries), 
                            
Color = Item.Color, 
                            
Plus = Item.Plus, 
                            
Prize = Item.ID, 
                            
SocketOne = (byte)Item.SocketOne, 
                            
SocketTwo = (byte)Item.SocketTwo, 
                            
AddJadeChances = h.Entity.LotteryJadeAdd, 
                            
Type = Conquer_Online_Server.Network.GamePackets.Lottery.LotteryTypes.ShowGUI 
                        
}; 
                        
h.Send((byte[])lottery); 

                    } 
                    else 
                    { 
                        
// string msg = string.Format("Error generating lottery prize.", h.Entity.Name, h.Entity.Name); 
                        // h.Send(new Message(msg, System.Drawing.Color.White, Message.Talk)); 

                    
} 
                } 
                else 
                    goto 
tryagain; 
            } 
            else 
            { 
                
string msg = string.Format("You need 3 Small Lottery Tickets to try at the lottery!", h.Entity.Name, h.Entity.Name); 
                
h.Send(new Message(msg, System.Drawing.Color.White, Message.Talk)); 

            } 
        } 
        public static 
void Handle(byte[] Data, Conquer_Online_Server.Client.GameState Client) 
        { 

            
Conquer_Online_Server.Network.GamePackets.Lottery lottery = new Conquer_Online_Server.Network.GamePackets.Lottery(Data); 
            if (
Client != null) 
            { 
                switch (
lottery.Type) 
                { 
                    case 
Conquer_Online_Server.Network.GamePackets.Lottery.LotteryTypes.Accept: 
                        
GiveLotteryPrize(Client); 
                        break; 

                    case 
Conquer_Online_Server.Network.GamePackets.Lottery.LotteryTypes.AddJade: 
                        if ((
Client.Entity.LotteryJadeAdd < 2) && Client.Inventory.Contains(0xadb50, 1)) 
                        { 
                            
LuckyBox(0, Client, true); 
                        } 
                        break; 

                    case 
Conquer_Online_Server.Network.GamePackets.Lottery.LotteryTypes.Continue: 
                        
LuckyBox(0, Client, false); 
                        break; 
                } 
            } 
        } 
    } 
} 


هنروح لكلاس vipstatus
ابحث عن ده


كود:
public enum VIPExtras 

حط تحت القوس ده


كود:
BonusLottery = 0x8000, 


هنروح لفولدر network وبعد كده نفتح فولدر game packets ونعمل كلاس باسم Lottery برده و هقول تاني و اكد لما تعمله امسح الي جواه و حط الي هدهولك و لو عندك امسح الي جواه و حط الي هدهولك


كود:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 

namespace 
Conquer_Online_Server.Network.GamePackets 
{ 
    
internal class Lottery 
    
{ 
        private 
byte[] mData; 
        public 
enum LotteryTypes 
        
{ 
            
Accept = 0, 
            
AddJade = 1, 
            Continue = 
2, 
            
SocketOne = 7, 
            
SocketTwo = 8, 
            
ShowGUI = 0x103 
        
} 
        public 
Lottery() 
        { 
            
this.mData = new byte[26 + 8]; 
            
Writer.Write(26, 0, this.mData); 
            
Writer.Write((ushort)1314, 2, this.mData); 
            
Writer.Write((byte)1, 6, this.mData); 
        } 

        public 
Lottery(byte[] d) 
        { 
            
this.mData = new byte[d.Length]; 
            
d.CopyTo(this.mData, 0); 
        } 

        public static 
implicit operator byte[](Lottery d) 
        { 
            return 
d.mData; 
        } 

        public 
byte AddJadeChances 
        
{ 
            
get 
            
{ 
                return 
this.mData[11]; 
            } 
            
set 
            
{ 
                
this.mData[11] = value; 
            } 
        } 

        public 
byte Chances 
        
{ 
            
get 
            
{ 
                return 
this.mData[12]; 
            } 
            
set 
            
{ 
                
this.mData[12] = value; 
            } 
        } 

        public 
Game.Enums.Color Color 
        
{ 
            
get 
            
{ 
                return (
Game.Enums.Color)((byte)BitConverter.ToUInt16(this.mData, 10)); 
            } 
            
set 
            
{ 
                
Writer.Write((ushort)value, 10, this.mData); 
            } 
        } 

        public 
byte Plus 
        
{ 
            
get 
            
{ 
                return 
this.mData[9]; 
            } 
            
set 
            
{ 
                
Writer.Write(value, 9, this.mData); 
            } 
        } 

        public 
uint Prize 
        
{ 
            
get 
            
{ 
                return 
BitConverter.ToUInt32(this.mData, 12); 
            } 
            
set 
            
{ 
                
Writer.Write(value, 12, this.mData); 
            } 
        } 

        public 
byte SocketOne 
        
{ 
            
get 
            
{ 
                return 
this.mData[7]; 
            } 
            
set 
            
{ 
                
Writer.Write(value, 7, this.mData); 
            } 
        } 

        public 
byte SocketTwo 
        
{ 
            
get 
            
{ 
                return 
this.mData[8]; 
            } 
            
set 
            
{ 
                
Writer.Write(value, 8, this.mData); 
            } 
        } 

        public 
LotteryTypes Type 
        
{ 
            
get 
            
{ 
                return (
LotteryTypes)BitConverter.ToUInt16(this.mData, 4); 
            } 
            
set 
            
{ 
                
Writer.Write((ushort)value, 4, this.mData); 
            } 
        } 
    } 
} 


نروح لكلاس packethandler
حط ده تحت اي region ولو مش عارف ابحث عن دا


كود:
#region PK Explorer 

واقفله من السالب و ارزع تحته ده


كود:
#region Lottery (1314)  
                
case 1314:  
                    {  

                        
Game.Lottery.Handle(packet, client);  
                        break;  
                    }  
                
#endregion 


ابحث عن ده


كود:
#region Gates 

وحط تحته ده


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


نروح لكلاس npc


كود:
#region LadyLuck 
                            
case 923: 
                            case 
924: 
                                { 
                                    switch (
npcRequest.OptionID) 
                                    { 
                                        case 
0: 
                                            { 
                                                if (
client.InLottery) 
                                                { 
                                                    
dialog.Text("Look!~Here~is~the~LuckyBox,~a~kind~of~magical~box~which~makes~your~dream~come~true."); 

                                                    
dialog.Option("Get~me~out~of~here!", 4); 
                                                    
dialog.Option("Tell~me~more~about~it~please.", 5); 
                                                    
dialog.Option("Exchange~Small~Lottery~Ticket.", 2); 
                                                    
dialog.Option("Really?~I~don`t~believe~it.", 255); 
                                                    
dialog.Avatar(159); 
                                                    
dialog.Send(); 
                                                } 
                                                else 
                                                { 
                                                    
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. If you are new to this place, let me show you around the Lottery Center, first!"); 

                                                    
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?", 6); 
                                                    
dialog.Option("Nice~to~see~you.", 255); 
                                                    
dialog.Avatar(123); 
                                                    
dialog.Send(); 
                                                } 
                                                break; 
                                            } 
                                        case 
1: 
                                            { 
                                                if (
client.Entity.Level >= 70) 
                                                { 
                                                    
client.InLottery = true; 
                                                    
client.LotteryEntries++; 
                                                    
client.Entity.Teleport(700, 40, 47); 
                                                } 

                                                else 
                                                { 
                                                    
dialog.Text("You may not join the lottery , you need level 70 first."); 
                                                    
dialog.Option("Ahh sorry.", 255); 
                                                    
dialog.Send(); 
                                                } 
                                                break; 
                                            } 
                                        case 
2: 
                                            { 
                                                if (!
client.Inventory.Contains(711504, 3)) 
                                                { 
                                                    
dialog.Text("You don`t have 3 Lottery Tickets to exchange for the Small Lottery Tickets."); 

                                                    
dialog.Option("Oops.", 255); 
                                                    
dialog.Avatar(123); 
                                                    
dialog.Send(); 
                                                } 
                                                else 
                                                { 
                                                    
client.Inventory.Remove(711504, 3); 
                                                    
client.Inventory.Add(3008856, 0, 1); 
                                                } 
                                                break; 
                                            } 
                                        case 
3: 
                                            { 
                                                
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"); 
                                                
dialog.Text("~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.Avatar(123); 
                                                
dialog.Send(); 
                                                break; 
                                            } 
                                        case 
4: 
                                            { 
                                                
client.Entity.Teleport(1036, 219, 193); 
                                                
client.InLottery = false; 
                                                break; 
                                            } 
                                        case 
5: 
                                            { 
                                                
dialog.Text("You~have~chance~to~get~whatever~you~desire~from~a~LuckyBox.~It~May~be~a~Dragonball,~+8~weapon,~or"); 
                                                
dialog.Text("~two-socket~boot,~you~don`t~know~what~you~will~get~from~the~Box,~it~totally~depends~on~your~luck.~Well,"); 
                                                
dialog.Text("~let`s~get~started~now.~Good~luck!"); 

                                                
dialog.Option("Thanks~a~lot.", 255); 
                                                
dialog.Avatar(159); 
                                                
dialog.Send(); 
                                                break; 
                                            } 
                                        case 
6: 
                                            { 
                                                
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."); 
                                                
dialog.Text("~Level 4 VIP: 40 extra chances. Level 5 VIP: 50 extra chances. Level 6 VIP: 60 extra chances."); 

                                                
dialog.Option("Got~it!", 255); 
                                                
dialog.Avatar(123); 
                                                
dialog.Send(); 
                                                break; 
                                            } 
                                    } 
                                    break; 
                                } 
                            
#endregion 
             #region LuckyBox 
                            
case 943: 
                            case 
937: 
                            case 
944: 
                            case 
939: 
                            case 
931: 
                                { 
                                    
Game.Lottery.LuckyBox(client.ActiveNpc, client, false); 
                                    break; 
                                } 
                            
#endregion 


افتح نافي كات حط دول في npcs


كود:
923    LadyLuck    2    9230    1036    212    188     
924    LadyLuck    2    9236    700    40    50     
944    lucky box    2    9287    700    45    56     
943    lucky box    2    9287    700    56    56     
939    lucky box    2    9287    700    45    45     
937    lucky box    2    9287    700    51    51     
931    lucky box    2    9287    700    56    45 


ودة كمان في ملف map في النافي كات


كود:
700    700    66124    0 


ارفع الجدول دة علي النافي كات


كود:
/* 
Navicat MySQL Data Transfer 

Source Server         : localhost_3306 
Source Server Version : 50045 
Source Host           : localhost:3306 
Source Database       : tq 

Target Server Type    : MYSQL 
Target Server Version : 50045 
File Encoding         : 65001 

Date: 2017-05-18 03:22:25 
*/ 

SET FOREIGN_KEY_CHECKS=0; 

-- ---------------------------- 
-- 
Table structure for `lottery` 
-- ---------------------------- 
DROP TABLE IF EXISTS `lottery`; 
CREATE TABLE `lottery` ( 
  `
id` int(4) unsigned NOT NULL default '0', 
  `
type` int(4) unsigned NOT NULL default '0', 
  `
rank` tinyint(1) unsigned NOT NULL default '0', 
  `
chance` int(4) unsigned NOT NULL default '0', 
  `
prize_name` char(32) NOT NULL default '', 
  `
prize_item` int(4) unsigned NOT NULL default '0', 
  `
color` tinyint(1) unsigned NOT NULL default '0', 
  `
hole_num` tinyint(1) unsigned NOT NULL default '0', 
  `
addition_lev` tinyint(1) unsigned NOT NULL default '0', 
  
PRIMARY KEY  (`id`) 
) 
ENGINE=MyISAM DEFAULT CHARSET=utf8; 

-- ---------------------------- 
-- 
Records of lottery 
-- ---------------------------- 
INSERT INTO `lottery` VALUES ('1', '1', '8', '100', '+1Stone', '730001', '1', '0', '1'); 
INSERT INTO `lottery` VALUES ('3', '1', '8', '100', 'DisguiseAmulet', '723724', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('4', '1', '8', '100', 'LifeFruitBasket', '723725', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('5', '1', '8', '60', 'PenitenceAmulet', '723727', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('7', '1', '8', '70', 'Class1MoneyBag', '723713', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('8', '1', '7', '100', '+2Stone', '730002', '3', '0', '2'); 
INSERT INTO `lottery` VALUES ('9', '1', '7', '100', 'ExpPotion', '723017', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('10', '1', '7', '100', 'ExpBall', '723700', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('12', '1', '7', '70', 'Class2MoneyBag', '723714', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('13', '1', '6', '50', 'RefinedMoonGem', '700062', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('14', '1', '6', '10', 'RefinedFuryGem', '700022', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('15', '1', '6', '30', 'RefinedVioletGem', '700052', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('16', '1', '6', '100', '+1StonePack', '723712', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('17', '1', '6', '1', 'MeteorTearPack', '723711', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('18', '1', '6', '70', 'Class3MoneyBag', '723715', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('19', '1', '5', '100', '+3Stone', '730003', '4', '0', '3'); 
INSERT INTO `lottery` VALUES ('20', '1', '5', '80', 'RefinedDragonGem', '700012', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('21', '1', '5', '80', 'RefinedPhoenixGem', '700002', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('22', '1', '5', '80', 'RefinedRainbowGem', '700032', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('23', '1', '5', '70', 'Class4MoneyBag', '723716', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('24', '1', '4', '60', 'DragonBall', '1088000', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('25', '1', '4', '80', '+4Stone', '730004', '3', '0', '4'); 
INSERT INTO `lottery` VALUES ('26', '1', '4', '100', 'PrayingStone(S)', '1200000', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('27', '1', '4', '100', 'BlackTulip', '723584', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('28', '1', '4', '100', 'SashToken(S)', '722840', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('29', '1', '4', '70', 'Class5MoneyBag', '723717', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('30', '1', '4', '50', 'WhitePhoenix', '181305', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('31', '1', '4', '50', 'BrownPhoenix', '181405', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('32', '1', '4', '50', 'BlackPhoenix', '181505', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('33', '1', '4', '50', 'RedPhoenix', '181605', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('34', '1', '4', '50', 'GreenPhoenix', '181705', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('35', '1', '4', '50', 'BluePhoenix', '181805', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('36', '1', '4', '50', 'PurplePhoenix', '181905', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('37', '1', '4', '50', 'WhiteElegance', '181315', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('38', '1', '4', '50', 'BrownElegance', '181415', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('39', '1', '4', '50', 'BlackElegance', '181515', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('40', '1', '4', '50', 'RedElegance', '181615', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('41', '1', '4', '50', 'GreenElegance', '181715', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('42', '1', '4', '50', 'BlueElegance', '181815', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('43', '1', '4', '50', 'PurpleElegance', '181915', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('44', '1', '4', '50', 'WhiteCelestial', '181325', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('45', '1', '4', '50', 'BrownCelestial', '181425', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('46', '1', '4', '50', 'BlackCelestial', '181525', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('47', '1', '4', '50', 'RedCelestial', '181625', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('48', '1', '4', '50', 'GreenCelestial', '181725', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('49', '1', '4', '50', 'BlueCelestial', '181825', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('50', '1', '4', '50', 'PurpleCelestial', '181925', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('51', '1', '4', '50', 'WeddingGown', '181335', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('52', '1', '4', '50', 'ColorfulDress', '181345', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('53', '1', '4', '50', 'DarkWizard', '181355', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('54', '1', '4', '50', 'PrairieWind', '181365', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('55', '1', '4', '50', 'SongofTianshan', '181375', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('56', '1', '4', '50', 'RoyalDignity', '181385', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('57', '1', '4', '50', 'Daisy', '181395', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('58', '1', '4', '50', 'SouthofCloud', '182305', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('59', '1', '4', '50', 'BonfireNight', '182315', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('60', '1', '4', '50', 'AngelicalDress', '182325', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('61', '1', '3', '80', '+5Stone', '730005', '5', '0', '5'); 
INSERT INTO `lottery` VALUES ('62', '1', '3', '100', 'PrayingStone(L)', '1200002', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('63', '1', '3', '100', 'SuperTortoiseGem', '700073', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('64', '1', '3', '100', 'MagicalBottle', '2100045', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('65', '1', '3', '120', 'ExemptionToken', '723701', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('66', '1', '3', '120', 'Class6MoneyBag', '723718', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('67', '1', '3', '70', 'Class7MoneyBag', '723719', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('68', '1', '3', '100', 'SuperWarArmor', '130089', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('69', '1', '3', '100', 'SuperMonkCoronet', '118089', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('70', '1', '3', '100', 'SuperBasaltArmor', '131089', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('71', '1', '3', '100', 'SuperViolentHelmet', '111089', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('72', '1', '3', '100', 'SuperRhinoCoat', '133079', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('73', '1', '3', '100', 'SuperAntlerHat', '113069', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('74', '1', '3', '100', 'SuperConquestGown', '134099', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('75', '1', '3', '100', 'SuperStarCap', '114099', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('76', '1', '3', '70', 'SuperGoldBag', '121189', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('77', '1', '3', '70', 'SuperDragonNecklace', '120189', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('78', '1', '3', '70', 'SuperBlueBracelet', '152189', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('79', '1', '3', '70', 'SuperJadeEarring', '117089', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('80', '1', '3', '70', 'SuperDiamondRing', '150199', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('81', '1', '3', '90', 'SuperJetHeavyRing', '151179', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('82', '1', '3', '70', 'SuperKylinBoots', '160199', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('83', '1', '3', '70', 'SuperCloudBacksword', '421199', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('84', '1', '3', '70', 'SuperRosewoodBow', '500189', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('85', '1', '3', '100', 'SuperThornShield', '900089', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('86', '1', '3', '70', 'SuperRainbowBlade', '410199', '5', '0', '0'); 
INSERT INTO `lottery` VALUES ('87', '1', '3', '70', 'SuperLoyalSword', '420199', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('88', '1', '3', '100', 'SuperDemonHook', '430199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('89', '1', '3', '100', 'SuperLightningWhip', '440199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('90', '1', '3', '100', 'SuperGoldAxe', '450199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('91', '1', '3', '100', 'SuperShiningHammer', '460199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('92', '1', '3', '70', 'SuperSnakeClub', '480199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('93', '1', '3', '100', 'SuperThunderScepter', '481199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('94', '1', '3', '100', 'SuperRainbowDagger', '490199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('95', '1', '3', '100', 'SuperTigerGlaive', '510199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('96', '1', '3', '100', 'SuperGrimPoleaxe', '530199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('97', '1', '3', '100', 'SuperPetalLongHammer', '540199', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('98', '1', '3', '100', 'SuperLance', '560199', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('99', '1', '3', '100', 'SuperSilverHalbert', '580199', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('100', '1', '3', '100', 'SuperCopperWand', '561199', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('101', '1', '3', '70', '2Socket-EliteIronBacksword', '421088', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('102', '1', '3', '70', '2Socket-EliteQinBow', '500088', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('103', '1', '3', '70', '2Socket-EliteRattanShield', '900018', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('104', '1', '3', '70', '2Socket-EliteMoonBlade', '410098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('105', '1', '3', '100', '2Socket-EliteFangSword', '420098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('106', '1', '3', '100', '2Socket-EliteAntlerHook', '430098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('107', '1', '3', '100', '2Socket-EliteTwinWhip', '440098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('108', '1', '3', '100', '2Socket-ElitePeaceAxe', '450098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('109', '1', '3', '100', '2Socket-EliteMelonHammer', '460098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('110', '1', '3', '70', '2Socket-EliteWarClub', '480098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('111', '1', '3', '100', '2Socket-EliteWishScepter', '481098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('112', '1', '3', '100', '2Socket-EliteCaoDagger', '490098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('113', '1', '3', '100', '2Socket-EliteUnionGlaive', '510098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('114', '1', '3', '100', '2Socket-EliteTwinPoleaxe', '530098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('115', '1', '3', '100', '2Socket-EliteGreatLongHammer', '540098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('116', '1', '3', '100', '2Socket-EliteLuckSpear', '560098', '4', '2', '0'); 
INSERT INTO `lottery` VALUES ('117', '1', '3', '100', '2Socket-EliteGoldHalbert', '580098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('118', '1', '3', '100', '2Socket-EliteShaolinWand', '561098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('119', '1', '2', '80', '+6Stone', '730006', '2', '0', '6'); 
INSERT INTO `lottery` VALUES ('120', '1', '2', '100', 'MiraculousGourd', '2100025', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('121', '1', '2', '100', 'Sash(L)', '1100009', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('124', '1', '2', '100', '1Socket-EliteDemonArmor', '130058', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('125', '1', '2', '100', '1Socket-EliteGoldCoronet', '118058', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('126', '1', '2', '100', '1Socket-EliteChainedArmor', '131058', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('127', '1', '2', '100', '1Socket-ElitePearlHelmet', '111058', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('128', '1', '2', '100', '1Socket-EliteApeCoat', '133048', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('129', '1', '2', '100', '1Socket-EliteLeopardHat', '113038', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('130', '1', '2', '100', '1Socket-ElitePowerGown', '134058', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('131', '1', '2', '100', '1Socket-EliteSharkCap', '114068', '5', '1', '0'); 
INSERT INTO `lottery` VALUES ('132', '1', '2', '70', '1Socket-EliteAmbergrisBag', '121128', '1', '1', '0'); 
INSERT INTO `lottery` VALUES ('133', '1', '2', '70', '1Socket-ElitePlatinaNecklace', '120128', '1', '1', '0'); 
INSERT INTO `lottery` VALUES ('134', '1', '2', '70', '1Socket-EliteBoneBracelet', '152128', '1', '1', '0'); 
INSERT INTO `lottery` VALUES ('135', '1', '2', '70', '1Socket-EliteHeartofOcean', '117068', '1', '1', '0'); 
INSERT INTO `lottery` VALUES ('136', '1', '2', '70', '1Socket-EliteJadeRing', '150118', '1', '1', '0'); 
INSERT INTO `lottery` VALUES ('137', '1', '2', '90', '1Socket-EliteDarkHeavyRing', '151118', '2', '1', '0'); 
INSERT INTO `lottery` VALUES ('138', '1', '2', '70', '1Socket-EliteLightBoots', '160098', '2', '1', '0'); 
INSERT INTO `lottery` VALUES ('174', '1', '1', '100', '2Socket-EliteDipperArmor', '130048', '5', '2', '0'); 
INSERT INTO `lottery` VALUES ('175', '1', '1', '100', '2Socket-EliteJadeCoronet', '118048', '5', '2', '0'); 
INSERT INTO `lottery` VALUES ('176', '1', '1', '100', '2Socket-EliteBrightArmor', '131048', '5', '2', '0'); 
INSERT INTO `lottery` VALUES ('177', '1', '1', '100', '2Socket-EliteSyeniticHelmet', '111048', '5', '2', '0'); 
INSERT INTO `lottery` VALUES ('178', '1', '1', '100', '2Socket-EliteWolfCoat', '133028', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('179', '1', '1', '100', '2Socket-EliteJackalHat', '113028', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('180', '1', '1', '100', '2Socket-ElitePureGown', '134048', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('181', '1', '1', '100', '2Socket-EliteCloudCap', '114048', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('182', '1', '1', '70', '2Socket-EliteBeanBag', '121098', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('183', '1', '1', '70', '2Socket-EliteGoldNecklace', '120098', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('184', '1', '1', '70', '2Socket-EliteGoldBracelet', '152088', '1', '2', '0'); 
INSERT INTO `lottery` VALUES ('185', '1', '1', '70', '2Socket-EliteTasselEarring', '117048', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('186', '1', '1', '70', '2Socket-EliteIvoryRing', '150098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('187', '1', '1', '70', '2Socket-EliteBoneHeavyRing', '151098', '3', '2', '0'); 
INSERT INTO `lottery` VALUES ('188', '1', '1', '70', '2Socket-EliteCrocodileBoots', '160118', '2', '2', '0'); 
INSERT INTO `lottery` VALUES ('189', '1', '3', '100', 'BlueDream', '182335', '1', '0', '0'); 
INSERT INTO `lottery` VALUES ('190', '1', '3', '100', 'MoonOrchid', '182345', '2', '0', '0'); 
INSERT INTO `lottery` VALUES ('191', '1', '3', '100', 'FlyingFeather', '182355', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('192', '1', '3', '100', 'HeavenScent', '182365', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('122', '1', '2', '150', 'Class8MoneyBag', '723720', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('123', '1', '2', '70', 'Class9MoneyBag', '723721', '4', '0', '0'); 
INSERT INTO `lottery` VALUES ('139', '1', '1', '120', 'Class10MoneyBag', '723722', '3', '0', '0'); 
INSERT INTO `lottery` VALUES ('140', '1', '1', '70', 'TopMoneyBag', '723723', '3', '0', '0'); 


روح جدول entities واعمل ديزاين للجدول وعمل زي الصورة دية




كدة احنا خلصنا الحمد لله مبروك عليك الوتري فكسيد زي كونكر اونلاين بظبط





التعديل الأخير تم بواسطة Mero ; 2019-04-28 الساعة 03:28 PM