SRL Archive - Reflection

[R] SuperUser's Dwarven Mine Resource Dungeon Miner


superuser

2011-05-12 02:34:38

Cheers,

I decided to release my dwarven mine resource dungeon miner even on the verge of the place being packed with bots. It collects coals and if user wishes, some mithril ores as well.

Download the .zip file and unzip it where ever you wish. Go to the mine (level 15 dungeoneering required) and run the script. As a tip, equip amulet of glory (4) and ring of wealth (4) for vast amount of gems.

It keeps detailed statistics how many ores / gems has been mined during the session and overall. Once the script is started, make sure the debug canvas is on.

This is very stable script and there shouldn't be any bugs. However, if this is not the case, please let me know.
Also please note, that I won't add multiplayer support as I don't see the rationale for it. Greed is bad.
For that same reason, there is not and won't be any 'break handler'.

Very best regards and happy mining,
SuperUser

footballjds

2011-05-12 11:47:33

From: superuser
Very best regards and happy mining,
SuperUser


Glad to see you writing a script (:
I will bug test this for you as im pretty sure you/everyone knows i'm not just going to rapeScape :p

I'll run it on a members world soon and tell you what needs done to enhance it.

props,

jesse

superuser

2011-05-15 12:07:20

From: footballjds
I'll run it on a members world soon and tell you what needs done to enhance it.


Any suggestions?

footballjds

2011-05-15 17:02:23

From: superuser
Any suggestions?


sorry mate, haven't been able to test yet.

1 mem is banned, and my two others are busy doing something else :p

doublex8

2011-05-21 11:47:14

is there any way to keep the run on? It starts walking and its impossible to compete for ores.

superuser

2011-05-21 11:58:52

From: doublex8
is there any way to keep the run on? It starts walking and its impossible to compete for ores.


Umm.. just set run on prior to starting the script?

footballjds

2011-05-21 13:51:37

setrun(true);

doublex8

2011-05-22 00:17:21

From: superuser
Umm.. just set run on prior to starting the script?


I do but I have to keep pressing manually again because once run recharges the script doesn't push it again

kingarabian

2011-05-22 00:24:39

From: doublex8
I do but I have to keep pressing manually again because once run recharges the script doesn't push it again


Just include it in the script to have it SetRun(true); after so and so minutes.

footballjds

2011-05-22 02:01:51

add to your main loop:

if R_GetMMapLevel('run') >70 then setRun(true);
thats the idea, idk if r_getMMapLevel is the actual name.

superuser

2011-05-22 03:58:00

I'll add the run feature to the script. I'll upload the new version today.

doublex8

2011-05-22 10:51:11

another thing if you see this before you update:

The script misclicked on a dwarf and still kept minning. Looks pretty bottish.

EDIT: this is also constantly spammed in the debug, not sure if it means anything:
[R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.

footballjds

2011-05-22 18:41:45

From: doublex8
another thing if you see this before you update:

The script misclicked on a dwarf and still kept minning. Looks pretty bottish.

EDIT: this is also constantly spammed in the debug, not sure if it means anything:
[R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.

the up-text thing has nothing to do with him

Harry

2011-05-22 19:00:06

From: doublex8
[R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.

Yeah, that happens when R_UpText returns nothing (for some weird reason). You can ignore it just fine.

doublex8

2011-06-06 00:21:33

From: footballjds
add to your main loop:

if R_GetMMapLevel('run') >70 then setRun(true);
thats the idea, idk if r_getMMapLevel is the actual name.


where exactly do I add this?

footballjds

2011-06-06 15:33:21

From: doublex8
where exactly do I add this?


anywhere… :p
I'd suggest at the beginning of your walking….

doublex8

2011-06-06 23:23:05

From: footballjds
anywhere… :p
I'd suggest at the beginning of your walking….


Ok so I tried to find a procedure for walking and couldn't. I'm sorry if I'm being too demanding but I know VERY little about scripting.

EDIT: Think I found it but when I put it in says that it is an unknown identifier

grats

2011-07-07 14:49:14

working great so far, will post report when it stops

maybe add a way so it mines like all the mithril? then goes to coal? especially with no one down here on members



doesn't seem to log in correctly idk if there was a recent change to srl or anything since I haven't been on..
also after 2 loads it kept trying to mine after the inventory was full



great stuff

Coh3n

2011-07-08 03:42:57

Holy, am I the only one incredibly impressed with the canvas progress report? You sir, are a genius. A tool for SRL definitely needs to be made so everyone can easily add something like that to their scripts.

grats

2011-07-08 03:52:45

From: Coh3n
Holy, am I the only one incredibly impressed with the canvas progress report? You sir, are a genius. A tool for SRL definitely needs to be made so everyone can easily add something like that to their scripts.


definitely not the only one.. when I saw it I was amazed with it too.. I wasn't sure if that was normal now or not since I was gone a little over a month :P

looks just as good as rsbuddy and others


it works very well too, the graphic bar was spot on

Coh3n

2011-07-08 03:54:15

Yes exactly! That's the kind of thing that brings in new users.

Oh, and this for the color of the progress bar? I didn't even know a texture like that was possible.

$a6506d

grats

2011-07-08 04:10:10

From: Coh3n
Yes exactly! That's the kind of thing that brings in new users.

Oh, and this for the color of the progress bar? I didn't even know a texture like that was possible.

$a6506d


hex color? so simba reads hex colors too?
I thought it was only the weird long digits it finds when you color pick lol

BraK

2011-07-08 05:45:08

Got to say Superuser I looked at the code and it's pretty nice how you use Fastsetpixel.

~BraK

TomTuff

2011-07-08 07:11:02

From: Coh3n
Yes exactly! That's the kind of thing that brings in new users.

Oh, and this for the color of the progress bar? I didn't even know a texture like that was possible.

$a6506d


it's quite nifty actually. If you look at bg.png, that's part of the background image (the green texture). He covers the not-percent (lol?) with that color.


Amazing paint! :p

Coh3n

2011-07-08 07:14:05

From: TomTuff
it's quite nifty actually. If you look at bg.png, that's part of the background image (the green texture). He covers the not-percent (lol?) with that color.


Amazing paint! :p
Ohh yeah I see. Crafty. :garfield: Regardless, I still think the whole thing is win. I may start working on a library for SRL if no one else decides to.

Home

2011-07-08 07:47:32

Woah, amazing paint man!

(Looks how you did it :P)

~Home

Yago

2011-07-08 12:13:17

What i most like of the script is that the actual script file is 12kb and how you made the progress bar…

Drakan

2011-07-08 12:24:23

can someone post a screenie of the paint since I can't run the script where im at?

BraK

2011-07-08 12:31:44

@Drags111 the pic on post #18 is the Paint. :)

~BraK

grats

2011-07-08 14:43:51

From: drags111
can someone post a screenie of the paint since I can't run the script where im at?


can see it in action here
http://tinypic.com/player.php?v=v5fmdg&s=7




from this thread:

http://villavu.com/forum/showpost.php?p=816937&postcount=144

superuser

2011-07-12 16:49:28

Heh, glad you guys like it :) I've got a crap-load of real-life work to do, so I couldn't do any updates recently. Hope I got the time soon tho!

doublex8

2011-07-12 18:12:38

yea the paint is cool! nothing happens when I start the script though, even after I log in

Home

2011-07-13 05:12:04

From: doublex8
yea the paint is cool! nothing happens when I start the script though, even after I log in


Update SRL And Ref?

~Home

doublex8

2011-07-13 12:06:01

From: Home
Update SRL And Ref?

~Home


they are updated, it's been doing this for a few weeks. I'm using MSI atm so I'll give this a shot again later.

EDIT: When I run the script it still does anti ban, moves the camera, etc. just won't mine anything.

superuser

2011-07-14 11:17:14

From: doublex8
they are updated, it's been doing this for a few weeks. I'm using MSI atm so I'll give this a shot again later.

EDIT: When I run the script it still does anti ban, moves the camera, etc. just won't mine anything.


Dude, you on crack or what? :) As far as I recall, my script ain't got no anti-ban nor camera movement. :D

TomTuff

2011-07-17 20:07:33

I'm trying to steal use your paint (I'm making my own bg img, of course), and I can't find R_ExpToNextLevel anywhere :(

footballjds

2011-07-18 09:19:31

From: TomTuff
I'm trying to steal use your paint (I'm making my own bg img, of course), and I can't find R_ExpToNextLevel anywhere :(


Either FindXP.scar in srl or GameTab.simba in reflection. Both have what you need.

doublex8

2011-07-18 11:38:01

From: superuser
Dude, you on crack or what? :) As far as I recall, my script ain't got no anti-ban nor camera movement. :D


As far as I recall I'm not on crack. You want me to take a video capture? I guess I shouldn't have said camera movement, but the mouse is moving around checking up text or something. It has to be doing something because after two hours it will still be logged in and no coal has been mined

superuser

2011-07-19 11:31:22

From: doublex8
As far as I recall I'm not on crack. You want me to take a video capture? I guess I shouldn't have said camera movement, but the mouse is moving around checking up text or something. It has to be doing something because after two hours it will still be logged in and no coal has been mined


Well, the only thought that comes to my mind is that you are not in the correct resource dungeon :)

doublex8

2011-07-20 00:39:18

From: superuser
Well, the only thought that comes to my mind is that you are not in the correct resource dungeon :)


I'm pretty sure I am, seeing as it used to work there :)

wantonman

2011-07-23 14:19:12

this is better than msi guild miner

Coh3n

2011-07-23 14:40:22

From: wantonman
this is better than msi guild miner
It's not the same script? And MSI's guild miner blows in F2P because there are literally 100 people there on every world.

wantonman

2011-07-23 14:45:09

well the guild miner bugs all the time i use it on mems, which is why i say im happier using this script sir!

Coh3n

2011-07-23 14:47:06

From: wantonman
well the guild miner bugs all the time i use it on mems, which is why i say im happier using this script sir!
Well, glad it works then. Would be nice if you could report bugs that encounter, though, otherwise we have no idea anything is wrong.

wantonman

2011-07-23 14:56:26

[0:02:02]: [R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.
[0:05:36]: [R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.
[0:06:02]: [R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.


for this scrip this happens lol when im in resource .. uhm it just stops

Coh3n

2011-07-23 15:11:21

From: wantonman
[0:02:02]: [R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.
[0:05:36]: [R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.
[0:06:02]: [R_IsUpTextMulti] Text length is 0, something is wrong. Retrying.


for this scrip this happens lol when im in resource .. uhm it just stops
That's an issue with Reflection I think. I can't remember why exactly it happens. To report MSI bugs, you can create a new thread here.

wantonman

2011-07-24 17:07:42

okok but ive notice it bugging while mithril is set to true… i use false currently for the bug reason

im talking about this tread not msi sorry for the mixmatch

Bonified lust! damn this script is goooooodddd alll theee wayyy!!!!!

Coh3n

2011-07-24 17:12:07

Try not to double/triple post. Just edit your previous post, please. :)

toast

2011-09-05 23:38:21

It took one look at my urns and Pickaxe in my inventory and ran to the deposit box and deposited all. If you could fix that it'd be helpful.

EDIT: it banks my pickaxe after a load too, please be less discriminatory against people with less than 40 attack :P. Look forward to seeing this fixed.

mika

2011-09-14 17:58:35

I KEEP GETTING THS

[Error] (87:5): Unknown identifier 'SetupReflectionEx' at line 86
Compiling failed.

whatev

2011-09-14 18:17:57

From: mika
I KEEP GETTING THS

[Error] (87:5): Unknown identifier 'SetupReflectionEx' at line 86
Compiling failed.


That's a really easy fix.

mika

2011-09-14 21:26:03

lol so how do i fix is it reflection 1 or 2 btw ? how do i fix? lol i need something that can mine coal and or mith or even addy

mrpickle

2011-10-22 01:58:21

Solution? Revert to an earlier version of Reflection.


But,
If you want it to work with the current reflection, you'll have to change more than just that one line. Function names, content, and parameters were updated. I can probably get this script working again, but I'll have to relearn most of the functions (havnt been around much for >2 yr xD).

To answer just your question whatev, Replace that line with:
SetupReflection();
to remove that one error.