Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Please Help Me WareHouse

Discussion on Please Help Me WareHouse within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #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 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);
        }
    }

Adventure-MMO is offline  
Old 06/28/2012, 22:14   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
There are already threads about this, use the search function.
Zeroxelli is offline  
Old 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
Adventure-MMO is offline  
Old 06/28/2012, 22:36   #4
 
Zeroxelli's Avatar
 
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.
Zeroxelli is offline  
Old 06/28/2012, 22:52   #5
 
elite*gold: 0
Join Date: Mar 2012
Posts: 29
Received Thanks: 4
You get that?
Adventure-MMO is offline  
Old 06/28/2012, 22:54   #6
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Get what..?
Zeroxelli is offline  
Old 06/29/2012, 00:28   #7
 
vincentvdb's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 37
Received Thanks: 6
Wrong section?

#request move
vincentvdb is offline  
Old 06/29/2012, 01:52   #8
 
shadowman123's Avatar
 
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
shadowman123 is offline  
Old 06/29/2012, 01:56   #9
 
Zeroxelli's Avatar
 
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.
Zeroxelli is offline  
Old 06/29/2012, 06:31   #10
 
-Shunsui-'s Avatar
 
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.
-Shunsui- is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.