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

IsYellowHits

Returns True if the specified mobile has yellow hit points bar (indicating invulnerability or a special status), False otherwise.

ObjID — ID of the mobile to check.

Returns False if the object does not exist or the character is disconnected.

Note: This flag was only relevant for early versions of Ultima Online. Modern servers no longer send this flag. The method is kept for backward compatibility.

Возвращает True, если у указанного мобайла жёлтая полоса здоровья (указывает на неуязвимость или особый статус), иначе False.

ObjID — ID мобайла для проверки.

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

Примечание: Этот флаг был актуален только для ранних версий Ultima Online. Современные серверы больше не присылают этот флаг. Метод сохранён для обратной совместимости.

Pascal

function IsYellowHits(ObjID: Cardinal): Boolean;

Python

def IsYellowHits(ObjID: int) -> bool: ...

Pascal Example

begin
  if IsYellowHits(LastTarget) then
    AddToSystemJournal('Target has yellow hits (invulnerable)')
  else
    AddToSystemJournal('Target has normal hits');
end.

Python Example

if IsYellowHits(LastTarget()):
    AddToSystemJournal('Target has yellow hits (invulnerable)')
else:
    AddToSystemJournal('Target has normal hits')

See Also

GetHP, GetNotoriety