Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetGumpID

Returns the gump ID for the gump at index GumpIndex in the Stealth gump list.

Returns 0 if the index is out of range or the character is disconnected.

Note: Gump IDs can be unique per gump type, but this is not guaranteed — it depends on the shard.

Возвращает ID гампа с индексом GumpIndex в списке гампов Stealth.

Возвращает 0, если индекс вне диапазона или персонаж не подключён.

Примечание: Gump ID может быть уникальным для каждого типа гампа, но это не гарантировано — зависит от шарда.

Pascal

function GetGumpID(GumpIndex: Word): Cardinal;

Python

def GetGumpID(GumpIndex: int) -> int: ...

Pascal Example

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

Python Example

if GetGumpsCount() > 0:
    if GetGumpID(GetGumpsCount() - 1) == 0x15A7DDF:
        CloseSimpleGump(GetGumpsCount() - 1)

See Also

GetGumpSerial, GetGumpsCount, GetGumpInfo