|
You last visited: Today at 04:41
Advertisement
lottery?
Discussion on lottery? within the CO2 Private Server forum part of the Conquer Online 2 category.
03/22/2013, 00:30
|
#16
|
elite*gold: 0
Join Date: Mar 2013
Posts: 87
Received Thanks: 6
|
Quote:
Originally Posted by |xabi|
what copy mistake mean??
remove lottotimes and change itemid from 16 to 12
|
man i changed it and nothing changed
|
|
|
03/22/2013, 00:32
|
#17
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Very bad Written Packet Structure
1 - why do u make bool constructor since u will alawys aassign this boolean to be True
2 - Incorrect Way
3 - just make it Simpler like
public static void SendLottery(Client.GameState client, uint ItemID)
{
// send the client the packet
}
|
|
|
03/22/2013, 00:36
|
#18
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
Finally Done.
(el7amed lellah)
Ty ***.
(dy tel3et moshkela tafha awy)
ty all for help and new lenght and offest
take a look here and u will figure it out
good luck all.
|
|
|
03/22/2013, 01:30
|
#19
|
elite*gold: 0
Join Date: Mar 2013
Posts: 87
Received Thanks: 6
|
GooooooooooD abdou
(wal3a ya 3m Men elly sa3dk Yad )
|
|
|
03/22/2013, 01:43
|
#20
|
elite*gold: 0
Join Date: Jul 2011
Posts: 45
Received Thanks: 7
|
use this
PHP Code:
public class LotteryNew : Writer, Interfaces.IPacket { public const byte Accept = 0, AddJade = 1, Continue = 2; byte[] Buffer; public LotteryNew() { Buffer = new byte[34]; WriteUInt16(26, 0, Buffer); WriteUInt16(1314, 2, Buffer); } public byte UN { get { return Buffer[4]; } set { Buffer[4] = value; } } public byte UN5 { get { return Buffer[5]; } set { Buffer[5] = value; } } public byte UN6 { get { return Buffer[6]; } set { Buffer[6] = value; } } public byte SocketOne { get { return Buffer[7]; } set { Buffer[7] = value; } } public byte SocketTwo { get { return Buffer[8]; } set { Buffer[8] = value; } } public byte Pluse { get { return Buffer[9]; } set { Buffer[9] = value; } } public byte Color { get { return Buffer[10]; } set { Buffer[10] = value; } } 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, 01:47
|
#21
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
Quote:
Originally Posted by korolos
use this
PHP Code:
public class LotteryNew : Writer, Interfaces.IPacket { public const byte Accept = 0, AddJade = 1, Continue = 2; byte[] Buffer; public LotteryNew() { Buffer = new byte[34]; WriteUInt16(26, 0, Buffer); WriteUInt16(1314, 2, Buffer); } public byte UN { get { return Buffer[4]; } set { Buffer[4] = value; } } public byte UN5 { get { return Buffer[5]; } set { Buffer[5] = value; } } public byte UN6 { get { return Buffer[6]; } set { Buffer[6] = value; } } public byte SocketOne { get { return Buffer[7]; } set { Buffer[7] = value; } } public byte SocketTwo { get { return Buffer[8]; } set { Buffer[8] = value; } } public byte Pluse { get { return Buffer[9]; } set { Buffer[9] = value; } } public byte Color { get { return Buffer[10]; } set { Buffer[10] = value; } } 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); } }
|
1st. ty
bas a7na aslan low homa 3'yarna el structure 1000000 mara bardo hya hya
el 3eeb fe el npc
mesh el structure ba3d el update
shofo el type we anta t3rafo
|
|
|
03/22/2013, 01:55
|
#22
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
Quote:
Originally Posted by korolos
use this
PHP Code:
public class LotteryNew : Writer, Interfaces.IPacket { public const byte Accept = 0, AddJade = 1, Continue = 2; byte[] Buffer; public LotteryNew() { Buffer = new byte[34]; WriteUInt16(26, 0, Buffer); WriteUInt16(1314, 2, Buffer); } public byte UN { get { return Buffer[4]; } set { Buffer[4] = value; } } public byte UN5 { get { return Buffer[5]; } set { Buffer[5] = value; } } public byte UN6 { get { return Buffer[6]; } set { Buffer[6] = value; } } public byte SocketOne { get { return Buffer[7]; } set { Buffer[7] = value; } } public byte SocketTwo { get { return Buffer[8]; } set { Buffer[8] = value; } } public byte Pluse { get { return Buffer[9]; } set { Buffer[9] = value; } } public byte Color { get { return Buffer[10]; } set { Buffer[10] = value; } } 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); } }
|
kero you just update the itemID offest and forget to update the length 20 instead of 26, i made the correct but i miss small thing
|
|
|
03/22/2013, 01:55
|
#23
|
elite*gold: 0
Join Date: Jul 2011
Posts: 45
Received Thanks: 7
|
Quote:
Originally Posted by abdoumatrix
1st. ty
bas a7na aslan low homa 3'yarna el structure 1000000 mara bardo hya hya
el 3eeb fe el npc
mesh el structure ba3d el update
shofo el type we anta t3rafo
|
are you sure u know how to use packets?
Quote:
Originally Posted by |xabi|
kero you just update the itemID offest and forget to update the length 20 instead of 26, i made the correct but i miss small thing
|
oh myyyyyyyyy the lenght if lower than that packet use it's problem
try use this packet struct with packet header 500 300 100 any lenght will work soz
are u sure u know much about packets and how it works?
|
|
|
03/22/2013, 02:08
|
#24
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
Quote:
Originally Posted by korolos
are you sure u know how to use packets?
|
akeed mesh zayak .anta ostaz lwa7dak aslan
bas 3shan ana 3reft el moshkela men eh
the problem concern here
PHP Code:
lotto.Type = 4;
check this and he will figure it out
PHP Code:
public enum LotteryAction { AcceptPrize = 0, AddTicket = 1, ContinueLottery = 2, DisplayPrize = 3 }
xabi low 3andak
Quote:
// client.LotteryEntries += 1;
// lotto.LottoTimes = (ushort)(10 - client.LotteryEntries);
|
fe el npc shelo we grab
hyst3'al tmam
|
|
|
03/22/2013, 02:34
|
#25
|
elite*gold: 0
Join Date: Jul 2011
Posts: 45
Received Thanks: 7
|
Quote:
Originally Posted by abdoumatrix
akeed mesh zayak .anta ostaz lwa7dak aslan
bas 3shan ana 3reft el moshkela men eh
the problem concern here
PHP Code:
lotto.Type = 4;
check this and he will figure it out
PHP Code:
public enum LotteryAction { AcceptPrize = 0, AddTicket = 1, ContinueLottery = 2, DisplayPrize = 3 }
xabi low 3andak
fe el npc shelo we grab
hyst3'al tmam
|
i asked u question
did you answer it?
are u sure u already know how packet works? et(Lottery packet)
|
|
|
03/22/2013, 06:12
|
#26
|
elite*gold: 0
Join Date: Oct 2010
Posts: 64
Received Thanks: 10
|
i fixed it a5eran
|
|
|
03/22/2013, 09:48
|
#27
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
i dont think that much know how to use it
|
|
|
03/22/2013, 10:10
|
#28
|
elite*gold: 0
Join Date: Mar 2013
Posts: 87
Received Thanks: 6
|
Quote:
Originally Posted by sala7mostafa
i fixed it a5eran
|
mabroooooooook ya sala7
|
|
|
03/22/2013, 10:24
|
#29
|
elite*gold: 0
Join Date: Mar 2011
Posts: 29
Received Thanks: 1
|
korolos ty bro it work 100% thank you verry much
but i want to ask you how to make lottery work slowly when addJade ??
|
|
|
03/22/2013, 14:12
|
#30
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
|
Quote:
Originally Posted by korolos
i asked u question
did you answer it?
are u sure u already know how packet works? et(Lottery packet)
|
lsa bt3almoh
ana lma radet kan 2asdy en el 3eeb men el sourcat el t3bana bta3tena mesh el structure bta3ak akeed .howa a7na la2yeeen .
we montesh baset fe el code
Ty for structure
(3'ba2 t2ol eh )
Quote:
Originally Posted by sala7mostafa
i fixed it a5eran
|
wal3a ya sala7
Quote:
Originally Posted by shadowman123
i dont think that much know how to use it
|
bthady el nfos anta
|
|
|
|
|
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 +2. The time now is 04:41.
|
|