#GumpSerial is the serial the server gave the gump selected by #GumpIndex, in
the usual EUO format. Only gumps the server sends have one (#GumpName is
generic_gump).
It changes every time the server opens the gump, even the same one. To recognise a gump, use
#GumpTypeID. The serial tells two copies apart: a window that closed and
opened again has a new one.
Reads N/A for a window that is not a server gump, and on client builds older than 7.0.29.97 or from
7.0.30 to 7.0.46. Reads N/A when no gump is selected: none is open, ScanGumps has not run, or #GumpIndex is past #GumpCnt.
Example
Section titled “Example”scangumpsset %first #GumpSerialwait 20scangumpsif #GumpSerial <> %first event sysmessage The window in front is new.halt