IsGump
Check if ANY gumps exists at the moment in client, returns True if count > 0.
If char disconnected - will return False.
Pascal
function IsGump : Boolean;
Python
def IsGump() -> boolean
Example Python
def close_gumps():
while IsGump():
if not Connected():
return False
if not IsGumpCanBeClosed(GetGumpsCount() - 1):
return False
#WaitGump('0')
else:
CloseSimpleGump(GetGumpsCount() - 1)
return True