GetName
Returns the name of the object with ObjID.
Returns "NoName" if the character is disconnected or the name was not sent by the server.
In some cases, you need to call ClickOnObject first to request the name from the server.
Note: For items (not mobiles) on client versions 4.x+, names are usually not sent by the server. Use GetTooltip instead.
Возвращает имя объекта с ObjID.
Возвращает "NoName", если персонаж не подключён или имя не было отправлено сервером.
В некоторых случаях нужно сначала вызвать ClickOnObject для запроса имени с сервера.
Примечание: Для предметов (не мобайлов) на версиях клиента 4.x+ имена обычно не отправляются сервером. Используйте GetTooltip.
function GetName(ObjID: Cardinal): String;
def GetName(ObjID: int) -> str: ...
begin
AddToSystemJournal('Name: ' + GetName(FindItem));
end.
AddToSystemJournal(f'Name: {GetName(FindItem())}')