Author Topic: powerminer  (Read 4007 times)

Offline coolydudey60

  • Jr. Member
  • **
  • Posts: 67
  • Rep: 0
  • how do i put a personalized picture?
    • View Profile
powerminer
« on: July 18, 2009, 12:28:02 pm »
this version is not finished it is just the basic outline. i am moving so i need to put it up here so that i can access it again. if anyone does have comments please post them i did have a test run which was slightly different but it does work. i need to go on runescape and fiddle with it though.

[scar]
program autominer;
var
x,y,i:integer;
const
color=10498857;
procedure findandminerock;
 begin
  findcolortolerance(x,y,color,unknown,unknown,unknown,unknown,3);
  movemousesmooth(x+random(3),y+random(7));
  clickmouse(x+random(3),y+random(7),true);
  wait(500+random(500))
 end;
procedure dropit;
 begin
  findcolortolerance(x,y,color2,xs,ys,xe,ye,2);
  movemousesmooth(x+random(4),y+random(5));
  clickmouse(x+random(2),y+random(9),false);
  clickmouse(x+unknown+random(2),y+unknown+random(3),true);
 end;
begin
for i:=1 to 26 do
begin
findandminerock;
end;
for i:=1 to 26 do
dropit;
end.[/scar]
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.
http://upload.wikimedia.org/wikipedia/commons/a/aa/Fractal-zoom-1-03-Mandelbrot_Buzzsaw.png

Freddy1990.com

powerminer
« on: July 18, 2009, 12:28:02 pm »

Offline nielsie95

  • Administrator
  • *****
  • Posts: 465
  • Rep: 6
    • View Profile
Re: powerminer
« Reply #1 on: July 18, 2009, 03:52:39 pm »
If you want to script for Runescape, I suggest you take a look at the SRL include. It helps you with things like anti-randoms and anti-ban.
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.

Freddy1990.com

Re: powerminer
« Reply #1 on: July 18, 2009, 03:52:39 pm »

Offline coolydudey60

  • Jr. Member
  • **
  • Posts: 67
  • Rep: 0
  • how do i put a personalized picture?
    • View Profile
Re: powerminer
« Reply #2 on: July 18, 2009, 11:58:31 pm »
i know about srl but i don't seem to be able to get it. if someone would tell me how to get it since i cannot get it from scar and i don't know how to get it from villavu.com i would use srl.
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.
http://upload.wikimedia.org/wikipedia/commons/a/aa/Fractal-zoom-1-03-Mandelbrot_Buzzsaw.png

Offline nielsie95

  • Administrator
  • *****
  • Posts: 465
  • Rep: 6
    • View Profile
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.

Offline Freddy

  • Owner
  • *****
  • Posts: 2616
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: powerminer
« Reply #4 on: July 19, 2009, 07:02:29 am »
i know about srl but i don't seem to be able to get it. if someone would tell me how to get it since i cannot get it from scar and i don't know how to get it from villavu.com i would use srl.
Hmm, just press Download SRL in the file menu?

Freddy1990.com

Re: powerminer
« Reply #4 on: July 19, 2009, 07:02:29 am »

Offline coolydudey60

  • Jr. Member
  • **
  • Posts: 67
  • Rep: 0
  • how do i put a personalized picture?
    • View Profile
Re: powerminer
« Reply #5 on: July 20, 2009, 01:26:55 am »
i am on holiday and the internet is SO SLOW it is stupid. it has taken about 10 minutes to load runescape so i can finish my program. should have it ready in the not too distant future. however it is not going to include anti-random so don't come to me complaining. people are free to use parts of the script if they want but i have a question. is there are scar function to turn the camera around in runescape? i've not been programming for long so i neeed some help. thanks in advance(only to anybody that provides help)!
Posted on: July 19, 2009, 08:32:37 AM
sorry there's no srl(i tried freddy's suggestion but there are no srl commands)(does it make a difference that i am using windows vista?) this is the high quality(not fullscreen) version and the normal quality one i will post tomorrow or the day after.
[scar]
program autominer;
var
x,y,i,r,z:integer;
const
color=xxxxxxx;//replace with the color of the rock that you want to mine (the streaky bit)
color2=xxxxxxx;//replace with the color of the rock that you have mined as it appears in your inventory
procedure findandminerock;
 begin
  findcolortolerance(x,y,color,3,130,1255,700,3);
  movemousesmooth(x+random(3),y+random(7));
  clickmouse(x+random(3),y+random(7),true);
  wait(500+random(500));//adjust according to how long your character takes to mine the rock
 end;
procedure dropit(r,z:integer);
 begin
  findcolortolerance(r,z,color2,1070,445,1255,700,2);
  movemousesmooth(r+random(4),z+random(5));
  clickmouse(r+random(2),z+random(7),false);
  movemousespline(r,z,6,4);
  clickmouse(r+random(2),z+38+random(3),true);
 end;
begin
for i:=1 to 28 do
 begin
  findandminerock;
 end;                                          ``
for i:=0 to 3 do
 dropit((i*40)+r,z);
for i:=0 to 3 do
 dropit((i*40)+r,z+40);
for i:=0 to 3 do
 dropit((i*40)+r,z+80);
for i:=0 to 3 do
 dropit((i*40)+r,z+120);
for i:=0 to 3 do
 dropit((i*40)+r,z+160);
for i:=0 to 3 do
 dropit((i*40)+r,z+200);
for i:=0 to 3 do
 dropit((i*40)+r,z+240);
end.
[/scar]
i'm not sure how well it works as i haven't tested it so any comments are welcome.
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.
http://upload.wikimedia.org/wikipedia/commons/a/aa/Fractal-zoom-1-03-Mandelbrot_Buzzsaw.png

Offline hypersecret

  • Newbie
  • *
  • Posts: 12
  • Rep: 0
    • View Profile
    • Email
Re: powerminer
« Reply #6 on: July 20, 2009, 06:27:29 am »
I don't think too many people are gonna use it.  The SRL include is widely used for Runescape scripts because it is developed specifically for that.  ClickMouse afaik is very bad to use for runescape scripts.  We have Mouse and MMouse in SRL.  Mouse moves and clicks the mouse and MMouse moves the mouse.

Freddy1990.com

Re: powerminer
« Reply #6 on: July 20, 2009, 06:27:29 am »

Offline coolydudey60

  • Jr. Member
  • **
  • Posts: 67
  • Rep: 0
  • how do i put a personalized picture?
    • View Profile
Re: powerminer
« Reply #7 on: July 21, 2009, 12:13:29 am »
Quote
I don't think too many people are gonna use it.  The SRL include is widely used for Runescape scripts because it is developed specifically for that.  ClickMouse afaik is very bad to use for runescape scripts.  We have Mouse and MMouse in SRL.  Mouse moves and clicks the mouse and MMouse moves the mouse.
as i said before i would be more than happy to use srl only that i can't get it.(does the fact that i have vista change things?)
Posted on: July 20, 2009, 10:37:13 AM
im pretty certain that the previous version would have nevber worked... now i have fixed it, and tested it and it works! the normal detail version will be coming out tomorrow as for this it is fully functional.

[scar]
program autominer;
var
x,y,i,r,z:integer;
const
color=xxxxxx;//replace with the color of the rock that you want to mine (the streaky bit)
color2=xxxxxx;//replace with the color of the rock that you have mined as it appears in your inventory
procedure findandminerock;
 begin
  findcolortolerance(x,y,color,3,130,1255,700,3);
  movemousesmooth(x+random(7),y+random(10));
  clickmouse(x+random(12),y+random(7),true);
  wait(500+random(500));//adjust according to how long your character takes to mine the rock
 end;
procedure dropit(r,z:integer);
 begin
  findcolortolerance(r,z,color2,1070,445,1255,700,2);
  movemousesmooth(r+random(2),z+random(7));
  clickmouse(r+random(2),z+random(7),false);
  wait(500+random(500));
  movemousespline(r,z,6,4);
  clickmouse(r+random(2),z+38+random(3),true);
  wait(500+random(1000));
 end;
begin
for i:=1 to 28 do
 begin
  findandminerock;
 end;
for i:=1 to 28 do
begin
 dropit(r,z+10);
end;
end.
[/scar]
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.
http://upload.wikimedia.org/wikipedia/commons/a/aa/Fractal-zoom-1-03-Mandelbrot_Buzzsaw.png

Offline hypersecret

  • Newbie
  • *
  • Posts: 12
  • Rep: 0
    • View Profile
    • Email
Re: powerminer
« Reply #8 on: July 21, 2009, 06:23:52 am »
Quote
I don't think too many people are gonna use it.  The SRL include is widely used for Runescape scripts because it is developed specifically for that.  ClickMouse afaik is very bad to use for runescape scripts.  We have Mouse and MMouse in SRL.  Mouse moves and clicks the mouse and MMouse moves the mouse.
as i said before i would be more than happy to use srl only that i can't get it.(does the fact that i have vista change things?)
Posted on: July 20, 2009, 10:37:13 AM
im pretty certain that the previous version would have nevber worked... now i have fixed it, and tested it and it works! the normal detail version will be coming out tomorrow as for this it is fully functional.

[scar]
program autominer;
var
x,y,i,r,z:integer;
const
color=xxxxxx;//replace with the color of the rock that you want to mine (the streaky bit)
color2=xxxxxx;//replace with the color of the rock that you have mined as it appears in your inventory
procedure findandminerock;
 begin
  findcolortolerance(x,y,color,3,130,1255,700,3);
  movemousesmooth(x+random(7),y+random(10));
  clickmouse(x+random(12),y+random(7),true);
  wait(500+random(500));//adjust according to how long your character takes to mine the rock
 end;
procedure dropit(r,z:integer);
 begin
  findcolortolerance(r,z,color2,1070,445,1255,700,2);
  movemousesmooth(r+random(2),z+random(7));
  clickmouse(r+random(2),z+random(7),false);
  wait(500+random(500));
  movemousespline(r,z,6,4);
  clickmouse(r+random(2),z+38+random(3),true);
  wait(500+random(1000));
 end;
begin
for i:=1 to 28 do
 begin
  findandminerock;
 end;
for i:=1 to 28 do
begin
 dropit(r,z+10);
end;
end.
[/scar]

I have vista and everything works perfectly fine.  Make sure you 'Run as administrator' also get subversion to download SRL.

Offline Freddy

  • Owner
  • *****
  • Posts: 2616
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: powerminer
« Reply #9 on: July 21, 2009, 07:39:13 am »
If you use the latest pre-release version of SCAR, 3.21 RC, you can use the ClickWindMouse function which is just as safe to use on RS as SRL because it's the same function in essence. Also has a new function named TypeKeys which is like SRL's TypeSend function, equally safe to use on RS, but it can send more characters.

Offline coolydudey60

  • Jr. Member
  • **
  • Posts: 67
  • Rep: 0
  • how do i put a personalized picture?
    • View Profile
Re: powerminer
« Reply #10 on: July 22, 2009, 09:46:37 am »
Quote
If you use the latest pre-release version of SCAR, 3.21 RC, you can use the ClickWindMouse function which is just as safe to use on RS as SRL because it's the same function in essence. Also has a new function named TypeKeys which is like SRL's TypeSend function, equally safe to use on RS, but it can send more characters
thanks ill get it right away but can anyone give me an example of the iskeydown function please?
Posted on: July 21, 2009, 09:08:28 AM
sorry guys i am too lazy to do a non high-quality version but i have just completed converting the script to the 3.21 rc version.
the download link is :

http://freddy1990.com/svn/scarprerelease   

just copy paste it in to your browser that should work just fine.

the script is the following:

[scar]
program autominer;
var
x,y,i,r,z:integer;
const
color=xxxxxx;//replace with the color of the rock that you want to mine (the streaky bit)
color2=xxxxxx;//replace with the color of the rock that you have mined as it appears in your inventory
procedure findandminerock;
 begin
  findcolortolerance(x,y,color,3,130,1255,700,3);
  clickwindmouse(x,y,50,40,true);
  wait(500+random(500));//adjust according to how long your character takes to mine the rock
 end;
procedure dropit(r,z:integer);
 begin
  findcolortolerance(r,z,color2,1070,445,1255,700,2);
  clickwindmouse(r,z,15,10,false);
  wait(200+random(300));
  clickwindmouse(r,z+40,10,5,true);
  wait(100+random(400));
 end;
begin
movetotray;
activateclient;
repeat
for i:=1 to 28 do
 begin
  findandminerock;
 end;
for i:=1 to 5 do
begin
 if(iskeydown('t'))then
 begin
  terminatescript;
 end;
wait(25);
end;
for i:=1 to 28 do
begin
 dropit(r,z);
end;
for i:=1 to 5 do
begin
 if(iskeydown('t'))then
 begin
  terminatescript;
 end;
wait(25);
end;
until(false);
end.
[/scar]

the script will be moved to your tray and has been made more practical, and as it is on an infinite loop to terminate it you must press the letter ('t') once the bot has finished either mining the ore or dropping it.
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.
http://upload.wikimedia.org/wikipedia/commons/a/aa/Fractal-zoom-1-03-Mandelbrot_Buzzsaw.png

Offline Freddy

  • Owner
  • *****
  • Posts: 2616
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: powerminer
« Reply #11 on: July 23, 2009, 05:38:06 am »
Nice work, it'd be better to do this though, well safer anyway...

  if findcolortolerance(x,y,color,3,130,1255,700,3) then
    clickwindmouse(x,y,50,40,true);

Offline coolydudey60

  • Jr. Member
  • **
  • Posts: 67
  • Rep: 0
  • how do i put a personalized picture?
    • View Profile
Re: powerminer
« Reply #12 on: July 25, 2009, 10:56:29 am »
[quote ]
Nice work, it'd be better to do this though, well safer anyway...

  if findcolortolerance(x,y,color,3,130,1255,700,3) then
    clickwindmouse(x,y,50,40,true);
[/quote]
 
i have released (yet another) new and improved version (containing freddy's suggestion) meaning that it should be easier and a bit safer to use than ever before and will always fill up your inventory. After getting the answer to a question i have i will release a new version which will not only log you in but it will make the program less detectable(i'm too lazy  to do a non high-detail so do that yourselves).

the question is: how do you get scar when your playing runescape to rotate the screen? in other words sending a left,right,up or down arrow?

i am not releasing the new version till i know that info because there would'nt be much point.

here's the code for the latest version

[scar]
program autominer;
var
x,y,i,r,z,n,t,b,v,color,color2:integer;
a:boolean;
const
color3=16711680;
procedure findandminerock;
 begin
  if(findcolortolerance(x,y,color,3,130,1255,700,3))then
  begin
   clickwindmouse(x,y,50,40,true);
  end;
  wait(500+random(500));//adjust according to how long your character takes to mine the rock
 end;
procedure dropit(r,z:integer);
 begin
  findcolortolerance(r,z,color2,1070,445,1255,700,2);
  clickwindmouse(r,z,15,10,false);
  wait(200+random(300));
  clickwindmouse(r,z+40,10,5,true);
  wait(100+random(400));
 end;
procedure check;
begin
 if(findcolortolerance(n,t,color3,184,685,339,703,10))then
 begin
  a:=true;
 end;
 if(a=true)then
 begin
  clickwindmouse(r,t,20,13,true);
 end;
end;
begin
movetotray;
activateclient;
pickcolor(color,b,v);//pick the color of the streaky bit of the rock to be mined
repeat
repeat
 findandminerock;
 check;
until(a=true);
for i:=1 to 5 do
begin
 if(iskeydown('t'))then
 begin
  terminatescript;
 end;
wait(25);
end;
pickcolor(color2,b,v);//pick the color of the mined rock in your inventory
for i:=1 to 28 do
begin
 dropit(r,z);
end;
for i:=1 to 5 do
begin
 if(iskeydown('t'))then
 begin
  terminatescript;
 end;
wait(25);
end;
until(false);
end.
[/scar] 
last thing: how do you guys think this compares to the powerminer in the first scripts section? this is actually my second script if you don't consider moving the mouse around in a square with set coordinates a program...
Posted on: July 23, 2009, 11:18:38 AM
this new code is ready to go. just read the instructions and follow them.
[scar]
program powerminer;
var
x,y,i,r,z,n,t,b,v,color3,c,w,color,color2,p,l,f,d:integer;
a:boolean;
s:string;
procedure findandminerock;
 begin
  if(findcolortolerance(x,y,color,3,130,1255,700,3))then
  begin
   clickwindmouse(x,y,50,40,true);
  end;
  wait(500+random(500));//adjust according to how long your character takes to mine the rock
 end;
procedure dropit(r,z:integer);
 begin
  findcolortolerance(r,z,color2,1070,445,1255,700,2);
  clickwindmouse(r,z,15,10,false);
  wait(100+random(300));
  clickwindmouse(r,z+40,10,5,true);
  wait(100+random(250));
 end;
procedure check(n,t:integer);
begin
if(findcolortolerance(n,t,color2,1080,450,1110,475,3))and(findcolortolerance(n,t,color2,1205,670,1235,695,3))then
a:=true;
end;
procedure login;
var
x,y:integer;
begin
 wait(500);
clickmouse( 40,30,true);
 wait(100);
clickmouse(40,30,true);
 wait(3000);
clickmouse(1080,540,true);
 wait(16000+random(2000));
clickmouse(835,530,true);
 wait(300+random(300));
clickmouse(830,615,true);
 wait(100+random(500));
typekeys('coolydudey60');
 wait(200+random(200));
clickmouse(830,675,true);
 wait(200+random(150));
typekeys('1k0s1k0s');
 wait(50+random(150));
clickmouse(830,715,true);
 wait(4500+random(700));
findcolortolerance(x,y,9822460,640,725,1025,780,3);
clickmouse(x,y,true);
end;
begin
writeln('write login if you want the program to log you in');
wait(500);
readln(s);//write login if you want the program to log you in
wait(75);
movetotray;
activateclient;
if(s='login')then
begin
 login;
end;
pickcolor(color,b,v);//pick the color of the streaky bit of the rock to be mined
pickcolor(color2,b,v);//pick the color of the mined rock in your inventory(you'll have to mine a bit before u start)
repeat
p:=random(4);
l:=random(4);
f:=random(6);
d:=random(6);
repeat
 for i:=1 to random(20) do
 if(f>2)then
 begin
 sendarrow(p);
 end;
 findandminerock;
 check(n,t);
until(a=true);
for i:=1 to 5 do
begin
 if(iskeydown('t'))then
 begin
  terminatescript;
 end;
wait(25);
end;
for i:=1 to random(20) do
if(d>4)then
begin
sendarrow(l);
end;
for i:=1 to 28 do
begin
 dropit(r,z);
end;
for i:=1 to 5 do
begin
 if(iskeydown('t'))then
 begin
  terminatescript;
 end;
wait(25);
end;
until(false);
end.
[/scar]
A winner never quits, because a quitter never wins.
Heroes get remembered, legends never die.
Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best.
http://upload.wikimedia.org/wikipedia/commons/a/aa/Fractal-zoom-1-03-Mandelbrot_Buzzsaw.png

Offline pokey1

  • Leecher
  • Posts: 1
  • Rep: 0
    • View Profile
    • Email
Re: powerminer
« Reply #13 on: August 05, 2009, 08:10:46 pm »
Line 20: [Error] (20:1): Unknown identifier 'movemousespline' in script

I keep getting this error code anything I might be doing wrong. I am new to this but i find it all very interesting. any help is much appreciated.  :D

Offline Freddy

  • Owner
  • *****
  • Posts: 2616
  • Rep: 19
    • MSN Messenger - freddy1990@gmail.com
    • AOL Instant Messenger - Freddy199O
    • View Profile
    • Email
Re: powerminer
« Reply #14 on: August 08, 2009, 04:52:04 am »
Use the latest copy -_-"

Freddy1990.com

Re: powerminer
« Reply #14 on: August 08, 2009, 04:52:04 am »