-
al kharid miner
ok, i made this miner its based upon bitmaps ok.
i ran up with some problems.
ok i made 2 different prodecures one with bit maps and another with color.
how can i make the user CHOOSE which one he/she wants to use?
like:
const
miningstyle= ; //colormine, or bitmapmine,
any ideas?
Code:
procedure Clickmine;
begin
findbitmap (clickmine,x,y)
clickmt;
wait (1000)
end;
procedure bitmapmine;
begin
if(findbitmap(mining,x,y))then
ClickMF;
wait (1000)
if(findbitmap(mining2,x,y))then
clickmf;
wait (1000)
if(findbitmap(mining3,x,y))then
clickmf;
wait (1000)
Clickmine;
end;
procedure colormine;
begin
if(FindColorSpiral(x,y,iron,6,3,510,337))then
clickmf;
wait (1000)
clickmine;
end;
-
Did you meaned this way ?
PHP Code:
Const
Mining = BitMap ; // BitMap , Color
procedure Clickmine;
begin
findbitmap (clickmine,x,y)
clickmt;
wait (1000)
end;
procedure bitmapmine;
begin
If ( Mining = BitMap ) Then Begin
if(findbitmap(mining,x,y))then
ClickMF;
wait (1000)
if(findbitmap(mining2,x,y))then
clickmf;
wait (1000)
if(findbitmap(mining3,x,y))then
clickmf;
wait (1000)
Clickmine;
end;
end;
procedure colormine;
begin
If ( Mining = Color ) Then Begin
if(FindColorSpiral(x,y,iron,6,3,510,337))then
clickmf;
wait (1000)
clickmine;
end;
end;
-
lol exactly lol love u ^_^
i add ur credits
edit: Line 39: [Error] (39:1): Duplicate identifier '' in script C:\Program Files\SCAR 2.03\Scripts\My scripts\Mining1.0.scar arr?
-
I would recommend against using bitmaps for iron rocks. They are slightly different each time. Also, you would need a lot more processing to find a bitmap, especially with the deformation which you probably need for it to work. A better option is to scan for a color and check IsUpText. That can also be done through FindObj.
I can't help with fixing line 39 until I see which line that is. Though duplicate null identifier is kinda fishy and makes me think it's actually a syntax error and not an accidental re-definition of an identifier.
EDIT:
You want
mining = 'bitmap'
not
mining = bitmap