January 15, 20188 yr 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, 20188 yr by DrizzyBot
January 15, 20188 yr 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
January 16, 20188 yr Author 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.
April 13, 20187 yr 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.
April 25, 20187 yr Thanks for the source I am learning myself. What are the benefits of using task based scripts over onloop? Edited April 25, 20187 yr by Taylorr
April 25, 20187 yr 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
April 25, 20187 yr 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.
Create an account or sign in to comment