From Stealth Client

Jump to: navigation, search


MaxHP

function MaxHP():Integer

Same as Doc:Api/MaxLife. In 99% of cases as well Str. Can differ only if the admin changes the parameters specifically object(char, SPC) and puts his hands MaxHP other than Str(usually in a big way).

Returns the char - the maximum number of health(Max HITS).

If there is no connection to the UO server - returns 0.

Example 1:

if (Life < MaxHP) then
begin
  UOSay('Man, some problem with HP here');
end;

Example 2:

AddToSystemJournal('Maximum Health Chara:' + IntToStr(MaxHP));