vilon
2009-07-13 21:33:43
R_GetMMLevels('run') was broken. Here is the fixed version:
{*******************************************************************************
function R_GetMMLevels(Which: string): Integer;
By: lordsaturn, fixed by vilon
Description: Returns the current value at the designated MM spot.
*******************************************************************************}
function R_GetMMLevels(Which: string): Integer;
begin
Result := -1;
case LowerCase(Which) of
'hitpoints', 'hp': Result := 748;
'prayer', 'pp' : Result := 749;
'run', 'energy' : Result := 750;
else
SRL_Warn('R_GetMMLevels', 'Invaild string.', -3);
end;
Result := StrToIntDef(GetInterfaceText(Result, 4 + 1 * Integer(Result = 750)), -1);
end;