I borrowed this packet from pro4never's source but I can't make it work.
Any ideas?
Any ideas?
Quote:
public static GamePacket RefineryInfo(Item I, bool self, uint Pos,uint Type,uint Level,uint Effect,uint Expires)
{
byte[] Pack = new byte[44];
WriteUInt16(36, 0, Pack);
WriteUInt16(2077, 2, Pack);
WriteUInt32(Pos, 4, Pack);//position
WriteUInt32(I.UID, 8, Pack);
if (!self)
WriteUInt32(2, 12, Pack);
// if (I.Refinery != null)
// {
WriteUInt32((uint)Type, 16, Pack);//refinery type
WriteUInt32(Level, 20, Pack);//lvl
WriteUInt32(Effect, 24, Pack);//effect
WriteUInt32(Expires, 28, Pack);//time remaining
// }
// else return new byte[] { };
return new GamePacket(Pack);
}