SRL Archive - Reflection Development

In Shop screen, Deposit Box, modified MM levels


Capricorn

2009-05-18 06:24:06

function R_GetMMLevelsEx(Which : String) : Integer;

begin
Result := -1;
case LowerCase(Which) of
'hitpoints', 'hp' : Result := 748;
'prayer', 'pp' : Result := 749;
'run', 'energy' : Result := 750;
'sum' : Result := 747;
else
SRL_Warn('R_GetMMLevels', 'Invaild string.', -3);
end;
Result := StrToIntDef(GetInterfaceText(Result, 4 - 2 * Integer(Result = 750)), -1);
end;



function R_ShopScrn: Boolean;

var
Text : string;

begin
Result := False;
if (not(ValidInterface(620))) then
Exit;
Text := GetInterfaceText(620, 21);
Result := Pos('ain Stock', Text) <> 0;
end;



function R_DepositBox: Boolean;

var
Text : string;

begin
Result := False;
if (not(ValidInterface(11))) then
Exit;
Text := GetInterfaceText(11, 12);
Result := Pos('ank of', Text) <> 0;
end;


Credits goto Method for creating the initial bank screen check, I just edited that and I just edited the MM levels to include summoning.

mormonman

2009-05-18 08:24:40

I don't think shopscrn will be committed. plus you need to specify which shops, though i am assuming its the general store. and you don't need it to say main stock. I like getmmlevelsex, but I don't wanna commit it yet.
Deposit box is good one, but you need a deposit box opener too.

Capricorn

2009-05-18 09:30:50

You don't need to specify which shop because it finds if theres the tab 'main stock'. And I only used ex because I was to lazy to edit the reflection files. Regardless anyone can come and use these little snippets if they need them.

Edit: I made these for a script I was making and I figured I would share them.