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

الردود
11

المشاهدات
5189
 
Mero

Mero is on a distinguished road

    غير متواجد

المشاركات
151

+التقييم
0.07

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

الاقامة

نظام التشغيل

رقم العضوية
11
2019-04-28, 03:12 PM
المشاركة 1 
#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 RankChance
            public 
string Name
            public 
uint ID
            public 
byte Color
            public 
byte Sockets
            public 
byte Plus
            public 
uint NPCID

        } 
        public static List<
LotteryItemLotteryItems = 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 HeroConquerItem 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.Namestr4); 

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



            } 
            else 
            { 
                
Hero.Send(new Message(msgSystem.Drawing.Color.WhiteMessage.Talk)); 

            } 
        } 
        public static 
void GiveLotteryPrize(Conquer_Online_Server.Client.GameState Hema
        { 
            
LotteryRewardMessage(HemaHema.Entity.LotteryPrize); 
            
Conquer_Online_Server.Database.ConquerItemInformation Itemd = new Conquer_Online_Server.Database.ConquerItemInformation(Hema.Entity.LotteryItemID0); 
            
//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(ItemConquer_Online_Server.Game.Enums.ItemUse.CreateAndAdd); 


            
Hema.Entity.LotteryItemID 0
            
Hema.Entity.LotteryJadeAdd 0
        } 
        public static 
void LuckyBox(uint npcIDConquer_Online_Server.Client.GameState hbool jade
        { 
            if (
jade || h.Inventory.Contains(0xadb503)) 
            { 
                if (!
jade
                { 
                    
h.LotteryEntries += 1
                    
h.Activenes.SendSinglePacket(hActiveness.Types.LotteryTaskh.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) != && 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(0xadb503)) 
                            { 

                                
h.Inventory.Remove(0xadb503); 
                            } 
                            else 
                            { 
                                return; 
                            } 
                        } 
                        else 
                        { 
                            if (
h.Inventory.Contains(0xadb501)) 
                            { 

                                
h.Inventory.Remove(0xadb501); 
                            } 
                            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.Nameh.Entity.Name); 
                
h.Send(new Message(msgSystem.Drawing.Color.WhiteMessage.Talk)); 

            } 
        } 
        public static 
void Handle(byte[] DataConquer_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(0xadb501)) 
                        { 
                            
LuckyBox(0Clienttrue); 
                        } 
                        break; 

                    case 
Conquer_Online_Server.Network.GamePackets.Lottery.LotteryTypes.Continue: 
                        
LuckyBox(0Clientfalse); 
                        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(260this.mData); 
            
Writer.Write((ushort)13142this.mData); 
            
Writer.Write((byte)16this.mData); 
        } 

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

        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.mData10)); 
            } 
            
set 
            

                
Writer.Write((ushort)value10this.mData); 
            } 
        } 

        public 
byte Plus 
        

            
get 
            

                return 
this.mData[9]; 
            } 
            
set 
            

                
Writer.Write(value9this.mData); 
            } 
        } 

        public 
uint Prize 
        

            
get 
            

                return 
BitConverter.ToUInt32(this.mData12); 
            } 
            
set 
            

                
Writer.Write(value12this.mData); 
            } 
        } 

        public 
byte SocketOne 
        

            
get 
            

                return 
this.mData[7]; 
            } 
            
set 
            

                
Writer.Write(value7this.mData); 
            } 
        } 

        public 
byte SocketTwo 
        

            
get 
            

                return 
this.mData[8]; 
            } 
            
set 
            

                
Writer.Write(value8this.mData); 
            } 
        } 

        public 
LotteryTypes Type 
        

            
get 
            

                return (
LotteryTypes)BitConverter.ToUInt16(this.mData4); 
            } 
            
set 
            

                
Writer.Write((ushort)value4this.mData); 
            } 
        } 
    } 



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


كود:
#region PK Explorer 

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


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

                        
Game.Lottery.Handle(packetclient);  
                        break;  
                    }  
                
#endregion 


ابحث عن ده


كود:
#region Gates 

وحط تحته ده


كود:
#region SmallLotteryTicketPack  
                
case 724002:  
                    {  
                        
client.Inventory.Remove(itemGame.Enums.ItemUse.RemoveFromStack);  
                        
client.Inventory.Add(71150403);  
                        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(7004047); 
                                                } 

                                                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(7115043)) 
                                                { 
                                                    
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(7115043); 
                                                    
client.Inventory.Add(300885601); 
                                                } 
                                                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(1036219193); 
                                                
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.ActiveNpcclientfalse); 
                                    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` ( 
  `
idint(4unsigned NOT NULL default '0'
  `
typeint(4unsigned NOT NULL default '0'
  `
ranktinyint(1unsigned NOT NULL default '0'
  `
chanceint(4unsigned NOT NULL default '0'
  `
prize_namechar(32NOT NULL default ''
  `
prize_itemint(4unsigned NOT NULL default '0'
  `
colortinyint(1unsigned NOT NULL default '0'
  `
hole_numtinyint(1unsigned NOT NULL default '0'
  `
addition_levtinyint(1unsigned NOT NULL default '0'
  
PRIMARY KEY  (`id`) 
ENGINE=MyISAM DEFAULT CHARSET=utf8

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


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




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