You last visited: Today at 02:22
Advertisement
Please Help Me WareHouse
Discussion on Please Help Me WareHouse within the CO2 Private Server forum part of the Conquer Online 2 category.
06/28/2012, 22:00
#1
elite*gold: 0
Join Date: Mar 2012
Posts: 29
Received Thanks: 4
Please Help Me WareHouse
View WareHouse items not working
PHP Code:
using System ;
namespace Conquer_Online_Server . Network . GamePackets
{
public class Warehouse : Writer , Interfaces . IPacket
{
public const byte Entire = 0 , AddItem = 1 , RemoveItem = 2 ;
private byte [] buffer ;
public Warehouse ( bool Create )
{
if ( Create )
{
buffer = new byte [ 32 ];
WriteUInt16 ( 24 , 0 , buffer );
WriteUInt16 ( 1102 , 2 , buffer );
}
}
public uint NpcID
{
get { return BitConverter . ToUInt32 ( buffer , 4 ); }
set { WriteUInt32 ( value , 4 , buffer ); }
}
public byte Type
{
get
{
return buffer [ 8 ];
}
set
{
buffer [ 8 ] = value ;
}
}
public uint Count
{
get { return BitConverter . ToUInt32 ( buffer , 20 ); }
set
{
if ( value > 20 )
throw new Exception ( "Invalid Count value." );
byte [] Buffer = new byte [ 8 + 24 + ( 72 * value )];
WriteUInt16 (( ushort )( Buffer . Length - 8 ), 0 , Buffer );
WriteUInt16 ( 1102 , 2 , Buffer );
WriteUInt32 ( NpcID , 4 , Buffer );
WriteUInt32 ( Type , 8 , Buffer );
Buffer [ 9 ] = buffer [ 9 ];
WriteUInt32 ( value , 20 , Buffer );
buffer = Buffer ;
}
}
public uint UID
{
get { return BitConverter . ToUInt32 ( buffer , 16 ); }
set { WriteUInt32 ( value , 16 , buffer ); }
}
public void Append ( Interfaces . IConquerItem item )
{
WriteUInt32 ( item . UID , 24 , buffer );
WriteUInt32 ( item . ID , 28 , buffer );
WriteByte (( byte ) item . SocketOne , 33 , buffer );
WriteByte (( byte ) item . SocketTwo , 34 , buffer );
WriteByte ( item . Plus , 41 , buffer );
WriteByte ( item . Bless , 42 , buffer );
WriteByte (( byte )( item . Bound == true ? 1 : 0 ), 43 , buffer );
WriteUInt16 ( item . Enchant , 44 , buffer );
WriteUInt16 (( ushort ) item . Effect , 46 , buffer );
WriteByte ( item . Lock , 48 , buffer );
WriteByte (( byte )( item . Suspicious == true ? 1 : 0 ), 49 , buffer );
WriteByte (( byte ) item . Color , 51 , buffer );
WriteUInt32 ( item . SocketProgress , 52 , buffer );
WriteUInt32 ( item . PlusProgress , 56 , buffer );
}
public byte [] ToArray ()
{
return buffer ;
}
public void Deserialize ( byte [] buffer )
{
this . buffer = buffer ;
}
public void Send ( Client . GameState client )
{
client . Send ( buffer );
}
}
}
06/28/2012, 22:14
#2
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
There are already threads about this, use the search function.
06/28/2012, 22:30
#3
elite*gold: 0
Join Date: Mar 2012
Posts: 29
Received Thanks: 4
I have looked at is not helpful at all
06/28/2012, 22:36
#4
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Asking the same question in another thread is not going to get you a different answer.
06/28/2012, 22:52
#5
elite*gold: 0
Join Date: Mar 2012
Posts: 29
Received Thanks: 4
You get that?
06/28/2012, 22:54
#6
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Get what..?
06/29/2012, 00:28
#7
elite*gold: 0
Join Date: Oct 2007
Posts: 37
Received Thanks: 6
Wrong section?
#request move
06/29/2012, 01:52
#8
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Well Sm1 had the Same problem .. But to be Honest I did Alot of Trial & Error method to check the Valid offset All i could get is :-
1 - Item Stack
2 - Inscribed or Not
3 - Remaining Time of Dragon Soul
4 - Item Effect
But couldnt Solve the Dragon Soul Issue
06/29/2012, 01:56
#9
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Keep in mind that the length of the packet could have changed, so don't limit yourself to the length that you currently have. Make the length larger, and try offsets in that range.
Edit: And in the future, do not PM me to ask if I can code things for you, especially not an entire source.
06/29/2012, 06:31
#10
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
_- it's not the warehouse packet guys, Send the item artifact packet when sending the warehouse item. should fix it.
All times are GMT +2. The time now is 02:23 .