Dialoges are 2, shops are 1 (or the reverse) and wh's are 3.
If I click shops, the gui opens, if i click "normal" npc's the dialoge executes. If I klick a warehouse guy, it still executes the packet 2031 instead of 1009 with the propper subtype for show wh items / money
What am I doing wrong? Patch 4348.
Even if i explicitly send the open wh packet i get nothing.
HTML Code:
public static byte[] OpenWarehouse(uint NPCID, ulong Money)
{
ushort PacketType = 1009;
byte[] Packet = new byte[20];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*((uint*)(p + 4)) = (uint)NPCID;
*((ulong*)(p + 8)) = (ulong)Money;
*(p + 12) = (byte)(9 & 0xff);
}
return Packet;
}






