this is my script and yes it is for ypp any of you can use it, it works, but it wont do any combos, which is why i've created bitmaps and i'm just really stumpt on how i can better the first code i showed yall into this script, but that script above isnt all the bitmaps i need to incorporate atleast 18 bitmaps and make a bunch of if statements which will take a lot of time lol. then my script will finally be complete. If their are anymore suggestions let me know and thanks everyone! :)
//By: Ace
program blacksmith;
var
x,y,d,e,c:integer;
procedure orange;
begin
repeat
c:=0
repeat
c:=c+1
wait(1)
until(c>1999)or
findcolortolerance(x,y,8188414,56,92,413,411,2)
if(findcolortolerance(x,y,8188414,56,92,413,411,2))then
begin
movemousesmooth(x+26,y+26,1,1)
clickwindmouse(x+26,y+26,1,1,true)
c:=c-100
end;
wait(1000)
until(c>1999)
end;
procedure grays;
begin
repeat
d:=0
repeat
d:=d+1
wait(1)
until(d>1999)or
findcolortolerance(x,y,4970714,56,92,413,411,2)or
findcolortolerance(x,y,8188414,56,92,413,411,2)
if(findcolortolerance(x,y,8188414,56,92,413,411,2))then
begin
movewindmouse(x,y,1,1)
clickwindmouse(x,y,1,1,true)
d:=d-100
end;
if(findcolortolerance(x,y,4970714,56,92,413,411,2))then
begin
movewindmouse(x,y,1,1)
clickwindmouse(x,y,1,1,true)
d:=d-100
end;
wait(1000)
until(d>1999)
end;
procedure silver;
begin
repeat
e:=0
repeat
e:=e+1
wait(1)
until(e>1999)or
findcolortolerance(x,y,9625049,56,92,413,411,2)or
findcolortolerance(x,y,8188414,56,92,413,411,2)or
findcolortolerance(x,y,4970714,56,92,413,411,2)
if(findcolortolerance(x,y,8188414,56,92,413,411,2))then
begin
movewindmouse(x,y,1,1)
clickwindmouse(x,y,1,1,true)
e:=e-100
end;
if(findcolortolerance(x,y,4970714,56,92,413,411,2))then
begin
movewindmouse(x,y,1,1)
clickwindmouse(x,y,1,1,true)
e:=e-100
end;
if(findcolortolerance(x,y,9625049,56,92,413,411,2))then
begin
movewindmouse(x+26,y+26,1,1)
clickwindmouse(x+26,y+26,1,1,true)
e:=e-100
end;
wait(1000)
until(e>1999)
end;
procedure restart;
begin
if(findcolortolerance(x,y,8188414,56,92,413,411,2))then
begin
d:=d-100
end;
end;
begin
clickwindmouse(234,269,150,150,true)
repeat
orange
grays
restart
until(d>1999)
silver
end.