I'm trying to build this packet to send it to the client so that it closes a gump before opening another one.
So, I am able to send the packet, but the client then stops after a few steps
Code: Select all
function CloseGump(mobile, pid, retval := 0)
var packet := CreatePacket(0xBF, 13);
packet.SetInt16(1, 0x4);
packet.SetInt32(3, pid);
packet.SetInt32(7, retval);
packet.SendPacket(mobile);
return 1;
endfunction