GetAltName
Returns the “alternative name” of the object with ObjID. Depending on the server, this may contain a title, guild name, profession, or other information. Can be empty.
Sometimes you need to call ClickOnObject first to populate the name and alt name fields.
Возвращает «альтернативное имя» объекта с ObjID. В зависимости от сервера может содержать титул, название гильдии, профессию или другую информацию. Может быть пустым.
Иногда нужно предварительно вызвать ClickOnObject для заполнения полей имени и альтернативного имени.
function GetAltName(ObjID: Cardinal): String;
Parameters:
- ObjID — ID of the object.
def GetAltName(ObjID: int) -> str: ...
var
Alt: String;
begin
Alt := GetAltName(Self);
if Alt = '' then
begin
ClickOnObject(Self);
Wait(500);
Alt := GetAltName(Self);
end;
AddToSystemJournal('Alt name: ' + Alt);
end.
alt = GetAltName(Self())
if not alt:
ClickOnObject(Self())
Wait(500)
alt = GetAltName(Self())
AddToSystemJournal(f'Alt name: {alt}')