Please Help Me WareHouse

06/28/2012 22:00 Adventure-MMO#1
View WareHouse items not working

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]



PHP Code:
using System;

namespace 
Conquer_Online_Server.Network.GamePackets
{
    public class 
Warehouse WriterInterfaces.IPacket
    
{
        public const 
byte Entire 0AddItem 1RemoveItem 2;
        private 
byte[] buffer;
        public 
Warehouse(bool Create)
        {
            if (
Create)
            {
                
buffer = new byte[32];
                
WriteUInt16(240buffer);
                
WriteUInt16(11022buffer);
            }
        }

        public 
uint NpcID
        
{
            
get { return BitConverter.ToUInt32(buffer4); }
            
set WriteUInt32(value4buffer); }
        }

        public 
byte Type
        
{
            
get
            
{
                return 
buffer[8];
            }
            
set
            
{
                
buffer[8] = value;
            }
        }

        public 
uint Count
        
{
            
get { return BitConverter.ToUInt32(buffer20); }
            
set
            
{
                if (
value 20)
                    throw new 
Exception("Invalid Count value.");
                
byte[] Buffer = new byte[24 + (72 value)];
                
WriteUInt16((ushort)(Buffer.Length 8), 0Buffer);
                
WriteUInt16(11022Buffer);
                
WriteUInt32(NpcID4Buffer);
                
WriteUInt32(Type8Buffer);
                
Buffer[9] = buffer[9];
                
WriteUInt32(value20Buffer);
                
buffer Buffer;
            }
        }

        public 
uint UID
        
{
            
get { return BitConverter.ToUInt32(buffer16); }
            
set WriteUInt32(value16buffer); }
        }

        public 
void Append(Interfaces.IConquerItem item)
        {
            
WriteUInt32(item.UID24buffer);
            
WriteUInt32(item.ID28buffer);
            
WriteByte((byte)item.SocketOne33buffer);
            
WriteByte((byte)item.SocketTwo34buffer);
            
WriteByte(item.Plus41buffer);
            
WriteByte(item.Bless42buffer);
            
WriteByte((byte)(item.Bound == true 0), 43buffer);
            
WriteUInt16(item.Enchant44buffer);
            
WriteUInt16((ushort)item.Effect46buffer);
            
WriteByte(item.Lock48buffer);
            
WriteByte((byte)(item.Suspicious == true 0), 49buffer);
            
WriteByte((byte)item.Color51buffer);
            
WriteUInt32(item.SocketProgress52buffer);
            
WriteUInt32(item.PlusProgress56buffer);
        }

        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 Zeroxelli#2
There are already threads about this, use the search function.
06/28/2012 22:30 Adventure-MMO#3
I have looked at is not helpful at all
06/28/2012 22:36 Zeroxelli#4
Asking the same question in another thread is not going to get you a different answer.
06/28/2012 22:52 Adventure-MMO#5
You get that?
06/28/2012 22:54 Zeroxelli#6
Get what..?
06/29/2012 00:28 vincentvdb#7
Wrong section? :)

#request move
06/29/2012 01:52 shadowman123#8
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 Zeroxelli#9
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 -Shunsui-#10
_- it's not the warehouse packet guys, Send the item artifact packet when sending the warehouse item. should fix it.