From Stealth Client

Jump to: navigation, search


function MaxLife():Integer

Same as Doc:Api/MaxHP. 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 < MaxLife) then
  UOSay('Man, some problem with HP here');

Example 2:

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