SRL Archive - RS3 Outdated / Broken Scripts

[R]Awkward Miner - AIO


Awkwardsaw

2011-04-23 11:05:30

Hello, I haven't made a script in a while(because i always forget/ don't care about fixing or updating them) so I decided to make a simple mining script. Eventually it will be an AIO, seeing as all i have to do is plug in paths and potentially IDs, but not right now(their tedious, and i already got enough spots ;))

Features:
Reflection
Antiban
Dwarf Resource mine :)
Multiplayer (haven't tested)
Easy to fix/ add stuff to. I use a somewhat template method in the script for moddifications
SRL Stats

Locations:
Dwarf Resource
Lumby mine
Draynor mine
Draynor clay
VWB
VEB
Power mining - select areas, explained below

Future:
More locations, like Rimmington, mine guild, ect
coal bag
possibly a "straight out of tut island set up" thing
priority mining
possibly a form


Proggy:
Player: ward
Loads: 21
Mining: coal
Exp gained: 29400
Time running: 1 Hours, 40 Minutes and 53 Seconds
stopped manually, had to fix an SRL stats bug

Bugs:
Sometimes i've noticed that it doesn't always bank in dwarf resource, although its rare
walking to VEM messes up, not sure why, possibly because of lag while passing through the gate

Power Mining:
Due to the recent mining graphical update, every mining area has 3 different ids for each ore, that changes in every mining area (dwarf mine ores arent the same as the ones in varrok, same with lumby)

To make sure you are using the correct IDs, it's recommended to only power mine in the available areas. I'm to lazy to just add color finding :p

Awkwardsaw

2011-04-23 11:06:53

reserved, just in case

Simtoon

2011-04-23 11:14:51

Make one for LRC

Awkwardsaw

2011-04-23 11:16:32

From: Simtoon
Make one for LRC


lrc?

e: oh, i never really liked that place :p How much food do you need?

Home

2011-04-23 12:34:17

From: Awkwardsaw
lrc?

e: oh, i never really liked that place :p How much food do you need?


None. Just deathwalk. You will use official worlds :)

~Home

gamer716

2011-04-23 13:17:56

some errors while compiling. Also, LRC will be nice

Awkwardsaw

2011-04-23 13:27:35

From: gamer716
some errors while compiling. Also, LRC will be nice


yeah sorry, i made changes while i was running the script, then uploading.

After this run i'll re compile and re upload. I fixed banking, and some proggy stuff.

as for lrc, i'll give it a try.. what are the worlds for it? :)

tofurocks

2011-04-23 15:18:31

From: Awkwardsaw
yeah sorry, i made changes while i was running the script, then uploading.

After this run i'll re compile and re upload. I fixed banking, and some proggy stuff.

as for lrc, i'll give it a try.. what are the worlds for it? :)

84 is the main one.

Flight

2011-04-23 20:43:05

84 would probably be the safest. There's 3 coal deposits that are really popular for mining coal, and there's a semi-safe spot for each I've found and the majority of the bots seem to ignore it. (Which makes sense, they find the closest object and click it, no strategy) This is why there's gravestones everywhere. ;)

I started work on a LRC Coal miner never finished it, I just got distracted with other scripts.

Awkwardsaw

2011-04-23 21:19:46

From: Flight
84 would probably be the safest. There's 3 coal deposits that are really popular for mining coal, and there's a semi-safe spot for each I've found and the majority of the bots seem to ignore it. (Which makes sense, they find the closest object and click it, no strategy) This is why there's gravestones everywhere. ;)

I started work on a LRC Coal miner never finished it, I just got distracted with other scripts.


im more interested in the gold.. :)

making a script for this would be pretty simple with reflection. I just don't really care for getting all these tiles lol

Flight

2011-04-23 21:25:18

I thought it would be to, but I was trying to come up with a priority system for choosing a path and which rock to go to next.

Awkwardsaw

2011-04-23 21:27:45

From: Flight
I thought it would be to, but I was trying to come up with a priority system for choosing a path and which rock to go to next.


the object doesnt have to be on the minimap for reflection to find it. you can find the object, and determine which one to go to from there

Flight

2011-04-23 22:43:58

You're right, but it has to be on the minimap for a human to find it…

Awkwardsaw

2011-04-23 22:50:10

From: Flight
You're right, but it has to be on the minimap for a human to find it…


after a while you can easily guess where it is, for example if youve been mining at one spot for a while you might go to the other, or if you see a bunch of people running torwards a spot. there are ~500 people there running around, noone is going to notice you botting :p

Icyx

2011-04-24 13:11:07

..So what are the available areas to powermine? or did I just completely miss that somewhere xD

Home

2011-04-24 13:31:36

From: Icyx
..So what are the available areas to powermine? or did I just completely miss that somewhere xD


Dwarf Resource mine
Lumby mine
Draynor mine
Draynor clay
VWB
VEB

~Home

Awkwardsaw

2011-04-24 15:48:11

Alright, So i noticed that at some mines (veb, and lumby > ak) you need to pass through the guard thing for the tutorial area, which will stop you if you dont have 60 total levels. I'm fixing that next update along with some powermining bugs, and new paths for some

kingarabian

2011-04-24 16:35:44

Error: Out Of Range at line 93
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]

if MeNearTile(path[high(path)], 5) then
begin


Getting that with every setting I use… Trying to use Dwarf resource dungeon however.

gamer716

2011-04-24 16:57:55

From: kingarabian
Error: Out Of Range at line 93
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]



Getting that with every setting I use… Trying to use Dwarf resource dungeon however.


Got the same problem :(

Home

2011-04-24 17:05:49

From: gamer716
Got the same problem :(


Does this occur with all Locations :S?

~Home

Awkwardsaw

2011-04-24 17:16:22

From: Home
Does this occur with all Locations :S?

~Home


sorry, doing a quick update atm

edit: it was because for the location, the top script says to put "dwarf resource mine" where the script reads "dward resource" to load the tiles

kingarabian

2011-04-25 11:41:54

Every time I use dwarf resource it says messed up banking and then logs out… But power mining works fine.

Awkwardsaw

2011-04-26 09:07:38

@king: add result := true; to the top of the dr_bank procedure, i over looked it since i always had a full inventory when i banked

anyways, with that being said,

Player: ward
Loads: 72
Mining: coal
Exp gained: 100800
Time running: 00s

uploaded a new 0.3 with the same script

Home

2011-04-26 10:30:14

Awkwardsaw:

Take a look at this. Mabey this gives you some tips for Dwarf Recourse Banking.

http://pastebin.com/4MccZcLL


~Home

newb cheater

2011-04-26 13:27:36

Works well. :D Btw, do you think it is possible to add a iron miner outside the resource dungeon which banks inside the dungeon. Also the use of sacred clay pickaxes would be good :D

yosupg

2011-04-26 14:13:42

i have been doing it at the var east mine and it always gets stuck outside the gate on the way to the mine.

Awkwardsaw

2011-04-26 18:09:05

From: Home
Awkwardsaw:

Take a look at this. Mabey this gives you some tips for Dwarf Recourse Banking.

http://pastebin.com/4MccZcLL


~Home


I don't see why you would need to search for the box id, when it's a static tile, but i see no harm in checking for the pickax, and making sure you walk right next to the box before opening

Awkwardsaw

2011-04-26 21:39:18

From: yosupg
i have been doing it at the var east mine and it always gets stuck outside the gate on the way to the mine.


yes, i haven't updated it yet. try out vwb, or get a 60 total level

yosupg

2011-04-29 16:58:25

From: Awkwardsaw
yes, i haven't updated it yet. try out vwb, or get a 60 total level


I do have a total lvl over 60. It doesn't get stuck at the guards, it gets stuck right after the guards…it gets lost as soon as it leave var.

Awkwardsaw

2011-04-29 17:59:57

From: yosupg
I do have a total lvl over 60. It doesn't get stuck at the guards, it gets stuck right after the guards…it gets lost as soon as it leave var.


ah, then the path is messed up. ill put up a new version tonight

onilika

2011-05-08 10:30:43

How goes the living rock cavern ? any update? with would be a massive script I tell you!

UNKNOWN69

Awkwardsaw

2011-05-08 11:17:50

From: UNKNOWN69
How goes the living rock cavern ? any update? with would be a massive script I tell you!

UNKNOWN69


since i have no time to work on the script during the week, or at all, idk :p

i still have to finish irl projects and classes.

Wolygon

2011-05-09 11:17:05

ah, then the path is messed up. ill put up a new version tonight


It isn't just the path, I wrote new paths for it. My new paths failed as well so I realised the problem:

If it clicks outside the varrock gate (tile1) and then while it is moving through the gate (under its effect, walking instead of running) it clicks the next tile (tile2) it will fail. It does not count tile2 and instead goes only to tile1.

I tried to rectify this by setting tile2 much further away so that it would have to move through the gate to be able to see the tile. But I did not set it far enough so it failed on occasion. I then couldn't be bothered making another path so I switched to vwb :)

To fix this problem easily two paths could be used so that it does not try to walk to tile2 until the flag at tile one is gone.

Hope that made sense, good script BTW only just getting to put it through its paces at vwb.

[edit]
Hey, the path for vwb does not work well. It failed for me twice after around 15 loads, also the script doesn't detect this and keeps it logged in (doing nothing) because of anti ban. I created a new path which I just ran and got the following proggy.

Player: hsv
Loads: 61
Mining: tin
Exp gained: 30744
Time running: 00s

Note the time doesn't work but it was around 4.5 hours and I manually stopped it.

If you want to use it the path is:
tta := [tile(3175, 3427),tile(3171, 3421),tile(3171, 3413),tile(3170, 3405),tile(3172, 3396),tile(3175, 3387),tile(3182, 3379), Tile(3182, 3372)];  

I would also like to see it set the run as well.

Anyway as shown once the paths are working it works very nicely, good job.

Awkwardsaw

2011-05-10 22:03:04

thank you for the feed back, it's just what i wanted to hear :)

blackfire553

2011-06-02 22:06:54

Error after logging in and opening inventory screen:

Error: Out Of Range at line 99
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]

Edit: Tried again, same error.

Awkwardsaw

2011-06-10 12:52:44

i finally had time to work on this, :p

lumby swamp mine, draynor mine, draynor clay, VWB, VEB have all been tested. dwarf resource is over botted now, so i dont recomend mining there(unless your p2p)

small proggy(just to test the places)


[============================================================================]
[ Nick | Active | Worked | Rand | Script | Rock Mined | Loads | Exp Gained ]
[============================================================================]
[ ward | False | 00:22:28 | | True | 0 | 2 | 280 ]
[ rod | False | 00:36:15 | | True | 2 | 2 | 1008 ]
[ love | False | 01:32:44 | | True | 1 | 2 | 1008 ]
[ ubic | False | 02:08:50 | | True | 2 | 2 | 1008 ]
[============================================================================]

note:script sets players to false when finished with loads

cycrosism

2011-06-11 06:17:12

Can you include essence :redface:

[Ethan]

2011-06-11 12:03:35

Wow dan, long time no see :p

Awkwardsaw

2011-06-11 15:34:39

From: [Ethan]
Wow dan, long time no see :p


start getting on #ethan you noob :D

also, i was planning on adding essence to it cycro, making the current script more perfect is more important though :)

lNVlNClBLE

2011-06-11 18:18:53

Whenever my miners without their pickaxes equipped try to bank, I get this error:

[05:15:20 PM] niel banking
[05:16:06 PM] niel At location!
Error: Exception: Invalid variant type cast at line 483
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]

This is bolded at line 483: if vType = 2 then

These are mining iron at VEB, by the way.

Awkwardsaw

2011-06-11 20:25:43

From: lNVlNClBLE
Whenever my miners without their pickaxes equipped try to bank, I get this error:

[05:15:20 PM] niel banking
[05:16:06 PM] niel At location!
Error: Exception: Invalid variant type cast at line 483
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]

This is bolded at line 483: if vType = 2 then

These are mining iron at VEB, by the way.


that's a fail on my part, in the script go to line 275 where it says deposit(2, 28, 'all') and replace 'all' with true:

Deposit(2, 28, true);

onilika

2011-06-12 05:10:11

Could you add a granite one?

~UNKNOWN69

Awkwardsaw

2011-06-12 10:21:38

From: UNKNOWN69
Could you add a granite one?

~UNKNOWN69


i'll add that to my list

lNVlNClBLE

2011-06-13 17:18:03

From: Awkwardsaw
that's a fail on my part, in the script go to line 275 where it says deposit(2, 28, 'all') and replace 'all' with true:

Deposit(2, 28, true);


Thanks, that fixed the banking.
Every now and then the walking is messed up and my players get stuck almost halfway between the gate and the mining area.

Awkwardsaw

2011-06-13 17:28:28

From: lNVlNClBLE
Thanks, that fixed the banking.
Every now and then the walking is messed up and my players get stuck almost halfway between the gate and the mining area.


where at?

lNVlNClBLE

2011-06-13 21:31:40

From: Awkwardsaw
where at?


At VEB, I get this:
[08:23:12 PM] anie banking
[08:23:13 PM] anie banking done, mining now
[08:23:18 PM] anie tile not on map: 0
[08:23:18 PM] anie tile not on map: 1
[08:23:18 PM] anie tile not on map: 2
[08:23:18 PM] anie tile not on map: 3
[08:23:19 PM] anie tile not on map: 4
[08:23:19 PM] anie tile not on map: 5
[08:23:19 PM] anie tile not on map: 6
[08:23:19 PM] anie tile not on map: 7
[08:23:19 PM] anie tile not on map: 8
[08:23:19 PM] anie tile not on map: 9
[08:23:19 PM] anie tile not on map: 10
[08:23:19 PM] anie At location!

Awkwardsaw

2011-06-13 22:05:45

that's odd, is your player above 60 total level? I never had a problem with VEM

lNVlNClBLE

2011-06-14 04:07:17

From: Awkwardsaw
that's odd, is your player above 60 total level? I never had a problem with VEM


Yup, all 5 of mine are above total level 60.
Here's the log from my main char I let run overnight:

[11:14:47 PM] rath messed up walking to mine
[11:14:47 PM] rath messed up mining, switch players
[============================================================================]
[ Nick | Active | Worked | Rand | Script | Rock Mined | Loads | Exp Gained ]
[============================================================================]
[ rath | False | 13:48:47 | | True | 3 | 5 | 4900 ]
[============================================================================]
Successfully executed.

Awkwardsaw

2011-06-14 10:00:53

From: lNVlNClBLE
Yup, all 5 of mine are above total level 60.
Here's the log from my main char I let run overnight:

[11:14:47 PM] rath messed up walking to mine
[11:14:47 PM] rath messed up mining, switch players
[============================================================================]
[ Nick | Active | Worked | Rand | Script | Rock Mined | Loads | Exp Gained ]
[============================================================================]
[ rath | False | 13:48:47 | | True | 3 | 5 | 4900 ]
[============================================================================]
Successfully executed.


Ok, I'll work on it today :)

lNVlNClBLE

2011-06-14 11:03:42

From: Awkwardsaw
Ok, I'll work on it today :)


Thank you very much :D

doublex8

2011-06-14 21:42:14

So I was using the Dwarven Resource script and I come back to my computer and it's stuck in the falador east bank…does it not use the deposit box?

EDIT: also is there anything I can put in the script that will allow me to move my character a bit if there are no rocks available to mine? When there is you just stand there until another rock spawns

Awkwardsaw

2011-06-16 18:45:49

From: doublex8
So I was using the Dwarven Resource script and I come back to my computer and it's stuck in the falador east bank…does it not use the deposit box?

EDIT: also is there anything I can put in the script that will allow me to move my character a bit if there are no rocks available to mine? When there is you just stand there until another rock spawns


wtf, theres no way it should be in falador bank. unless it failed a random and got teled there.

also to move the guy, enable smart and move him :p


as far as the VEM walking goes, i cannot duplicate the bug where it stops in the middle of the path. maybe it has to do with lag at the gate? that used to mess it up in v0.2. I made a new path regardless, i'm still testing it, and maybe i'll upload a new one tonight

doublex8

2011-06-17 09:24:26

From: Awkwardsaw
also to move the guy, enable smart and move him :p


hard to do when you aren't at your computer :p

topiser

2011-06-17 23:40:33

The script works amazingly well! Been running it for like 3-4 hours and it's gotten me from level 1 to level 26 mining and 62 loads of clay. The proggie is a bit weird though as the time doesn't work lol.


Player: *****
Loads: 62
Mining: clay
Exp gained: 8680
Time running: 10h 28s


Thanks for the script! I'll continue to use it :)

Awkwardsaw

2011-06-18 00:04:28

From: topiser
The script works amazingly well! Been running it for like 3-4 hours and it's gotten me from level 1 to level 26 mining and 62 loads of clay. The proggie is a bit weird though as the time doesn't work lol.



Thanks for the script! I'll continue to use it :)


Thanks for the proggy :)

doublex8

2011-06-18 13:12:47

But seriously is there anything I could add myself to this script real quick that would allow me to move if no visible rocks have coal in them? Not too knowledgeable on scripting yet

Awkwardsaw

2011-06-18 17:38:37

From: doublex8
But seriously is there anything I could add myself to this script real quick that would allow me to move if no visible rocks have coal in them? Not too knowledgeable on scripting yet


on line 350, where it says

rockarr := GetObjectsByIDEx(oreids, OBJECT_TYPE_INTERACTABLE, 9);

change 9 to a higher number, it should find rocks at a farther distance

topiser

2011-06-19 07:54:41

Here's a couple more proggies:

Player: *****
Loads: 144
Mining: clay
Exp gained: 20160
Time running: 06h 55m 08s


Player: *****
Loads: 144
Mining: clay
Exp gained: 20160
Time running: 06h 54m 49s


Lol I just noticed both got the same amount of loads :p

Awkwardsaw

2011-06-19 08:13:06

nice proggies :) just wondering, are you experiencing trouble with banking? when i run draynor clay, sometimes it doesn't find the bank and walks back to the mine with a full load

e: ~10k more minutes until this script is on the first page for SRL stats. http://stats.villavu.com/script/all/2

doublex8

2011-06-19 11:39:39

From: Awkwardsaw
on line 350, where it says

rockarr := GetObjectsByIDEx(oreids, OBJECT_TYPE_INTERACTABLE, 9);

change 9 to a higher number, it should find rocks at a farther distance


How sensitive is this? Would increasing it by one make a huge difference or do I need to increase it by 10?

Awkwardsaw

2011-06-19 12:10:15

From: doublex8
How sensitive is this? Would increasing it by one make a huge difference or do I need to increase it by 10?


9 = it will look for objects that are 9 tiles away from you. i would go like 10-13

topiser

2011-06-19 13:55:03

From: Awkwardsaw
nice proggies :) just wondering, are you experiencing trouble with banking? when i run draynor clay, sometimes it doesn't find the bank and walks back to the mine with a full load

e: ~10k more minutes until this script is on the first page for SRL stats. http://stats.villavu.com/script/all/2


I'm using VW mine for the clay, and it's had no trouble at all getting to the bank. Been 100% accurate every time I believe.

And nice :) I'll probably contribute some hours so you get closer to the first page xD

Gambit

2011-07-07 01:42:31

-My error, forget about this.-

litoris

2011-07-22 05:09:52

I knwo you haven't edited this script for over a month or so, but could you please consider trying this?
From: newb cheater
Works well. :D Btw, do you think it is possible to add a iron miner outside the resource dungeon which banks inside the dungeon.


It is nice xp and profit there, I'm sure many would use it.

yosupg

2011-08-20 18:15:51

This script always messes up on the walking at different parts when I mine at veb

Awkwardsaw

2011-09-06 20:04:25

hey everyone, i hacked awkwards acount because he left his old passward on the autobot ;) suckz to be himmmm

Goovreau

2011-09-06 20:20:21

haha that was mee ;)

Coh3n

2011-09-06 20:22:37

From: Goovreau
haha that was mee ;)
And now you're banned.

goovreau2

2011-09-06 20:28:09

I was kidding!!!! I was about to put jk!!!! Wtf

Coh3n

2011-09-06 20:29:15

From: goovreau2
I was kidding!!!! I was about to put jk!!!! Wtf
Then why was your IP used on his account?

goovreau2

2011-09-06 20:29:44

B u s t e d

coh3n is an asshole

2011-09-06 20:39:45

awkward i have a question, your script doesnt work for me.

grats

2011-09-06 20:43:47

calling him an asshole and a cunt isn't the best way to go about your new account

Awkwardsaw

2011-09-06 20:44:44

i still have no idea what auto bot is. :p

coh3n is an asshole

2011-09-06 20:44:49

what?

Coh3n

2011-09-06 20:48:33

Lol, I honestly don't know what to say.

Flight

2011-09-06 21:51:14

Coh3n, whoever it was that you banned really holds a grudge. :S

http://www.moparisthebest.com/smf/index.php/topic,499215.0.html

Coh3n

2011-09-06 22:06:34

From: Flight
Coh3n, whoever it was that you banned really holds a grudge. :S

http://www.moparisthebest.com/smf/index.php/topic,499215.0.html
Oh god. :duh:

Anyway, no more talk about this guy on this thread. If you have anything to tell me, PM me or catch me on IRC. :)

Awkwardsaw

2011-09-06 22:27:24

From: Coh3n
Oh god. :duh:

Anyway, no more talk about this guy on this thread. If you have anything to tell me, PM me or catch me on IRC. :)


or we could keep bumping this thread. ;)

mkid22

2011-09-11 20:50:05

Guys is this script still working? getting

[Error] (89:7): Unknown type 'TMe' at line 88
Compiling failed.

while running it?

Awkwardsaw

2011-09-11 22:08:22

no it's not, i have to update it to the newest reflection

Coh3n

2011-09-12 15:59:42

Moved to outdated section until further notice.