Register for your free account! | Forgot your password?

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

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

Advertisement



Ware house Correct Packet

Discussion on Ware house Correct Packet within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Ware house Correct Packet

Something wrong this code... The Item has a Dragon Soul in it but when I put it in the warehouse dragon Soul cant be seen only the super one also the progress cant be seen.... I think some offset here are wrong..


PHP Code:
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);
        }
    } 
Thanks in advance for those who will give me the clue or solution on this.
marlyandedsel is offline  
Old 06/25/2012, 04:28   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
What source and client version?
Zeroxelli is offline  
Old 06/25/2012, 05:00   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
5518+

5518+ Impulse
marlyandedsel is offline  
Old 06/25/2012, 05:26   #4
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
WriteUInt32(item.SocketProgress, 52, buffer);
WriteUInt32(item.PlusProgress, 56, buffer);

Are Ignored By Server so they r useless Delete them
shadowman123 is offline  
Old 06/25/2012, 06:40   #5
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
ok... I have delted them... but are the offset are just fine?
marlyandedsel is offline  
Old 06/25/2012, 06:47   #6
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Not sure how souls actually work in 5518, but isn't the staticID set to that of the soul?
Zeroxelli is offline  
Old 06/25/2012, 07:21   #7
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Well You cant see the Item Purified in the WareHouse Cuz its offsets hasnt been added to the Append void .. thats y .. and Socket progress / Plus Progresses Are Ignored As i Said

So what we need to find :-

1 - Stack Size of items inside WareHouse
2 - Item Effect
3 - PurificationItemID

I got the Item Effect / Stack Size but for Purification ItemID i Tried Alot of values but it didnt work

If i had packet Sniffer i'd have Got it so easily
shadowman123 is offline  
Thanks
1 User
Old 06/25/2012, 07:29   #8
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
ohh... me to..
marlyandedsel is offline  
Thanks
1 User
Old 06/25/2012, 08:32   #9
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
If the item displays the soul correctly after being purified, then you should already have the PurificationItemID. If not, store the real ItemID before purification, and then subtract it from the new ItemID. Though that's unnecessary since you should have the PurificationItemID regardless.
Zeroxelli is offline  
Old 06/25/2012, 09:11   #10
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by Zeroxelli View Post
If the item displays the soul correctly after being purified, then you should already have the PurificationItemID. If not, store the real ItemID before purification, and then subtract it from the new ItemID. Though that's unnecessary since you should have the PurificationItemID regardless.
well The Item Displays the Soul Correctly after being Purified .. So the Proble isnt from PuficiationItemID ( it has a value ) .. but the main problem is i dont know whats the offset Represent PuyrificationItemID .. So once i know that the problem would be Solved
shadowman123 is offline  
Old 06/25/2012, 09:14   #11
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Quote:
Originally Posted by shadowman123 View Post
well The Item Displays the Soul Correctly after being Purified .. So the Proble isnt from PuficiationItemID ( it has a value ) .. but the main problem is i dont know whats the offset Represent PuyrificationItemID .. So once i know that the problem would be Solved
Just input it in every offset until it works.
Zeroxelli is offline  
Old 06/25/2012, 09:36   #12
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by Zeroxelli View Post
Just input it in every offset until it works.
Tried Alot And ill keep Doing till i get Valid offset
shadowman123 is offline  
Reply


Similar Threads Similar Threads
[help] House problem *make a seperate house for each character*
06/06/2009 - CO2 Private Server - 2 Replies
Ok so I made a house code like you would see in another post but they way I made it seems like everyone would be teleported to the same house. Here's an example of it. Simple house... if (MyChar.InventoryContains(721170, 1)) { MyChar.Teleport(1098, 32, 40); } The way it's put you can see it looks like everyone would be teleported to the same place. I haven't tried to see...
Pa Correct nmn toh~
08/18/2008 - RF Online - 9 Replies
Sir..pa correct nmn sa makakabasa n2.. ung sinasabi po ng iba na sa Search lng mahahanap ung mga hacks na gusto ko... san ako mag Search d2 sa forums na toh oh sa iba?? pa correct ^^
Ware House and Pharmacist and other NPC's
12/08/2005 - Conquer Online 2 - 7 Replies
Is it possible to put WhareHouse, Pharmacist and other NPC's in Lab map?... how?.. can anyone help me here on how to Hex or Edit?
Ware House and Pharmacist and other NPC
09/01/2005 - Conquer Online 2 - 11 Replies
Is it possible to put WhareHouse, Pharmacist and other NPC's in Lab map?... how?.. can anyone help me here on how to Hex or Edit?



All times are GMT +1. The time now is 04:44.


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.