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

GetGumpSerial

Returns the serial number 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 serials can be unique, but this is not guaranteed — it depends on the shard.

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

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

Pascal

function GetGumpSerial(GumpIndex: Word): Cardinal;

Python

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

Pascal Example

begin
  AddToSystemJournal('Gump serial: ' + IntToHex(GetGumpSerial(0), 8));
end.

Python Example

AddToSystemJournal(f'Gump serial: {GetGumpSerial(0):08X}')

See Also

GetGumpID, GetGumpsCount, GetGumpInfo