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

GetNotoriety

Returns the notoriety value of the mobile with ObjID.

Value Meaning Name Color
0 Unknown
1 Innocent Blue
2 Ally (guild) Green
3 Attackable (gray) Gray
4 Criminal Gray
5 Enemy (guild) Orange
6 Murderer Red
7 Invulnerable Yellow

Возвращает значение нотариетета мобайла с ObjID (см. таблицу выше).

Pascal

function GetNotoriety(ObjID: Cardinal): Byte;

Python

def GetNotoriety(ObjID: int) -> int: ...

Pascal Example

begin
  FindDistance := 15;
  if FindType($0190, Ground) <> 0 then
  begin
    case GetNotoriety(FindItem) of
      1, 2: UOSay('Hello!');
      6: AddToSystemJournal('Murderer detected!');
    end;
  end;
end.

Python Example

SetFindDistance(15)
if FindType(0x0190, Ground()) != 0:
    noto = GetNotoriety(FindItem())
    if noto in (1, 2):
        UOSay('Hello!')
    elif noto == 6:
        AddToSystemJournal('Murderer detected!')

See Also

FindNotoriety, IsNPC