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 может быть уникальным для каждого типа гампа, но это не гарантировано — зависит от шарда.
function GetGumpID(GumpIndex: Word): Cardinal;
def GetGumpID(GumpIndex: int) -> int: ...
begin
if GetGumpsCount > 0 then
if GetGumpID(GetGumpsCount - 1) = $15A7DDF then
CloseSimpleGump(GetGumpsCount - 1);
end.
if GetGumpsCount() > 0:
if GetGumpID(GetGumpsCount() - 1) == 0x15A7DDF:
CloseSimpleGump(GetGumpsCount() - 1)