SRL Archive - RS3 Outdated / Broken Scripts

BustingHard's Powerminer


superuser

2007-06-11 08:31:49

BustingHard's
PowerMiner


Cheers,

This is my very first SRL/Scar script. It's yet another powerminer. However, it's very functionable. There's included all the latest SRL anti-randoms and decent anti-ban system.

A neat feature that needs to be mention, is the random free world picker. So, every time the script switches user, it also switches to a different world.

Anyway, to add a player, this script uses pretty easy and straightforward user-friendly function:


{**
* addPlayer();
*
* Adds a new player.
*
* @param string newName Players username.
* @param string newPass Players password.
* @param string newNick A part from player's username, for antirandoms.
* @param mixed newOres Array of rocks to mine.
* @param int newLoadsPerTurn Loads to mine after changing user.
*}
procedure addPlayer(newName, newPass, newNick: string; newOres: array of integer; newLoadsPerTurn: integer);

So in order to set, let's say three player, you would add these:


procedure initialize;
begin
// Mines 2 loads, first iron and alternatively tin
addPlayer('player_rick', 'player_rick1', 'ick', [ROCK_IRON, ROCK_TIN], 2);

// Mines 3 loads, first coal and alternatively gold
addPlayer('player_peter', 'player_peter1', 'eter', [ROCK_COAL, ROCK_GOLD, ROCK_MITHRIL], 3);

// Mines 2 loads, first iron and alternatively coal
addPlayer('player_john', 'player_john1', 'ohn1', [ROCK_IRON, ROCK_COAL], 2);
end;

Yes. The second last parameter defines the rocks to mine and it's also in order of priority.
The very last parameter defines how many loads to mine before changing the player.

For example,

[ROCK_COAL, ROCK_IRON]

means that the script tries first to find some coal and if there's not one available, it will go for iron. It doesn't matter how many ores you prefer, just just put them in order of priority.

The neatest feature of this script must be pretty detailed statistics. Take a look at this example:

[FONT="Courier New"]
Progress report
-------------------------------------------------------------------------------
Mined 301 rocks and gained 11105 experience
Worked 1h 5m 14s

-------------------------------------------------------------------------------
player1, currently at Rimmington: 47312exp
-------------------------------------------------------------------------------

Rocks mined : 62, 15,6s/rock
Irons : 62, 5,19s/rock (2170exp, 86 rocks to go)
Rocks lost : 7
Time per load : 7m 19s
Experience gained: 2170exp
37% done to next level
2994exp to go
Mining level : 42 (0h 22m to next)
Rnds. encountered: 1
Worked : 0h 16m 11s

-------------------------------------------------------------------------------
player2, currently at Rimmington: 773162exp
-------------------------------------------------------------------------------

Rocks mined : 165, 7,59s/rock
Irons : 160, 0,26s/rock (5600exp, 1180 rocks to go)
Golds : 5, 6,6s/rock (325exp, 636 rocks to go)
Rocks lost : 2
Time per load : 3m 33s
Experience gained: 5925exp
12% done to next level
41283exp to go
Mining level : 70 (2h 25m to next)
Rnds. encountered: 2
Worked : 0h 20m 53s

-------------------------------------------------------------------------------
player3, currently at Rimmington: 199120exp
-------------------------------------------------------------------------------

Rocks mined : 74, 15,5s/rock
Irons : 60, 1,53s/rock (2100exp, 119 rocks to go)
Golds : 14, 18,9s/rock (910exp, 64 rocks to go)
Rocks lost : 8
Time per load : 7m 14s
Experience gained: 3010exp
42% done to next level
4134exp to go
Mining level : 56 (0h 26m to next)
Rnds. encountered: 1
Worked : 0h 19m 7s

-------------------------------------------------------------------------------
[/FONT]

Finally, the last but not least things to remember in order to run this properly: Set your screen's color-depth to 32bits and run RuneScape in low-quality mode!! Otherwise this won't work at all.

Well, this is not bug-free. So, any bugs you notice or additional features you would like to have, please let me know about it.

To install the package just extract the it under scripts/ folder.
Yeah, and, don't be rude at me :) As I said, this is my very first script.

That's pretty much it. Have fun!


Version history:
—————
0.1.25 - More statistics: Time per load, Location. Even more fail safes. Implemented autocolor feature; completely autocolored. Beta-step for finding out player location in RuneScape.
0.1.21 - Implemented loads to mine for player before changing to next. Fixed possible issue with logging in. Another tune-up and fix for gas checker.
0.1.20 - DropAllItems() working now. Better antiban; variation in mouse speed on different situations. More statistics (activity).
0.1.18 - Pickaxe doesn't have to be equipped anymore. More fail safes.
0.1.16 - Additional fail safes.
0.1.15 - Added more statistics. Better anti-ban. Implemented few new things that get to work in next release.
0.1.13 Several optimizations and adjustments - more stabil.
0.1.10 Fixed find pick head routines. The one from SRL 3.7 didn't work properly so I had to fix it.
0.1.00 Initial release

Hugolord

2007-06-11 08:35:31

From: bustinghard
Cheers,

This is my very first SRL/Scar script. It's yet another powerminer. However, it's quite functionable and works nicely. All the latest SRL antirandoms and decent antiban-system.

One neat feature that needs to be mention, is random free world picker. So, every time the script switches user, it also switches to a different world.

Anyway, to add a player, this script uses pretty easy and user-friendly function:


{**
* addPlayer();
*
* Adds a new player.
*
* @param string newName Players username.
* @param string newPass Players password.
* @param string newNick A part from player's username, for antirandoms.
* @param mixed newOres Array of rocks to mine.
*}
procedure addPlayer(newName, newPass, newNick: string; newOres: array of integer);

So in order to set, let's say three player, you should add these:


procedure initialize;
begin
addPlayer('player_rick', 'player_rick1', 'ick', [ROCK_IRON, ROCK_TIN]);
addPlayer('player_peter', 'player_peter1', 'eter', [ROCK_COAL, ROCK_GOLD, ROCK_MITHRIL]);
addPlayer('player_john', 'player_john1', 'ohn1', [ROCK_IRON, ROCK_COAL]);
end;

Yes. The last parameter defines the rocks to goal. And it's also in priority-order.

For example,

[ROCK_COAL, ROCK_IRON]

means that the script tries first to find some coal and if there's not one available, it will go for iron. It doesn't matter how many ores you prefer, just just put them in priority order array.

The neatest feature of this script must be pretty detailed statistics. Take a look at this example:


Progress report
-------------------------------------------------------------------------------
Mined 15 rocks and gained 262,5 experience

-------------------------------------------------------------------------------
xxxxxxxx: 2414,5exp
-------------------------------------------------------------------------------

Rocks mined : 15, 18,6s/rock
Tins : 15, 7,8s/rock (262,5exp, 19 rocks to go)
Rocks lost : 4
Experience gained: 262,5exp
1% done to next level
327,5exp to go
Mining level : 15 (0h 5m to next)
Worked : 0h 4m 40s

-------------------------------------------------------------------------------

Well, this is not bug-free. So, any bugs you notice or additional features, please let me know about it.

So, to install it just extract the package under scripts/ folder.
Yeah, and, don't be rude at me :) As I said, this is my very first script.

That's pretty much it. Have fun!




I must say its amazing i like the neat report!

very nice its new neat and useful!

Markus

2007-06-11 08:38:02

Report looks neat :)
But can I ask you, WTF happended to your script? I can't see it :(
edit: Found it, I don't like all those includes so I will take a look later.

superuser

2007-06-11 08:40:09

From: markus
Report looks neat :)
But can I ask you, WTF happended to your script? I can't see it :(
edit: Found it, I don't like all those includes so I will take a look later.


Sorry, back there again :)

superuser

2007-06-11 09:29:29

Oh, and please send some reports :)

superuser

2007-06-12 09:32:10

Anybody got any statistics yet?

Ayoub

2007-06-12 09:58:01

I get this error?

Include file C:\Program Files\SCAR 2.03\includes\../scripts/bhpowerminer/lib.pas does not exist.

superuser

2007-06-12 10:03:11

From: Ayoub
I get this error?

Include file C:\Program Files\SCAR 2.03\includes\../scripts/bhpowerminer/lib.pas does not exist.


You have to extract that .rar package to your scar's script folder. In addition, those files should be in scripts/bhpowerminer folder.

If that doesn't work, I suggest you to download SCAR divi 3.06 + SRL 3.7.

Ayoub

2007-06-12 10:06:19

From: bustinghard
You have to extract that .rar package to your scar's script folder. In addition, those files should be in scripts/bhpowerminer folder.

If that doesn't work, I suggest you to download SCAR divi 3.06 + SRL 3.7.


Ok, I fixed that, now I get this:

Failed when compiling
Line 47: [Error] (15766:1): Unknown identifier 'inc' in script C:\Program Files\SCAR 2.03\includes\../scripts/bhpowerminer/general.pas

superuser

2007-06-12 10:07:40

From: Ayoub
Ok, I fixed that, now I get this:

Failed when compiling
Line 47: [Error] (15766:1): Unknown identifier 'inc' in script C:\Program Files\SCAR 2.03\includes\../scripts/bhpowerminer/general.pas


Yep, only solution to that is to update to SCAR Divi 3.06. Sorry.

Ayoub

2007-06-12 11:10:46

From: bustinghard
Yep, only solution to that is to update to SCAR Divi 3.06. Sorry.


The script doesnt really work, it just stands there..

superuser

2007-06-12 12:17:45

From: Ayoub
The script doesnt really work, it just stands there..


Well, it does work. Defined RS windows?
On top of that you have to start the script near rocks. For example, Rimmington mine is perfect. Try it out.

crossback7

2007-06-12 14:04:22

How do I extract the files once I download the script? Because when I try to simply open the file it says Windows cannot find the specified path and I don't have permission to view this.

I tried to save it to my computer and extract it from there, but all that seems to come up on SCAR is 8,000 lines of symbols.

I have SCAR Divi and the latest SRL.

superuser

2007-06-12 16:24:38

From: crossback7
How do I extract the files once I download the script? Because when I try to simply open the file it says Windows cannot find the specified path and I don't have permission to view this.

I tried to save it to my computer and extract it from there, but all that seems to come up on SCAR is 8,000 lines of symbols.

I have SCAR Divi and the latest SRL.


Sigh..

Google winrar my friend…..

superuser

2007-06-13 05:04:30

So, any additional features you would like?

wavewalker

2007-06-13 14:53:43

make it so the pick axe dosnt have to be equiped. i lost a rune and addy pick because my pick wasnt equipt(i cant spell it for some reason =s)

superuser

2007-06-14 03:13:30

From: wavewalker
make it so the pick axe dosnt have to be equiped. i lost a rune and addy pick because my pick wasnt equipt(i cant spell it for some reason =s)


Hey,

Sure, I'll put it in next release. Sorry 'bout that :) And it's equipped.

superuser

2007-06-14 05:03:33

From: wavewalker
make it so the pick axe dosnt have to be equiped. i lost a rune and addy pick because my pick wasnt equipt(i cant spell it for some reason =s)


Done.

dudutzu

2007-06-14 08:43:39

OR NOT !

Lost 2 rune pics !


U shod add another variable at the player declaration ( true or false , boolean ) and condition the dropping of the item in the first inv slot !

OR BETTER , check the color of every dropped item and drop only the ore ! (HINT allof them have broun spots , the earth)

It lags a little too ! ( still work pc is amd 1800 256 ram )
NICE SCRIPT !
Hope u`ll fix this problems ,
If u do i`ll testit home

superuser

2007-06-14 09:08:24

From: dudutzu
OR NOT !

Lost 2 rune pics !


U shod add another variable at the player declaration ( true or false , boolean ) and condition the dropping of the item in the first inv slot !

OR BETTER , check the color of every dropped item and drop only the ore ! (HINT allof them have broun spots , the earth)

It lags a little too ! ( still work pc is amd 1800 256 ram )
NICE SCRIPT !
Hope u`ll fix this problems ,
If u do i`ll testit home


Sorry, my bad. Now it's working as it should. Tested with 5 accounts and never dropped a single pick.

crossback7

2007-06-14 14:37:57

Sorry. Quite new at this. I always get an error because it can't find the compass angle.

I have it set at 32 bit color, so I'm not sure why it doesn't work. I know it must be something I'm doing wrong, since it does it for almost every script I use. My internet's pretty shoddy, so I'm just trying to get this right for when I switch ISP providers.

Any idea what it could be? And thanks for all of your help so far.

antlong

2007-06-14 15:04:47

how do you set it to do more than 1 load per person

antlong

2007-06-14 15:06:22

try starting logged out or logged in, it works logged in for me.

Bombo

2007-06-14 15:29:52

Bravo!!! Lol this program looks like it will run well. I tried it and it switched worlds randomly, nice addition, but when it logged in, it didn't get past the "Click to Play" Menu. So I stopped it and ran it again when it was logged in (I'm in Rimmington Mines), the mouse went from my inventory, where it detected the pickaxe colors, to my stats bar where it moved to my mining, then it just stops there. Can you give me some feedback into why it does this? I'm running 3.06 with SRL 3.70. Help please.

Report:
SRL Compiled in 32msec.
Pick head colors… 3749945 4868426 4342082 4343114 5394778
*Then I stop it here because it doesn't do anything from henceforth but it says the script is still running.*
Then it says "Successfully Executed" As always when you stop a program. Lol.

Thank You,

Bombo

antlong

2007-06-14 15:31:16

bombo, sounds like its not detecting the ore colors. Change the ore colors and it should work.

superuser

2007-06-14 18:13:04

From: antlong
how do you set it to do more than 1 load per person


I'll add that feature in next release.

superuser

2007-06-14 18:16:42

From: Bombo
Bravo!!! Lol this program looks like it will run well. I tried it and it switched worlds randomly, nice addition, but when it logged in, it didn't get past the "Click to Play" Menu. So I stopped it and ran it again when it was logged in (I'm in Rimmington Mines), the mouse went from my inventory, where it detected the pickaxe colors, to my stats bar where it moved to my mining, then it just stops there. Can you give me some feedback into why it does this? I'm running 3.06 with SRL 3.70. Help please.

Report:
SRL Compiled in 32msec.
Pick head colors… 3749945 4868426 4342082 4343114 5394778
*Then I stop it here because it doesn't do anything from henceforth but it says the script is still running.*
Then it says "Successfully Executed" As always when you stop a program. Lol.

Thank You,

Bombo


Tested my latest release (v0.1.20) thoroughfully and it works like a charm. So, let's make this straight: Use Low-Quality RS, set your screen color depth as 32bits. That should do the trick. Let me know how it turned out.

However, this script doesn't work if you run in when already logged in. It uses SRL's detection routines whether you're logged in or not. Therefore, you need to run it from the start (before logged in). As I said, set your screen's color depth to 32bits and choose low-quality version of RuneScape.

Good luck,
BustingHard

superuser

2007-06-14 18:18:12

From: antlong
bombo, sounds like its not detecting the ore colors. Change the ore colors and it should work.


Bad advise, as the colors are just fine. It's only a matter of low/high quality version of RS and color-depth (should be 32bits).

superuser

2007-06-15 02:47:31

From: antlong
how do you set it to do more than 1 load per person


I've added this feature, download latest version (v0.1.21 at the moment) and read my first post (instructions).

Best regards,
BustingHard

dudutzu

2007-06-15 06:17:51

Very Nice and usefull , still a random number is posibbile

Something like :

addPlayer('player_rick', 'player_rick1', 'ick', [ROCK_IRON, ROCK_TIN], 3+Random(5));


Or with a variable like this

Loads = 2 + random(5)
addPlayer('player_rick', 'player_rick1', 'ick', [ROCK_IRON, ROCK_TIN], loads);


Sorry i can`t testit now , i`m at work and forget my USB stick home :(

Bombo

2007-06-15 11:27:00

I have only one word. Beautiful.

Maybe you'd like to add a banking procedure to the script?

You did a wonderful job.

Thank you,

Bombo

superuser

2007-06-15 16:30:24

From: Bombo
I have only one word. Beautiful.

Maybe you'd like to add a banking procedure to the script?

You did a wonderful job.

Thank you,

Bombo


Thank you for your kind words. This sort of positive feedback drives me to do better software and updates :)

Please, in addition, can you post some progress reports? Would appreciate it!

Bombo

2007-06-16 07:41:07

Ask and you shall receive lol. Here's the report when I ran it last night and checked it in the morning.

Progress report
——————————————————————————-
Mined 393 rocks and gained 13755 experience
Worked 1h 9m 56s

——————————————————————————-
*********** (not active): 306187exp
——————————————————————————-

Rocks mined : 393, 10.5s/rock
Irons : 393, 3.77s/rock (13755exp, 789 rocks to go)
Rocks lost : 34
Time per load : 4m 55s
Experience gained: 13755exp
12% done to next level
27585exp to go
Mining level : 61 (2h 18m to next)
Rnds. encountered: 2
Worked : 1h 8m 56s

——————————————————————————-

I was looking at Charmz's Willow Raper's auto responder, a more developed auto responder like hers might be handy?

Bombo

superuser

2007-06-24 13:10:31

From: Bombo
Ask and you shall receive lol. Here's the report when I ran it last night and checked it in the morning.

Progress report
——————————————————————————-
Mined 393 rocks and gained 13755 experience
Worked 1h 9m 56s

——————————————————————————-
*********** (not active): 306187exp
——————————————————————————-

Rocks mined : 393, 10.5s/rock
Irons : 393, 3.77s/rock (13755exp, 789 rocks to go)
Rocks lost : 34
Time per load : 4m 55s
Experience gained: 13755exp
12% done to next level
27585exp to go
Mining level : 61 (2h 18m to next)
Rnds. encountered: 2
Worked : 1h 8m 56s

——————————————————————————-

I was looking at Charmz's Willow Raper's auto responder, a more developed auto responder like hers might be handy?

Bombo


Hi,

I am currently at personal holiday. However, after my vacation has ended I'll add banking options plus few other improvements.

Best regards,
BustingHard

blindman

2007-06-26 16:15:58

Hey, this looks like a very good script. And it actually moves (lol) but your script a little confusing to us new folks to SCAR. Mind if you give me a little direction to set it to powermine iron ores? I don;t need all the other fnecy world changing and player changes things. Just 1 player to keep powermining is fine. Please let me know. Thanks alot.

BTW: Can I use this at varrock east mining site? It seems all the reports were from Rimmington.

superuser

2007-06-28 08:03:40

From: blindman
Hey, this looks like a very good script. And it actually moves (lol) but your script a little confusing to us new folks to SCAR. Mind if you give me a little direction to set it to powermine iron ores? I don;t need all the other fnecy world changing and player changes things. Just 1 player to keep powermining is fine. Please let me know. Thanks alot.

BTW: Can I use this at varrock east mining site? It seems all the reports were from Rimmington.


Greetings,

I advise you to read instructions from the first post. However, here it goes in a nutshell:

Open file btpowerminer.scar. Find procedure initialize. After that, type the following:


addPlayer('yournickname', 'yourpassword', 'partfromnickname', [ROCK_IRON], 5);

Then you replace yournickname with your player login-name, yourpassword with your account's password and partfromnickname with a part of your account's name. For example, if your account is "myAccount", you would use "yAcco".

This setting only mines iron and five (5) loads per time after it changes the world. You simply remove all the other addPlayers from initialize procedure.

Couldn't be any easier than this.

And, yes. You can use this at Varrock also. However, as I am having a holiday at the moment, the script doesn't recognize Varrock as a place since it needs update. That doesn't matter, it still does the job. I'll fix that as soon as I get home.

Have fun :)

BustingHard

nxexwxmxaxn

2007-07-12 14:46:02

cheers

meepo

2007-07-14 06:28:31

Great work!
The only things that don't properly work here:
-It never drops the bottom 2 inventory rows succesfully.
-Logging in doesn't work yet.

But it looks like it works for others..so I'll check what I can do about it.

EDIT:

//if (p.y = 5) then begin
// dy := dy - 18;
//end else if (p.y = 6) then begin
// dy := dy - 60;
//end;

That bugged it for me.
I removed that, and added a little random to the mouse Y: (just to be sure..)
 mouse(bp.x - 5 + random(10), dy+random(4)-2, 0, 0, true);