GetGumpID

Returns Gump ID for gump with list index GumpIndex

Returns 0 if gump index incorrect (out of gumps list) or char disconnected.

NB: GumpID CAN BE unique, but thats not a rule!

Pascal Syntax:

function GetGumpID(GumpIndex : Integer) : Cardinal;

Pascal Example:

If GetGumpsCount > 0 then
  if GetGumpID(GetGumpsCount-1) = $15A7DDF then
    CloseSimpleGump(GetGumpsCount-1);

Pascal Example 2:

Python Syntax:

def GetGumpID(GumpIndex): --> uint