|
You last visited: Today at 04:44
Advertisement
Ware house Correct Packet
Discussion on Ware house Correct Packet within the CO2 Private Server forum part of the Conquer Online 2 category.
06/25/2012, 03:40
|
#1
|
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 : 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);
}
}
Thanks in advance for those who will give me the clue or solution on this.
|
|
|
06/25/2012, 04:28
|
#2
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
What source and client version?
|
|
|
06/25/2012, 05:00
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
5518+
5518+ Impulse
|
|
|
06/25/2012, 05:26
|
#4
|
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
|
|
|
06/25/2012, 06:40
|
#5
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
ok... I have delted them... but are the offset are just fine?
|
|
|
06/25/2012, 06:47
|
#6
|
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?
|
|
|
06/25/2012, 07:21
|
#7
|
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
|
|
|
06/25/2012, 07:29
|
#8
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
ohh... me to..
|
|
|
06/25/2012, 08:32
|
#9
|
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.
|
|
|
06/25/2012, 09:11
|
#10
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by Zeroxelli
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
|
|
|
06/25/2012, 09:14
|
#11
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Quote:
Originally Posted by shadowman123
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.
|
|
|
06/25/2012, 09:36
|
#12
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by Zeroxelli
Just input it in every offset until it works. 
|
Tried Alot And ill keep Doing till i get Valid offset
|
|
|
 |
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.
|
|