|
You last visited: Today at 19:44
Advertisement
lottery?
Discussion on lottery? within the CO2 Private Server forum part of the Conquer Online 2 category.
03/21/2013, 01:14
|
#1
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
lottery?
what the hell that had happend to 1314 i compare the old packet and the newest one and notice that no thing changed
|
|
|
03/21/2013, 01:17
|
#2
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
you are wrong dude .. Its Length Had Changed instead of 24 it became 20 and ItemID offset had changed too
|
|
|
03/21/2013, 01:56
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
Quote:
Originally Posted by shadowman123
you are wrong dude .. Its Length Had Changed instead of 24 it became 20 and ItemID offset had changed too
|
ohh i notice Length but i didn't notice itemid
i think the ItemID offest is 12 and still not working.
|
|
|
03/21/2013, 05:06
|
#4
|
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
|
still works very fine with me here is my structure
byte(type,4)
byte(Gem1,7)
byte(Gem2,8)
byte(plus,9)
byte(color,10)
byte(Jades,11)
uint(ItemId,12)
|
|
|
03/21/2013, 10:59
|
#5
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
sure it will work fine cuz u have updated it
|
|
|
03/21/2013, 13:29
|
#6
|
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
|
Quote:
Originally Posted by shadowman123
sure it will work fine cuz u have updated it
|
i ddnt , this is my 5660 structure or so, can't really remember
|
|
|
03/21/2013, 14:04
|
#7
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 1
|
Quote:
Originally Posted by EgyptianMano
still works very fine with me here is my structure
byte(type,4)
byte(Gem1,7)
byte(Gem2,8)
byte(plus,9)
byte(color,10)
byte(Jades,11)
uint(ItemId,12)
|
when i use this structure client disconnect
its wrong
|
|
|
03/21/2013, 14:30
|
#8
|
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
|
i don't think so, notice that i just put the info he needs ,u still need to put the packet length and type at the top of the packet and then seal it with TQServer
the packet length is 20 and the type is 1314
|
|
|
03/21/2013, 23:52
|
#9
|
elite*gold: 0
Join Date: Mar 2013
Posts: 87
Received Thanks: 6
|
Quote:
Originally Posted by EgyptianMano
still works very fine with me here is my structure
byte(type,4)
byte(Gem1,7)
byte(Gem2,8)
byte(plus,9)
byte(color,10)
byte(Jades,11)
uint(ItemId,12)
|
nice EgyptianMano but when i use it nothing changed lottery screen is not appear
|
|
|
03/22/2013, 00:05
|
#10
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by EgyptianMano
i don't think so, notice that i just put the info he needs ,u still need to put the packet length and type at the top of the packet and then seal it with TQServer
the packet length is 20 and the type is 1314
|
dude u r Wrong .. b4 patch 5700 the the length was 24 after 5700 its 20 u know what will happen when u send wrong packet length to client ? guess what .. Yea the client disconnect and at offset 16 there were the ItemId of won item after 5700 it had changed to 12 so ?
Quote:
Originally Posted by MrCaSpR
nice EgyptianMano but when i use it nothing changed lottery screen is not appear
|
sure nothing will appear cuz u havent sent the Packet type and length
|
|
|
03/22/2013, 00:12
|
#11
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
Quote:
Originally Posted by shadowman123
sure nothing will appear cuz u havent sent the Packet type and length
|
Packet Type 1314.
Length 20.
updated and still nothing appears
|
|
|
03/22/2013, 00:15
|
#12
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
Quote:
Originally Posted by shadowman123
dude u r Wrong .. b4 patch 5700 the the length was 24 after 5700 its 20 u know what will happen when u send wrong packet length to client ? guess what .. Yea the client disconnect and at offset 16 there were the ItemId of won item after 5700 it had changed to 12 so ?
sure nothing will appear cuz u havent sent the Packet type and length
|
already done and same issue
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Conquer_Online_Server.Network.GamePackets
{
class LotterySystem : Writer, Interfaces.IPacket
{
public const ushort Accept = 0, AddJade = 1, Continue = 2;
byte[] Buffer;
public LotterySystem(bool Create)
{
if (Create)
{
Buffer = new byte[32];
WriteUInt16(20, 0, Buffer);
WriteUInt16(1314, 2, Buffer);
WriteByte(3, 4, Buffer);
WriteByte(3, 10, Buffer);
WriteByte(2, 5, Buffer);
WriteByte(2, 6, Buffer);
}
}
public byte Type
{
get { return Buffer[4]; }
set { Buffer[4] = value; }
}
public byte SocketGem1
{
get { return Buffer[7]; }
set { Buffer[7] = value; }
}
public byte SocketGem2
{
get { return Buffer[8]; }
set { Buffer[8] = value; }
}
public byte Plus
{
get { return Buffer[9]; }
set { Buffer[9] = value; }
}
public byte ItemColor
{
get { return Buffer[10]; }
set { Buffer[10] = value; }
}
public byte JadesAdded
{
get { return Buffer[11]; }
set { Buffer[11] = value; }
}
public ushort LottoTimes
{
get { return BitConverter.ToUInt16(Buffer, 12); }
set { WriteUInt16(value, 12, Buffer); }
}
public ushort LottoTimes1
{
get { return BitConverter.ToUInt16(Buffer, 13); }
set { WriteUInt16(value, 13, Buffer); }
}
public uint ItemID
{
get { return BitConverter.ToUInt32(Buffer, 12); }
set { WriteUInt32(value, 12, Buffer); }
}
public void Deserialize(byte[] buffer)
{
Buffer = buffer;
}
public byte[] ToArray()
{
return Buffer;
}
public void Send(Client.GameState client)
{
client.Send(Buffer);
}
}
}
|
|
|
03/22/2013, 00:23
|
#13
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
Quote:
Originally Posted by abdoumatrix
already done and same issure
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Conquer_Online_Server.Network.GamePackets
{
class LotterySystem : Writer, Interfaces.IPacket
{
public const ushort Accept = 0, AddJade = 1, Continue = 2;
byte[] Buffer;
public LotterySystem(bool Create)
{
if (Create)
{
Buffer = new byte[32];
WriteUInt16(20, 0, Buffer);
WriteUInt16(1314, 2, Buffer);
WriteByte(3, 4, Buffer);
WriteByte(3, 10, Buffer);
WriteByte(2, 5, Buffer);
WriteByte(2, 6, Buffer);
}
}
public byte Type
{
get { return Buffer[4]; }
set { Buffer[4] = value; }
}
public byte SocketGem1
{
get { return Buffer[7]; }
set { Buffer[7] = value; }
}
public byte SocketGem2
{
get { return Buffer[8]; }
set { Buffer[8] = value; }
}
public byte Plus
{
get { return Buffer[9]; }
set { Buffer[9] = value; }
}
public byte ItemColor
{
get { return Buffer[10]; }
set { Buffer[10] = value; }
}
public byte JadesAdded
{
get { return Buffer[11]; }
set { Buffer[11] = value; }
}
public ushort LottoTimes
{
get { return BitConverter.ToUInt16(Buffer, 12); }
set { WriteUInt16(value, 12, Buffer); }
}
public ushort LottoTimes1
{
get { return BitConverter.ToUInt16(Buffer, 13); }
set { WriteUInt16(value, 13, Buffer); }
}
public uint ItemID
{
get { return BitConverter.ToUInt32(Buffer, 16); }
set { WriteUInt32(value, 16, Buffer); }
}
public void Deserialize(byte[] buffer)
{
Buffer = buffer;
}
public byte[] ToArray()
{
return Buffer;
}
public void Send(Client.GameState client)
{
client.Send(Buffer);
}
}
}
|
u just did Length
|
|
|
03/22/2013, 00:26
|
#14
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
Quote:
Originally Posted by |xabi|
u just did Length
|
copy mistake but i do it right
ty anyway
|
|
|
03/22/2013, 00:28
|
#15
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
Quote:
Originally Posted by abdoumatrix
copy mistake but i do it right
ty anyway
|
what copy mistake mean??
remove lottotimes and change itemid from 16 to 12
|
|
|
 |
|
Similar Threads
|
Lottery GUI
03/27/2012 - CO2 Private Server - 3 Replies
Hey Guys
i need to know the
Packet, length and GUI Id of Lottery
Like This PIC
http://img829.imageshack.us/img829/9220/66140037. jpg
|
[HELP]Get more lottery!
03/19/2010 - Zero - 0 Replies
I need more than 10 times lottery? somebody can help!! I use on my private server :D
|
Best lottery
12/11/2007 - Conquer Online 2 - 2 Replies
Any can share there great experience in lottery, can any help me to show the the the box in lottery that gives best stuff... send me ur screen shoot please...i need ur help so i can choice the boz if i will enter lottery... a1 blaster help and my bro also here.....ty alllll
|
The Lottery
09/04/2007 - Conquer Online 2 - 8 Replies
Hiya Guys never made many contributions to the site and although this one might sound like another poor effort of a post it genuinly worked for me.
I found a DB recently and decided that the only real way for me to get rich was to gamble it, stupid i know but i discovered something very quickly,
First things first.
1) Always pick the same box
Now in my process i started randoming boxes and havent ever gotten anything decent but once i started selecting only one box the cycle started
...
|
All times are GMT +1. The time now is 19:47.
|
|