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.
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
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.
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
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
[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?