Hey guys,
Sorry for replying on old topic. But I'm having the same issue. The merchant window keeps popping up.
I use the function:
GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Merchant, GC.MyChar.merchant));
1. AddSend accepts parameter COPacket;
2. Packets.Status function looks like this:
Code:
public static COPacket Status(uint UID, Game.Status Type, ulong Value)
{
byte[] Packet = new byte[8 + 36];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)10017);
P.WriteInt32(UID);
P.WriteInt32(0x01);
P.WriteInt32((uint)Type);
P.WriteInt64((ulong)Value);
P.Move(12);
return P;
}
So yes it is using 10017, the Game.Status.Merchant enum is set to 38 and the value I'm sending is 255 (that's the value of my character). but still it isn't working.
Any help would be greatly appreciated.
Blaze
#SOLVED
I feel like an complete idiot. Made the same mistake hehe.
Solution: First make the call and after send the items.