SRL Archive - OSR Help

help please !


tombow

2012-04-15 17:08:57

ok on a script im making i need it to right click the man and right click the item to buy,so i thought this would be code,but its not any advice? also i need it to walk to bank after full inv,as he only has 10 i need it to buy 10 hop world buy 10 hop buy 10? if u understand me then once inv full bank and repeat any help beacuse yohojos guide is for powerchopper so doesnt show about going to bank or hoping


Function findman:boolean;
var
x, y, Plusone, barcounter: integer;
begin
plusone:= Invcount + 1;
If FindObjCustom(x, y, ['name', 'h R'], [5726875, 2836576], 20) Then
begin
StatsGuise('hooray we found him');
getmousepos(x, y);

case random(1) of
0: begin
mouse (x, y, 10, 10, false);
WaitOption ('Trade', 3000);
end;
case random(1) of
0: begin
mouse (x, y, 10, 10, false);
WaitOption ('item', 3000);
end;
end;

Daniel

2012-04-17 06:54:57

All you are doing in that piece of code is opening the shop screen, then doing nothing. What is this "item" you are searching for? Since your x and y variables never change their value (they stay on the shop keeper), you'll need to add another function to find what you're looking for.

Also, I would add a Wait(); statement between each and every interaction you do with the game :)