SRL Archive - Outdated / Broken

Dr. Dick (Dwarven Resource Dungeon Coal Miner)


YoHoJo

2012-01-12 18:07:51

[D]warven [R]esource
[D]ungeon [I]nsane [C]oal [K]ollector

Status: January 12, 2012: Initial release. Only problem I've ever seen is that sometimes it screws up when depositing ores at the deposit box, besides that seems to work well.

Video of Script In Action:
http://youtu.be/RSFNPTWTtKw

Script Stats:
http://stats.villavu.com/script/331

Thanks To:
Flight: For help with some of the cool debug!(Coal Rock Squares)
euphemism:
For help with some of the cool debug!(Making Progress Report/ChatBox Bitmap not flash)


What Does It Do?
This script mines and deposits only coal at the Dwarven Mine Resource Dungeon


What are the requirements?
Level 15 Dungeoneering in order to enter the Dwarven Resource Dungeon
Level 30 Mining in order to mine coal!
Sell your coal at mid or above! , or use it for your own purposes!


How do I setup?
Simply place your character near the coal rocks at the far east side of the Dwarven Resource Dungeon. PICKAXE MUST BE EQUIPPED! (Let Me know if you would like this changed)


Help The Script Get Better!
Please run the script as much as you can (taking breaks and autoing safely of course!) and try to monitor/watch it as much as you can to let me know of any bugs, tweaks, changes, or extra options you would like to see added in upcoming versions.

Post progress reports to show off your longest runs!

Make a SRL stats account (here) to show off how much xp or coal you have gained and how long you have ran the script! (By default if you don't enter a stats account the stats are committed to the Anonymous account.

It would also be nice if you could please to me, any amount would mean a lot <3!
I will also take any GP donations, just send me a PM here

Shuttleu

2012-01-12 18:08:45

FIRST!

ima gonna test this!

~shut

euphemism

2012-01-12 18:08:59

Congrats on the release! Will try to get to 15 Dungeoneering to test it at some point.

E: Almost first..

Shuttleu

2012-01-12 18:26:41

first bug
it didnt count the first 6 ores i mined, so now the proggy is 6 ores off

~shut

EDIT: just missed another one, so now its 7 off

EDI: LOL, just seen the proggy it printed out

YoHoJo

2012-01-12 18:27:27

I hate progress report shiz! Hurr
Maybe after it deposits them it will catch up or something though.

Shuttleu

2012-01-12 18:29:01

From: YoHoJo
I hate progress report shiz! Hurr
Maybe after it deposits them it will catch up or something though.

no it didnt, its now 8 off XD

~shut

YoHoJo

2012-01-12 18:30:52

Meh I'll check that out later on then.
So is the SMART debug one off?
Or the writeln one? (The writeln one only happens after depositing so you probably don't know yet).

I think I know what's wrong, I'll deal with it later on though. Just want it to at least run smoothly, the writeln progress report will be correct though for sure! (I hope)

Shuttleu

2012-01-12 18:32:04

From: YoHoJo
Meh I'll check that out later on then.
So is the SMART debug one off?
Or the writeln one? (The writeln one only happens after depositing so you probably don't know yet).

I think I know what's wrong, I'll deal with it later on though. Just want it to at least run smoothly, the writeln progress report will be correct though for sure! (I hope)

they are both wrong

also (this doesnt affect the script) it sometimes detects a rock with ore as 2 rocks

~shut

EDIT: should be 56

8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 11 Minutes and 15 Seconds |
|Mined 43 ores at a rate of 229 per hour|
|Mined 2 loads at a rate of 10 per hour |
8=======================================D

Kyle Undefined

2012-01-12 18:33:11

Geez, all these error and you might get banned :p Ha nice release man! :D

YoHoJo

2012-01-12 18:34:32

Yeah that happens, it's okay, it's hard to detect them EXACTLY so sometimes it detects extras. Script still runs fine though.

Shuttleu

2012-01-12 18:35:24

From: Kyle Undefined
Geez, all these error and you might get banned :p Ha nice release man! :D


he did say to report any bugs :)

but anyway, it seems to run smoothly and well

~shut

EDIT: maybe you could do what i do

check the xp difference then divide that by how much you get from a rock

Press Play

2012-01-13 06:10:40

I'll definitely be using this one.. Whenever I get round to getting 15+ Dungeoneering ;) Do you think you will be adding mithril ores for the near/distant future :p

Scaper

2012-01-13 07:52:40

like the creative name :)

gunna run this with 2 chars 77 mining erach

footballjds

2012-01-13 10:38:51

will test, looks great

Mjordan

2012-01-13 12:11:08

Now this is exactly what I was looking for. Gonna try it out for sure.

Scaper

2012-01-13 17:11:56

Nice script still running strong just took this from the debug of simba

8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 1 Hours, 2 Minutes and 53 Seconds|
|Mined 226 ores at a rate of 217 per hour|
|Mined 10 loads at a rate of 9 per hour |
8=======================================D

E:
Would be nice to add to the script for the option to turn tun on would be quicker added it but havnt rerun yet so will be alot more n hour

Would be nice for the option to mine mith too :)

Really love the script 99 hee i come from 77 :)

you should also make a dynamic sog for this like you did for the iron powerminer

YoHoJo

2012-01-13 17:13:16

@Scaper lol the debug automatically puts report tags around the progress report, just copy/paste them, no need to put code tags around it, and awesome nice :D!

@Mj WOW! Where have you been Mr! Haven't seen you around forever! Plan on coming back and being more active?!

@All Others, yay cant' wait to see the script stats blow up with commits!

Scaper

2012-01-13 17:19:09

aaa ahhhh i see :) and did you check my edit to the post out

Kyle Undefined

2012-01-13 17:23:09


YoHoJo

2012-01-13 17:36:25

Thanks Kyle :p I really like the one I designed/ferment made me though!
Lol the K looks like an H with that font, that's not dirty!

PatDuffy

2012-01-13 20:40:33

I can't complain about anything, I ran it just for the hell of it :p

I have a feeling the actual ore count is a fair bit higher, as when I was watching the first inventory the counting was iffy, as stated by others.


8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 2 Hours, 54 Minutes and 51 Seconds|
|Mined 576 ores at a rate of 197 per hour|
|Mined 27 loads at a rate of 9 per hour |
8=======================================D

P.S. Enjoy your free dollar Yoho :p

grats

2012-01-13 22:10:10


8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 57 Minutes and 50 Seconds |
|Mined 199 ores at a rate of 206 per hour|
|Mined 10 loads at a rate of 10 per hour|
8=======================================D

I see 9999 loads by default, I left it default

lets see how close it gets to that number

Scaper

2012-01-13 22:26:40


8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 2 Hours, 54 Minutes and 46 Seconds|
|Mined 628 ores at a rate of 215 per hour|
|Mined 31 loads at a rate of 10 per hour|
8=======================================D
Successfully executed.
The following bitmaps were not freed: [3]

Methrend

2012-01-13 22:30:02

Hmm, might try this out soon, see how it compares to my one. Likely better, I feel :P

YoHoJo

2012-01-14 02:15:18

Damn, stats are coming along pretty nicely seems to be pretty popular.
Bascailly if you log into any server that has bad ping for you/other (assuming ping is what jagex chooses best server for you by) you will find 2 or less (often times less) people at this spot on a lot of servers!

I guess I'm pretty glad I made this members only then :]! Would suck for an empty place like this (at least for the time being) to get crowded by noobs :D.

I'm at home and away from my main computer at my appartment until Monday, then I'll look into why the heck the ore count is messing up so wierd! So besides messing up for first load or so, is it fine for the loads after that?

PatDuffy

2012-01-14 23:57:55

Curse the 6 hour Client Token update :(


8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 6 Hours, 37 Seconds |
|Mined 1124 ores at a rate of 187 per hour|
|Mined 52 loads at a rate of 8 per hour |
8=======================================D

YoHoJo

2012-01-15 04:36:22

Awesome report dude love it! Never ran it for 6 hours myself before, great job!

Bonfield

2012-01-15 05:41:42

Running it with crash smart so far it's 4 or 5 hours I will post the report when I'm back at home

Scaper

2012-01-15 09:17:19


iv mined 5k :s

putonajonny

2012-01-15 19:46:37

Great Script, really useful, have patched it to be able to work with accounts where you can't wield the pickaxe, but an official update with that would be good.

Could you add something like this to the paint: (stolen from my powerminer)
'Time To Next Level: '+MsToTime(Floor((XPLeft / (TOres * 50)) * GetTimeRunning), Time_Formal)
XPLeft is calculated using:
XPLeft := LevelToXP(Players[CurrentPlayer].Level[Skill_Mining] + 1) - CurrentXP;
or more simply:
XPLeft := XPTillNextLevel(14);
Where the function LevelToXP is:
Function LevelToXP(Level : Integer) : Integer;
Var XP : TIntegerArray;
begin
XP := [-1, 0, 83, 174, 276, 388, 512, 650, 801, 969, 1154, 1358, 1584, 1833, 2107, 2411, 2746, 3115, 3523, 3973, 4470, 5018, 5624, 6291, 7028, 7842, 8740, 9730, 10824, 12031, 13363, 14833, 16456, 18247, 20224, 22406, 24815, 27473, 30408, 33648, 37224, 41171, 45529, 50339, 55649, 61512, 67983, 75127, 83014, 91721, 101333, 111945, 123660, 136594, 150872, 166636, 184040, 203254, 224466, 247886, 273742, 302288, 333804, 368599, 407015, 449428, 496254, 547953, 605032, 668051, 737627, 814445, 899257, 992895, 1096278, 1210421, 1336443, 1475581, 1629200, 1798808, 1986068, 2192818, 2421087, 2673114, 2951373, 3258594, 3597792, 3972294, 4385776, 4842295, 5346332, 5902831, 6517253, 7195629, 7944614, 8771558, 9684577, 10692629, 11805606, 13034431, 14391160, 15889108, 17542976, 19368991, 21385072, 23611005, 26068631, 28782068, 31777942, 35085653, 38737660, 42769799, 47221639, 52136868, 57563717, 63555442, 70170839, 77474827, 85539081, 94442736, 104273166]
Result := XP[Level]
end;

Then as the script goes on every time it mines an ore:
XPLeft := XPLeft - XPPerOre;


Then this for checking for a level up:
if(XPLeft < 0) then
XPLeft := XPTillNextLevel(14);


You would need to add this to the top of the Paint procedure so you don't get a divide by 0 error:
if(TOres = 0) then
exit;

Just an idea

Scaper

2012-01-18 11:59:33

cant get it run for longer than 10 mins anymore


8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 10 Minutes and 20 Seconds |
|Mined 24 ores at a rate of 147 per hour|
|Mined 1 loads at a rate of 6 per hour |
8=======================================D
Successfully executed.
The following bitmaps were not freed: [3]

YoHoJo

2012-01-18 16:57:57

Has something changed down there?
What exactly causes it to mess up/goes wrong?

tarajunky

2012-01-18 20:25:26

For me it stalls most often when trying to walk to the deposit box. If it doesn't walk far enough, and the Dbox is a bit off screen, it gives up and terminates the character.

YoHoJo

2012-01-18 20:29:12

Hey Tarajunky! It was an honor seeing you rack up so many stats with it, awesome!

Hmm I'll look into that, I have it try and take an extra step if the DBox is not in view so it should never miss it :/, and eww stalls, I'm all about speed I'll try optimizing that part of the script then.

Got any long reports? How many characters are you running it on?

I also noticed some hangs around the depositing/dbox functions I'll tweak them later this week, thanks!

Scaper

2012-01-18 20:57:16

Yea what tara said exactly the problem :)

Yanhua

2012-01-19 20:43:14

I'm going to try this on my skiller, 99 mining :)

Just need to get 15 dungeonnering first.

tarajunky

2012-01-19 22:37:06

Best run I've had.


8=======================================D
|Worked for 5 Hours, 22 Minutes and 20 Seconds|
|Mined 1063 ores at a rate of 198 per hour|
|Mined 51 loads at a rate of 9 per hour |
8=======================================D

Scaper

2012-01-19 22:41:53

what did you change tara?

YoHoJo

2012-01-19 23:28:41

Not sure if he changed anything?

The DBox fuck up should happen rarely if ever :/

Scaper

2012-01-19 23:33:10

I still cant get it to run past 10 mins dont know why.

YoHoJo

2012-01-19 23:34:22

Because DBox screw ups?
Can you explain exactly what goes wrong please.

Scaper

2012-01-19 23:43:26

Its when it gets full load doesnt quiet make it to dbox or sometimes doesnt attempt to walk there only watched in once do it, im gunna load it up in a sec and watch exactly what happens.

YoHoJo

2012-01-19 23:47:37

I might redo the walking entirely with ObjectDTMs! That would solve it.

tarajunky

2012-01-20 02:21:36

I put the client running this script on High priority, but didn't change much else. I was plagued with the ~10 minute runs before too, so I do think a walking update is a good idea. It should be an easy thing to improve.

putonajonny

2012-01-20 06:41:40

From: YoHoJo
I might redo the walking entirely with ObjectDTMs! That would solve it.


I'd keep the walking as it is, ObjectDTMs would never be as fast as you have it working, but maybe you could implement them to be used if the script gets "lost"

putonajonny

2012-01-20 14:32:28

A bug:
and A Warning:

YoHoJo

2012-01-20 15:05:10

Aware of the warning, need to remove '~' from script.
And as for the login stuff, oops :0 I threw together the main loop really sloppily I'll look into that too for the next update thank you!

Yanhua

2012-01-22 00:00:14

It's getting stuck at the deposit box a lot :S

Sometimes it doesn't walk far enough and tries to look for deposit box, when it isn't even on the screen yet.

The script just logs itself out when this happens.

mika

2012-01-24 23:04:43

not good best report so far, prolly my laggy computer will try on my gaming machine.
|Worked for 13 Minutes and 25 Seconds |
|Mined 42 ores at a rate of 188 per hour|
|Mined 3 loads at a rate of 13 per hour |

btw whats reputation for anyway?

Mjordan

2012-01-25 23:22:32

From: YoHoJo

@Mj WOW! Where have you been Mr! Haven't seen you around forever! Plan on coming back and being more active?!


Haha indeed it's been quite a long time. For some damn reason I went to the RS website like a month ago and saw that free trade was back, I just couldn't resist to start botting again. So much has changed since I left, it's gonna take a minute for me to catch back up. We'll see…

Methrend

2012-01-25 23:29:26

From: putonajonny
I'd keep the walking as it is, ObjectDTMs would never be as fast as you have it working, but maybe you could implement them to be used if the script gets "lost"


I'm using ObjectDTMS for the rewrite of my resource miner, and they're incredibly fast (and amazingly accurate to boot). Using a coal bag with my current tests and I'm averaging ~300ore/hour.

Still, I do like how YoHo has implemented his stuff especially the object finding :D

mika

2012-01-26 18:39:03

Nope not good for me this is my best so far on my very fast computer
8=======================================D
|Worked for 19 Minutes and 51 Seconds |
|Mined 62 ores at a rate of 187 per hour|
|Mined 3 loads at a rate of 9 per hour |
8=======================================D

Mjordan

2012-02-01 18:10:19

Hmm I can't seem to get it to work past 10-15 minutes YoHoJo. It always stops short of the deposit box and logs out.

YoHoJo

2012-02-01 18:27:20

Yeah I haven't updated it since release, I'll get to doing that later.

Griff

2012-02-11 15:05:14

Been running smoothly for about a half hour now, I'll post a proggie in a bit. Thanks YoHoJo :)

Edit:
8=======================================D
| --> Dr. Dick 1.00 <-- |
8=======================================D
|Worked for 3 Hours, 11 Minutes and 52 Seconds|
|Mined 687 ores at a rate of 214 per hour|
|Mined 33 loads at a rate of 10 per hour|
8=======================================D

Still going.

Mjordan

2012-02-13 01:15:57

Man I don't see how you're getting a proggy like that Griff. I can't seem to run it for more then 10 minutes without the walking messing up.

YoHoJo

2012-02-13 03:12:57

Hey guys. Last couple weeks I've been trembly busy with college.
A lot of my scripts which have been in need of updates have been unattended :/.

This week, after Wednesday I'll be a Free man and midterm season will be over!
I plan to slowly but surely update all of my scripts! Thanks for hanging in there.

mika

2012-02-16 21:19:15

Working fine, would be convenient if you could add mithril thou.
8=======================================D
| –> Dr. Dick 1.00 <– |
8=======================================D
|Worked for 2 Hours, 31 Minutes and 24 Seconds|
|Mined 528 ores at a rate of 209 per hour|
|Mined 26 loads at a rate of 10 per hour|
8=======================================D

Mjordan

2012-02-29 13:20:29

Any plans to update this Yoho? :smile:

YoHoJo

2012-03-04 00:59:30

:X Yeah this has been pretty untouched since I released it. It wouldn't hurt to fix the bugs people found and fix the walking up. I haven't really updated many of my scripts in a while busy with college.
I'll try to give it a look-though later this week.

putonajonny

2012-06-09 14:23:03

I used to love this script, it is so overrun with bots now :/

Mjordan

2012-06-09 16:43:36

From: putonajonny
I used to love this script, it is so overrun with bots now :/


Yeah it's a pretty good place. Would be a good script to get back up and running smoothly after Optimus. Hopefully all of the reflection bots will be gone for a while again.

YoHoJo

2012-06-09 17:02:05

I haven't touched this forever and even when I released it wasn't SUPER stable, glad to have a small fan base!
I know when I released it it was a great spot! Is it really crowded on very sever now :(?
I'll look into updating after optimus.

putonajonny

2012-06-09 19:22:54

From: YoHoJo
I haven't touched this forever and even when I released it wasn't SUPER stable, glad to have a small fan base!
I know when I released it it was a great spot! Is it really crowded on very sever now :(?
I'll look into updating after optimus.


on f2p at least 3 per world :(

xtrapsp

2012-11-28 19:13:21

Yohojo… UPDATE THIS FOR EoC before I DO!