SRL Archive - First Scripts

My First Clay Miner


benny999

2012-05-17 04:33:50

Features:
MultiPlayer
Banking (Only Atm, and pretty quick)
Walking Failsafes which should make it pretty failsafe i hope :)

Setup:
have pickaxe in first slot or equipped it doesn't deposit slot 1 in inventory
Start It either Bank Or Mine (And Soon the Well In Barb Village)
ok start it at barb village clay mine theres a map in the attachments

Version 1.04
ok you can now start it at the bank (varrock west bank) the well (Barb Village Well Just up from coal) or the mine

it softens the clay on the way i have only tested it for a little while (30 mins)

so test it out give me some bug reports

Version 1.05
I added a Basic Proggy posts just after you finish resting at the bank
fixed the softening dtm now it will work i forgot to add tolerance on the colour silly me haha

Version 1.06 —Just Released
Tweaked camera angles a bit
tweaked the mining procedure should go faster now
and also added a check to see if softening the clay noticed it was missing sometimes



Credits:
KeepBotting and Siel pinched your mining procedure (not using this any more but im gonna keep it here because i learnt somethings from it)
and YoHoJo for antiban and StatsGuise

iiNveRsioN

2012-05-18 22:22:40

Testing right now, will report back for you.

Kyla

2012-05-18 23:18:44

Looks similar to KeepBotting's script?

iiNveRsioN

2012-05-19 01:34:05

From: Kyla
Looks similar to KeepBotting's script?


It is similar, it just uses a different method of banking and different anti-ban. It also has a different walk path.


Anyways here's my update: I ran this script along 10 accounts for about 3 hours. 3/10 of them failed due to this error:


Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

Seems like sometimes when it is running back to the mine it will get CLOSE to the mine but goes off path when it's near the mine(like one click away) and gets 'lost' and just sits there until the account logs due to inactiveness.


Other then that I like the updated banking method, no longer gets 'stuck' trying to bank and the anti-ban is much less obnoxious.

Gucci

2012-05-19 01:52:17

From: iiNveRsioN
It is similar, it just uses a different method of banking and different anti-ban. It also has a different walk path.


Anyways here's my update: I ran this script along 10 accounts for about 3 hours. 3/10 of them failed due to this error:


Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

Seems like sometimes when it is running back to the mine it will get CLOSE to the mine but goes off path when it's near the mine(like one click away) and gets 'lost' and just sits there until the account logs due to inactiveness.


Other then that I like the updated banking method, no longer gets 'stuck' trying to bank and the anti-ban is much less obnoxious.


That isn't a error, just assuming that it's probably cause the script can't see the clay rocks after walking. Or if they're visible on screen then it's probably the colors not being the best

iiNveRsioN

2012-05-19 01:54:43

From: Gucci
That isn't a error, just assuming that it's probably cause the script can't see the clay rocks after walking. Or if they're visible on screen then it's probably the colors not being the best


Yeah, one two of the test accounts the rocks were visible on screen and it was spamming that. On the other one, it was about a click off away from the rocks.

Gucci

2012-05-19 02:04:22

From: iiNveRsioN
Yeah, one two of the test accounts the rocks were visible on screen and it was spamming that. On the other one, it was about a click off away from the rocks.


Yeah it's the finding function/ colors on my phone so I can't look at the code :/

iiNveRsioN

2012-05-19 02:27:31

From: Gucci
Yeah it's the finding function/ colors on my phone so I can't look at the code :/


I believe this is what you want to see:



Procedure MineClay; //Credits to Siel of Villavu for the V1.0+ MineClay procedure.
var x, y, PlusOne, RockCounter: integer;
begin
if not LoggedIn then Exit;
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);

repeat
FindNormalRandoms;
PlusOne:= InvCount + 1
WriteLn('Finding a rock to mine...');
if FindObj(x, y, 'ocks', 7647960, 10) then //This finds the object, records the X and Y values,
begin //and tells the script to find the option "Rocks".
WriteLn('Mining rock.');
Mouse(x, y, 0, 0, true);
ChooseOption('lay'); //This tells the script to left-click on the object and select "Clay".
MarkTime(RockCounter);
Antiban;
repeat
Wait(150);
FindNormalRandoms;
until (InvCount=PlusOne) Or (TimeFromMark(RockCounter) > 5000 + random(1000))
if (InvCount=PlusOne) then
Writeln ('Money $$ Money');
end;
until (InvFull); //This is an Until function. It stops the repeat function if the rock has been mined or your inventory is full.
end;


Gucci

2012-05-19 02:32:28

Yeah seems like the FindObj is lacking use ACA and find some good colors and use FindObjCustom instead

benny999

2012-05-20 03:00:56

thanks guys its pretty basic yeah i gave credits to who i used bits from the rest i wrote my self with the error

Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

try increasing the wait in the bank procedure between findnormalrandoms and open bank thats what happening to me and i increased that and problem solved maybe add half a sec ill muck around with it a bit more now i have a bit to go on from some tests thanks guys :)


also wanting to add softening at the well in barb village just gotta find the time and learn more

benny999

2012-05-20 06:48:48

updated tried to fix a few things changed the whole mining procedure and finding mining spot should be fixed now :) i hope haha

im learning different ways of walking, getting there


ugh update tested script walking is stuffed need to learn how to walk with something other than sps i think

iiNveRsioN

2012-05-20 17:23:11

From: benny999
updated tried to fix a few things changed the whole mining procedure and finding mining spot should be fixed now :) i hope haha

im learning different ways of walking, getting there


ugh update tested script walking is stuffed need to learn how to walk with something other than sps i think


Awesome, I'll run some more tests for you and see if I find anything.


Update: Mining procedure works much better, however the SPS walking in draynor is buggy. When it walks back to the mine it for some reason decides to keep walking to the northeast into the farm fenced area probably every 1/10 times. I'm going out but when I get back I'm gonna throw your new mining procedure into the old Varrock path you had and see how that works.

benny999

2012-05-21 02:28:55

cool yeah the new mining procedure should be a bit better i havent added failsafes to it yet just antirandoms, antiban, and it just clicks mine then waits 3 seconds or so, yet to add +1 inv count then and so on yeah sps is pretty buggy there dunno why it keeps clicking other places i haven't told it to i used path creator v0.9 so i dunno if its that gotta try a few diffrent things

benny999

2012-05-21 05:31:56

ugh not loving life
when ever i run my test walking script i get this error
[Error] C:\Simbastable\Includes\ObjectDTM\ObjDTMInclude.simba(379:53): Unknown identifier 'MMCX' at line 378
Compiling failed.

i have attached a copy of the script if someone could look at it i thin its a issue with the objDTMIncude any way

iiNveRsioN

2012-05-21 05:45:57

From: benny999
cool yeah the new mining procedure should be a bit better i havent added failsafes to it yet just antirandoms, antiban, and it just clicks mine then waits 3 seconds or so, yet to add +1 inv count then and so on yeah sps is pretty buggy there dunno why it keeps clicking other places i haven't told it to i used path creator v0.9 so i dunno if its that gotta try a few diffrent things


I tried using your new mining procedure with your old varrock walking path since Draynor SPS walking is buggy and I start it at the mine and it mines a load then runs to the bank but when it gets back to the mine it says it can't find anything and logs out. Ideas? .. maybe I'm missing something.

So, I'm back to using the first version with a few changes in wait times and I've ran 10 accounts for 4 hours straight with only 2 failing. Not bad.

benny999

2012-05-21 06:04:12

cool thats good getting im working on objectDTM walking for draynor atm so get that working then ill touch up the mining

benny999

2012-05-21 06:14:46

now im getting this error with trying to run my walking script

i reinstalled my simba and everything trying to fix my last error :( dunno whats going on



Compiled successfully in 453 ms.
SRL Compiled in 0 msec
SMART Initialized.
Loaded: Server 10, Members: True, Signed: True, Super Detail: False.
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]
New window: 2164224
[Error] C:\Simba\Includes\ObjectDTM\ObjDTMInclude.simba(379:53): Unknown identifier 'MMCX' at line 378
Compiling failed.
[Error] C:\Simba\Includes\ObjectDTM\ObjDTMInclude.simba(379:53): Unknown identifier 'MMCX' at line 378
Compiling failed.

iiNveRsioN

2012-05-21 16:35:16

I assume you have ObjectDTM installed? (dumb question, but gotta ask..)

If not..

http://villavu.com/forum/showthread.php?t=68112

benny999

2012-05-22 03:26:05

yeah just had the includes around the wrong way haha now gotta make it reliable

benny999

2012-05-22 06:52:06

updates updates updates

iiNveRsioN

2012-05-22 19:06:53

From: benny999
updates updates updates


I'll test it out when I get home!

benny999

2012-05-24 05:24:03

i gave up on drynor mining spot the walking the bank is just way to buggy so im reworking the varrock banking area.


ok load up the varrock script shortly

now to learn the best way to use the fountain

benny999

2012-05-24 08:36:47

running a lot better now been testing for about 3 hrs not hitches for me let me know if anyone else is having a issue and ill try my best to fix

running 4 hrs now same account

kazzos

2012-05-26 01:25:46

working very nicely so far. Banks flawlessly have done about 15 loads. keep up the good work, much appreciated.

benny999

2012-05-27 04:20:06

thanks bud i had it run for 6 hours the other night just trying to make the walking a bit more fail safe



edit: need more people to test the new version to see if theres anymore errors i wanna see if i can get

srl membership with it what do people think i need to add for it?

benny999

2012-05-27 08:57:31

the new CheckMine Procedure is looking pretty good now test again think its a lot more reliable now :)

benny999

2012-05-30 06:53:57

Bump;

Test Out the new version please does clay softening on the trip home now :) even more profit an hour

iiNveRsioN

2012-06-01 04:31:22

From: benny999
Bump;

Test Out the new version please does clay softening on the trip home now :) even more profit an hour


I tried it but it just runs up to the well and then rests.. it doesn't make any soft clay :/

benny999

2012-06-02 03:09:59

oh the dtm is knackered updating right now i didnt add tolerance my mistake

iiNveRsioN

2012-06-03 19:22:14

Awesome. It seems to work okay, one thing you need to add is this:

SetAngle(SRL_ANGLE_HIGH);

at the end of WalkBank and WalkWell otherwise the anti-ban sometimes messes up the angle and it can't find the well/bank. You already have it on WalkMine just not the those 2 :P

I haven't tested very long yet but it looks like it's a winner. ;)

benny999

2012-06-04 03:07:37

cool thanks for that im working on a check to see if it has softened the clay atm as well(noticed it was missing it sometimes)

iiNveRsioN thank you doing so much testing for me its very much appreciated this is my first script that i have written a lot of my self and so far with your help and a lot of tuts its starting to turn into a fairly reliable one hopefully i can start adding other locations and stuff to it 2 make it even better :)


heres 2 of my progress reports


********************************************
* Benny999 ClayMiner *
********************************************
We have Mined 1728Clay.
We have gained 8640 xp.
We have been running for 6 Hours, 3 Minutes and 23 Seconds
********************************************
* Benny999 ClayMiner *
********************************************
We have Mined 1620Clay.
We have gained 8100 xp.
We have been running for 6 Hours, 1 Minutes and 30 Seconds
********************************************

benny999

2012-06-04 04:11:56

New Version 1.06 released

iiNveRsioN

2012-06-04 16:46:11

From: benny999
cool thanks for that im working on a check to see if it has softened the clay atm as well(noticed it was missing it sometimes)

iiNveRsioN thank you doing so much testing for me its very much appreciated this is my first script that i have written a lot of my self and so far with your help and a lot of tuts its starting to turn into a fairly reliable one hopefully i can start adding other locations and stuff to it 2 make it even better :)


heres 2 of my progress reports


********************************************
* Benny999 ClayMiner *
********************************************
We have Mined 1728Clay.
We have gained 8640 xp.
We have been running for 6 Hours, 3 Minutes and 23 Seconds
********************************************
* Benny999 ClayMiner *
********************************************
We have Mined 1620Clay.
We have gained 8100 xp.
We have been running for 6 Hours, 1 Minutes and 30 Seconds
********************************************



Nice, no problem! Here's one of mine that made it to six hours:

********************************************
We have Mined 1728Clay.
We have gained 8640 xp.
We have been running for 6 Hours, 2 Minutes and 41 Seconds
******************************


The only reason mine fail now are due to an SPS error, SPS fails sometimes but not a huge issue.

Something you could add is path detection.. so it detects where it is wherever you login at(so long that you are along the path) and goes from there.

cadet54

2012-06-05 09:17:20

Hey awesome script here is my progress report

********************************************
* Benny999 ClayMiner *
********************************************
We have Mined 1512Clay.
We have gained 7560 xp.
We have been running for 5 Hours, 23 Minutes and 51 Seconds
********************************************

benny999

2012-06-06 07:25:14

Thanks guys yeah more to learn ha ha not bad for a first script

[XoL]

2012-06-14 17:46:11

Interesting I wrote a script with a similar function (mine does the same thing except I have it mine the clay near dranyor and soften in dranyor then bank using dranyor bank :p)

I think this is a great start to a script, what I would recommend is many more fail safes it just seems like there are too many variables Jagex could throw our way that would break your script. I was also looking at the script and it really could use some standards works!

Otherwise I think it is a phenomenal start.

benny999

2012-06-14 18:30:50

thanks bud yeah i need to work more fail safes in i just dont understand them that much yet and stanard haha im a bit lazy i will get there. as far as failsfes do you have any tips on what i should add or know of any good tuts?

benny999

2012-06-22 03:50:09

i have stopped with this project any one who wants the script its yours certain people telling me its not mine i dont care i give up