Jump to content











~Kaji's Clay Miner/Softener~ Barb Village/Edge


  • Please log in to reply
162 replies to this topic

#1
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11

Kaji's Clay Miner/Softener
This Script will mine the clay south of barb village,
then turn it into soft clay before going back
to Edgville bank to bank it all.
Anti-Ban
V1.05
Save as Kajis_ClayMiner.java
Click Me For Code

Just start anywhere between Edgville and the Barb Village
with a pickaxe.
A Proggy i Made using a rune pic:
Posted Image
Another one i made myself 284hours! with a bronze pic lol
Posted Image

A Proggy by
Sharpio21.
Posted Image

Alzar12 said:

stewen said:

Heres a fast proggy!

http://v.yey.nu/81fee92c3f.png

BTW, I can say that I botted 40 hours this weekend and got about 900k in PURE PROFIT!! (Rune Pick in inventory. 8)

If you like this script or any of my others
please donate so i can keep it updated!
https://www.paypal.c...tem_name=Kaji's PowerBot Scripts¤cy_code=USD&bn=PP-DonationsBF%3abtn_donate_LG.gif%3aNonHostedPosted Image

Also try one of my other scripts!!
~Kaji's Urn Crafter~
~Kaji's Monkfish Fisher~
~Kaji's Ectofuntus~
Coming soon Kaji's Farming script!
Also
~Suggest a Script~

Happy Mining!


Edited by Kaji, 10 June 2011 - 12:41 PM.


#2
thatricksta

thatricksta
  • Members
  • 161 posts
  • Joined 13-February 11
how many clay/ hour does it average? i might test this out. thanks

#3
wikked

wikked
  • Members
  • 110 posts
  • Joined 12-May 10
proggy plz

#4
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
proggy posted and updated to v1.01 (changed clay mined to profit)

#5
ImChilean

ImChilean
  • Members
  • 41 posts
  • Joined 24-January 11
very good script, ill post proggy tomorrow

very good script, i'll post proggy tomorrow

#6
StickyJunk

StickyJunk
  • Members
  • 4 posts
  • Joined 10-June 10
Been going since last night, i have about 3.2k soft clay in bank now. Only problems are:

When it goes to the well, it gets to the "make soft clay" menu button thing... and doesn't click it.

It eventually re-clicks the clay and then the well, and it finally clicks the make soft clay button, but that pause is quite long and wastes ALOT of precious time.

Other than that, sometimes it crashes for me, get something along the lines of...

uncaught exception from script: java.lang.NullPointerException
at Kajis_ClayMiner.doMine(Kajis_ClayMiner.java:107)
at Kajis_ClayMiner.loop(Kajis_ClayMiner.java:88)
at org.rsbot.script.script.run(Script.java:247)
at java.lang.Thread.run(unknown source)



Thanks for the awesome script though, almost flawless upon release, much appreciated, i'll keep testing for now :)

#7
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
yeah, i fix both of thous issues with 1.01. just some sleep time adjustments.

just put up a 11 hour proggy i made!

#8
StickyJunk

StickyJunk
  • Members
  • 4 posts
  • Joined 10-June 10
had it running beautifully for 6 hours, missed proggy, i have two 3 hour proggies atm, just about to test it with updated code, should be ever more win >:)

thanks so much for this script, it's exactly what I was looking for.

#9
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
Your Welcome, glad i could help people out. if your not selling the clay i have a urn crafting script and a tab making script you could use =)

#10
Oneiva

Oneiva
  • Members
  • 20 posts
  • Joined 09-August 09
Hey Kaji cheers for the great script! Im just wondering if the code you have posted is the latest version. Im using the one posted in the quotebox/codebox, and It sometimes has the issue of standing at the well.

Overall great script I will continue using this script on 4 of my accounts.

Keep me posted!

#11
Pyro FTW

Pyro FTW
  • Members
  • 216 posts
  • Joined 10-March 09
Been running for over an hour now, and two things that could use improving:
WELL: if it messes up trying to soften the clay, it will wait for 1 Cycle (presumably the time it takes to soften an invy) before it tries again
Mining, if it mines ore but it gets taken it does not move on to a new rock until the animation is complete (but hold off on this until the well is fixed, unless this is very easy :P)

EDIT:
I noticed after looking through your code a bit that for the softening portion, you have a 35-40sec wait, I'm not too sure of the exact syntax for this, but make a timeout for the last server message received containing "You mix the clay and water........" and after the timeout has been reached, say 2 seconds re call the soften method. Note: there may be another way to do this, i originally thought there was an animation with this, but that turned out to be false.

#12
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
yeah, i was working on a fix for the clay softening, i hadn't thought of your idea, i was going to have it get the count of soft clay in the inventory, then wait about the time it takes to make 1 soft clay then count the clay again, if no change try make clay again, if there was a change to the count ie it's making clay wait it would keep waiting. i'll look into the mining part too for you.

#13
TezzSun

TezzSun
  • Members
  • 89 posts
  • Joined 15-December 10

Kaji said:

yeah, i was working on a fix for the clay softening, i hadn't thought of your idea, i was going to have it get the count of soft clay in the inventory, then wait about the time it takes to make 1 soft clay then count the clay again, if no change try make clay again, if there was a change to the count ie it's making clay wait it would keep waiting. i'll look into the mining part too for you.

The idea of making it wait 35-40 seconds should be an option. I just wanna mass suicide this bot lol.
Plus i do get error codes which stops the bot. Any idea how u can fix that?
If you can get those 2 fixed, it will be the best bot ever! :D

#14
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
the wait time was for it to soften the clay, which i cant speed up, just stop it from failing to make the clay. could you post the errors you got? i would have to read them to see what went wrong. any other info you have when you got the error would be helpful too, like where it stopped and what it was doing at the time. thanks.

#15
IbikeI

IbikeI
  • Members
  • 20 posts
  • Joined 30-November 10
Sometimes I get NullPointerException. I don't understand where it comes from but maybe you do because ur the pro scripter :D. Was running on 4 chars but 2 of them got the NullPointerException.

#16
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
there should be some numbers after the errors. is that the only part of the error message? the numbers tell me where in the script it's running into the problems. with v1.0 there was a error when it would walk to the mines but i fixed that with v1.01.   working on v1.02 right now.

#17
Algol

Algol
  • Contributors
  • 325 posts
  • Joined 24-December 10
how about this?

private final void doSoften() {
		RSObject water = objects.getNearest(waterID);
		RSItem clay = inventory.getItem(clayID);
		RSComponent iface = interfaces.getComponent(905, 14);
		int countClay = inventory.getCount(clayID);
		inventory.useItem(clay, water);
		sleep(random(1500, 2000));
		if(iface.isValid()){
				iface.doHover();
				sleep(random(800, 1000));

				if (iface.doClick()) {
				 int fail = 0;
				 while (fail++ < 5 && countClay > 0) {
				  sleep(400, 500);
				  antiBanM();
				  antiBanC();
				  //status = "Making Soft Clay. " + countClay + " Clay Left";
				  if (countClay != inventory.getCount(clayID)) {
				   fail = 0;
				  }
				  countClay = inventory.getCount(clayID);
				 }
				}

		}}

and remove the sleep(random(35000, 40000)); after the doSoften() in your loop...

#18
IbikeI

IbikeI
  • Members
  • 20 posts
  • Joined 30-November 10
[WARNING] Sat Mar 05 12:45:28 CST 2011: Kajis_ClayMiner: Uncaught exception from script: java.lang.NullPointerException
    at Kajis_ClayMiner.doMine(Kajis_ClayMiner.java:118)
    at Kajis_ClayMiner.loop(Kajis_ClayMiner.java:93)
    at org.rsbot.script.Script.run(Script.java:247)
    at java.lang.Thread.run(Unknown Source)

#19
Kaji

Kaji
  • Contributors
  • 557 posts
  • Joined 21-February 11
Updated to v1.02. improved anti-ban. changed well method.

IbikeI the error your getting should be fixed now too!

#20
ilias026

ilias026
  • Members
  • 59 posts
  • Joined 22-October 09
I started this script but it just stands there and it does nothing only anti-ban camera??
please help me I want to use this script cus it looks very good!