FindNotoriety
Searches for mobiles with the specified type ObjType and notoriety Notoriety on the ground.
Returns the ID of the last found mobile, or 0 if nothing was found or the character is disconnected.
The search radius is controlled by FindDistance and FindVertical.
After a successful search, FindItem, FindCount, and GetFindedList are updated.
Use $FFFF for ObjType to match any mobile type.
Notoriety values:
| Value | Meaning | Name Color |
|---|---|---|
| 1 | Innocent | Blue |
| 2 | Ally (guild) | Green |
| 3 | Attackable (gray) | Gray |
| 4 | Criminal | Gray |
| 5 | Enemy (guild) | Orange |
| 6 | Murderer | Red |
| 7 | Invulnerable | Yellow |
Ищет мобайлов с указанным типом ObjType и нотариететом Notoriety на земле.
Возвращает ID последнего найденного мобайла или 0.
Радиус поиска задаётся FindDistance и FindVertical.
Используйте $FFFF для ObjType, чтобы искать любой тип мобайла.
function FindNotoriety(ObjType: Word; Notoriety: Byte): Cardinal;
Parameters:
- ObjType — mobile graphic type.
$FFFF= any type. - Notoriety — notoriety filter (1–7, see table above).
def FindNotoriety(ObjType: int, Notoriety: int) -> int: ...
begin
// Find and attack any gray (attackable) mobile
if FindNotoriety($FFFF, 3) > 0 then
Attack(FindItem);
end.
# Find any murderer (red) mobile
if FindNotoriety(0xFFFF, 6) > 0:
AddToSystemJournal(f'Red found: ${FindItem():08X}')