SRL Archive - OSR Help

VK_alt? help and


grats

2011-12-04 10:26:49

well VK_Tab worked, VK_alt doesn't seem to be the correct thing to press tab, anyone help? thanks


also, how do I eat any random food in my inventory? if I could just go from inventory slot 1 - 28 and the first uptext I see that is "eat" it clicks it once and then exits
how do I do that?

thanks

Flight

2011-12-04 10:36:50


procedure Eat(What: String);
var
I: Integer;
begin
for i := 1 to 28 do
begin
InvMouse(I, 3);
if IsUpText(What) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Exit;
end else
Continue;
end;
end;

Just use that as Eat('Lobster');. It'll search your whole inventory starting at Slot 1 to Slot 28 until it finds the 'What' uptext. If it finds it it'll left click that slot and exit the procedure.

grats

2011-12-04 10:47:50

is eat somewhere in srl include? I couldn't find anything like that anywhere =[

Flight

2011-12-04 11:13:53

Nah just whipped that up quick.

grats

2011-12-04 11:37:28

From: Flight
Nah just whipped that up quick.


oh ok thanks!

is there a way to have it eat any food rather than having to put in a type of food?

Flight

2011-12-04 11:51:09

Just do Eat('Eat');. Quite sure that would do the trick.

grats

2011-12-04 11:53:06

oh yea good point lol