Chi Rank Structure.

05/07/2013 18:24 abdoumatrix#1
solved ty to teroareboss1.

#closed
05/08/2013 02:53 Mero.El.Omda#2
you hav'nt send the offsets by right way try more once again abdo my love and if i finish it will send to you wish me and you GL
05/08/2013 13:09 abdoumatrix#3
Quote:
Originally Posted by Mero.El.Omda View Post
you hav'nt send the offsets by right way try more once again abdo my love and if i finish it will send to you wish me and you GL

my only error as i think is in here

PHP Code:
//  wtr.Write((uint)1684852);
                    //  wtr.Write((uint)1684852);
                    
uint uid2 Conquer_Online_Server.BitConverter.ToUInt32(packet, ((40 xxChi.Tigerss[b].rank) + (16 * (xxChi.Tigerss[b].rank 1))));
                    
wtr.Write((uint)uid2);
                    
wtr.Write((uint)uid2); 
as it change at each rank and didnt't make the right value of the next.
the other offest r right.

u looked at the pic or the codes
cuz the pic the value is right i set it to that.:D

Anyway Ty and GL
I will give it a look again.
05/08/2013 14:22 teroareboss1#4
Quote:
Originally Posted by abdoumatrix View Post
my only error as i think is in here

PHP Code:
//  wtr.Write((uint)1684852);
                    //  wtr.Write((uint)1684852);
                    
uint uid2 Conquer_Online_Server.BitConverter.ToUInt32(packet, ((40 xxChi.Tigerss[b].rank) + (16 * (xxChi.Tigerss[b].rank 1))));
                    
wtr.Write((uint)uid2);
                    
wtr.Write((uint)uid2); 
as it change at each rank and didnt't make the right value of the next.
the other offest r right.

u looked at the pic or the codes
cuz the pic the value is right i set it to that.:D

Anyway Ty and GL
I will give it a look again.


Code:
  
.
.
.
            if (uid == 0x03938704)
                wtr.Write((uint)(Math.Min(xxChi.Turtless.Count, 10)));
[COLOR="Red"]wtr.Write((uint)0);[/COLOR]
  #region Dragon
            if (uid == 0x03938701)
            {
                for (int b = (int)pagenumber * 10; b <= pagenumber * 10 + Math.Min(10, xxChi.Dragonss.Count) - 1; b++)
                {
                    if (pagenumber == 1)




wtr.Write((uint)xxChi.Dragonss[b].rank);
wtr.Write((uint)0);
wtr.Write((uint)xxChi.Dragonss[b].dragons);//amount points
wtr.Write((uint)0);
wtr.Write(client.uid);
wtr.Write(client.uid);
// next add name....
for (int s = 0; s < 16; s++)
{
if (s < xxChi.Dragonss[b].name.Length)
{
wtr.Write((byte)xxChi.Dragonss[b].name[s]);
}
else
wtr.Write((byte)0);
}
for (int s = 0; s < 16; s++)
{
if (s < xxChi.Dragonss[b].name.Length)
{
wtr.Write((byte)xxChi.Dragonss[b].name[s]);
}
else
wtr.Write((byte)0);

}
05/08/2013 20:24 abdoumatrix#5
Quote:
Originally Posted by teroareboss1 View Post
Code:
  
.
.
.
            if (uid == 0x03938704)
                wtr.Write((uint)(Math.Min(xxChi.Turtless.Count, 10)));
[COLOR="Red"]wtr.Write((uint)0);[/COLOR]
  #region Dragon
            if (uid == 0x03938701)
            {
                for (int b = (int)pagenumber * 10; b <= pagenumber * 10 + Math.Min(10, xxChi.Dragonss.Count) - 1; b++)
                {
                    if (pagenumber == 1)




wtr.Write((uint)xxChi.Dragonss[b].rank);
wtr.Write((uint)0);
wtr.Write((uint)xxChi.Dragonss[b].dragons);//amount points
wtr.Write((uint)0);
wtr.Write(client.uid);
wtr.Write(client.uid);
// next add name....
for (int s = 0; s < 16; s++)
{
if (s < xxChi.Dragonss[b].name.Length)
{
wtr.Write((byte)xxChi.Dragonss[b].name[s]);
}
else
wtr.Write((byte)0);
}
for (int s = 0; s < 16; s++)
{
if (s < xxChi.Dragonss[b].name.Length)
{
wtr.Write((byte)xxChi.Dragonss[b].name[s]);
}
else
wtr.Write((byte)0);

}
Wow that was too helpful.
always love ur helpful reply and appreciate it too much.:D:handsdown::)
05/09/2013 02:51 InfamousNoone#6
your naming is awful "xxChi" "Dragonss" etc... learn standard conventions...