From Stealth Client

Jump to: navigation, search


MaxWeight

function MaxWeight():Word

Returns the char - Maximum Weight(Weight).

This only works from the client version Samurie Empire + on the server must be enabled advanced stats sent to the client, otherwise returns 0.

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

Example 1:

if Weight > MaxWeight - 20 then
begin
  '' Do something, like go home, or drop, etc.''
end;

Example 2:

  AddToSystemJournal('Maximum Weight(Your Max weight):' + IntToStr(MaxWeight))