heres a picture of the lesser, and it also says where to stand. note the compas direction (pretty much east) and that you're completely zoomed out. 
Is there anyway in SRL to make it do that? make it face east and zoom right out? Also, do you think it would be worth making a bitmap for the lesser? Would that help with recognizing it when there are a heap of splashes?
Also, could someone just generally comment on this script so far. How detectable would it be(ignore the fact it has no randoms)? Is there better ways to code it? Should I add something?
EDIT: Here is my code so far. I'm going to add some antiban features soon, and then fix up the program so it attacks him every time he pops up, untill a random comes or something... Or untill a user specified amount of spells has been cast.
Code:
program lesserStomper;
{.include SRL/SRL.scar}
procedure initiatespell;
var x,y : integer;
var x1,y1 : integer;
begin
if(Findcolortolerance(x,y,3901099,730,174,754,202,5))
Then{color of book to
open spell list}
wait(1000+random(200))
mouse(x,y,5,5,true); {opens spell list}
wait (150+random(400))
if(Findcolortolerance(x,y,1907996, 580,219,598,233, 5))
then {finds windstrike}
wait(599+random(386))
movemousesmooth(x,y)
wait(1000+random(400))
mouse(x,y,5,5,true) {clicks windstrike}
Findcolortolerance(x1,y1,1715311,1, 1, 402, 246, 20) {supposed to look for lesser.}
mouse(x1,y1,5,5,true); {supposed to click lesser}
end;
begin //main loop
SetupSRL
initiatespell;
end.
Also, how would I make it if it doesn't find the lesser, it continues searching for it untill it pops up?
in pseudo code, it'd look something like this
Code:
if lesser found, attack
else, wait(3000) and search again
(loop)
That might not be too clear, but I hope someone knows what I'm on about.
I find scar scripting so much more enjoyable to learn then, say, Python or Java. It's so much easier and you get instant gratification.