DrizzyBot Posted January 15, 2018 Share Posted January 15, 2018 (edited) First open-source script to contribute to the community. Wrote this in about ten minutes cause I'm too lazy to train mining myself, thus, this may not be the cleanest code you'll ever see. Anyways, all it does it mines iron in the Al Kharid desert mine and drops it when your inventory is full. This can be useful as an open source script to new scripters, or for those who are trying to switch from onLoop() scripts to task-based scripts. How to use Start at the spot as shown in the screenshot below Have a pickaxe equipped or in your inventory Turn your "Game" filter to off so it shows every message. Requirements A pickaxe you can use in your inventory or equipped (always use the highest level pickaxe you can) 15+ mining 29+ combat level Screenshots How to Install Download the script from here: https://www.dropbox.com/s/yi2ljbojrty0zkb/diron.jar?dl=0 Put the JAR file in your OSBot scripts folder (Usually C:/Users/YOUR_USER/OSBot/Scripts Source https://github.com/DrizzyBot/DIron If anyone has any questions about the source or script in general, I'd love to help. Just drop a post below and I'll reply when I can. Just as a side note, while I do use static IDs in the script, it is highly recommend that you don't do so. I'm only using them because I was in a rush and it was the easiest way to differentiate between a rock with ore in it, and a rock without ore in it. Edited January 16, 2018 by DrizzyBot Quote Link to comment Share on other sites More sharing options...
John Liu Posted January 15, 2018 Share Posted January 15, 2018 looks nice and simple. Ill try it out. Quote Link to comment Share on other sites More sharing options...
Charlotte Posted January 15, 2018 Share Posted January 15, 2018 Nice work, but I think you got to be at least a few levels above the scorpions. Quote Link to comment Share on other sites More sharing options...
Fratem Posted January 15, 2018 Share Posted January 15, 2018 33 minutes ago, Charlotte said: Nice work, but I think you got to be at least a few levels above the scorpions. cb level scorpion x 2 +1, so 29 iirc Quote Link to comment Share on other sites More sharing options...
DrizzyBot Posted January 16, 2018 Author Share Posted January 16, 2018 5 hours ago, Charlotte said: Nice work, but I think you got to be at least a few levels above the scorpions. Added to requirements in OP, forgot about it. Thanks. Quote Link to comment Share on other sites More sharing options...
scriptersteve Posted January 16, 2018 Share Posted January 16, 2018 nice release matey Quote Link to comment Share on other sites More sharing options...
deadfish Posted April 13, 2018 Share Posted April 13, 2018 So was trying to use this as a chance to figure out how to change out static ID's . But I cant for the life of me figure out whats going wrong. There's an impressive amount of organization for the short time it took you to write this though, kudos man. Quote Link to comment Share on other sites More sharing options...
Taylorr Posted April 25, 2018 Share Posted April 25, 2018 (edited) Thanks for the source I am learning myself. What are the benefits of using task based scripts over onloop? Edited April 25, 2018 by Taylorr Quote Link to comment Share on other sites More sharing options...
Apaec Posted April 25, 2018 Share Posted April 25, 2018 6 hours ago, Taylorr said: Thanks for the source I am learning myself. What are the benefits of using task based scripts over onloop? No benefit, other than organisation. Same reasoning with the common 'State' pattern. -Apa Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted April 25, 2018 Share Posted April 25, 2018 6 hours ago, Taylorr said: Thanks for the source I am learning myself. What are the benefits of using task based scripts over onloop? It's easier to manage and stay organized when dealing with very large scripts. Quote Link to comment Share on other sites More sharing options...