fusion
2007-10-07 11:43:42
Alright so i have a work in progress. I used to script back in rs classic but that was much much easier and i quite wow and decided to get back to autoing in runescape for a sorta hobby. I began last week looking over all the pascal and what not and i began my first script. Now this isnt suppose to be anything fancy and its not going to be thats for sure but with help from the community and about 100 edits i hope to be left with something decent.
So I have this currently. My first question is, simply, is there any other way simplier to have it right click and select harpoon ( for fishing sharks ), other than clickmouse(x, Y+40, true); ?
Second question is, how come i have to put end; end; begin catchfish; end. for the last 5 lines? when even i try to put end; end; end. after wait(1000 +random(25)); it says unexpected end, when i erase the last end. it says expects beginning.
Now I did have a second part to this that checked for a shark color in the last slot of your invetory as a way to determine when to stop fishing but that wasnt working so i erased it im going to script it back in really quick and see if anyone can help me with that. Thanks for all the help guys.
So I have this currently. My first question is, simply, is there any other way simplier to have it right click and select harpoon ( for fishing sharks ), other than clickmouse(x, Y+40, true); ?
Second question is, how come i have to put end; end; begin catchfish; end. for the last 5 lines? when even i try to put end; end; end. after wait(1000 +random(25)); it says unexpected end, when i erase the last end. it says expects beginning.
Now I did have a second part to this that checked for a shark color in the last slot of your invetory as a way to determine when to stop fishing but that wasnt working so i erased it im going to script it back in really quick and see if anyone can help me with that. Thanks for all the help guys.
program catchfish;
procedure catchfish;
var x, y: integer;
begin
if findcolor(x, y, 14858129, 337, 163, 412, 474) then
begin
clickmouse(x, y, false);
wait(1000 + random(250));
clickmouse(x, y+40 ,true);
wait(1000 + random(250));
end;
end;
begin
catchfish;
end.