Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
BottingHub.com Advertisment
Download the DreamBot client today!


  • Content Count

  • Joined

  • Last visited

About mariotcc

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Nex thank you, it seems to have worked. I think i'm logically understanding my mistake, and I need to bare in mind in which {} (order-wise) that I ask for the command, I think I included it too late, so to speak. Thank you for your help! I did have another question but was determined to figure it myself! 😁 Managed to solve that one! Hopefully soon I will be able to release something for the community
  2. Hi guys! This time I am trying to push my self to make a woodcutting script which does more than "chop & drop". At the moment I am coming into an issue where my charactor for some reason is attempting to cut a tree before he is in the correct location. I am struggling to see what I am doing wrong, as it is my aim to try and figure out as much I can on before asking for help. The area is the trees just outside the GE. If I start the script in the GE, you will notice before the charactor gets to the area, It attempts to cut a tree. How can I make the script only cut when the charactor is the desired area? I have attempted to code it myself but I'm not getting the result. The code is below. Feel free to offer any corrections you can see as it will help me learn for the future! Already I am learning crazy amounts on this forum. I hope this topic will be of help to anyone else experiencing this too. Thank you in advance guys! package Main; import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.map.Area; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.wrappers.interactive.GameObject; @ScriptManifest(author = "Mario", name = "Mario's Varrock Log Chopper", version = 1, description = "Cuts Logs At Varrock And Banks", category = Category.WOODCUTTING) public class main extends AbstractScript { @Override public int onLoop() { Area wc = new Area(3150, 3462, 3163, 3450); GameObject tree = getGameObjects().closest("Tree"); //its around this point where the issue is occuring// if (wc.contains(getLocalPlayer())); else { getWalking().walk(wc.getRandomTile()); sleepUntil(() -> wc.contains(getLocalPlayer()), 10000);} // I am assuming the issue may be this line? if (getLocalPlayer().isAnimating()); else { if (tree != null) ; { tree.interact("Chop Down");} } if(tree.interact("Chop Down")){ sleepUntil(() -> !getLocalPlayer().isAnimating(), 10000); } return Calculations.random(1000, 2000); } }
  3. Im excited to see what new features gets added! 😄
  4. Awesome man, I totally understand it may be a job to get it right. If I think of any more ideas i'l be sure to post and see what others think too!
  5. Hi guys, I was messing with the break feature today, and I thought of an idea which could help speed up break programming and implementing. I wasn't able find such feature i'm suggesting, if it exists please let me know! if not, here goes : 1) I think it would be a good idea to allow the user to either make a pool of breaktimes, and apply the breaks they made to different accounts via a menu of some sort? this would save entering all the times multiple times across many accounts 2) Perhaps having a "copy break profile" option and allowing the user to paste that to other accounts. I think this would help speed things up especially if people are either farming, or running multiple accounts. Let me know what people think, I think this could be real useful, especially to someone like myself who is currently scripting and testing across multiple accounts, It makes things more time efficient. Thanks guys, hope you like my suggestion! Mario
  6. thank you mate! appreciate your time and help! I am sure this will help other noobs like myself.
  7. Hi guys I am currently workin on a simple woodcutting script, so far it loops well, managed to get 1-23 woodcutting with no problem at all. To expand on this script and make it better, I would like to implement a random sleep time after cutting each log, as I feel it would make sense and appear more realistic. I will show my code with my mistake as it may show you guys where I am trying to add the sleep function logically (may be wrong place but i think it will help understand my thought process) package main; import org.dreambot.api.methods.map.Area; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.wrappers.interactive.GameObject; @ScriptManifest(author = "Mario", name = "firstScript", version = 2, description = "First Demo!", category = Category.MONEYMAKING) public class main extends AbstractScript { @Override public void onStart() { log("Script has now Started!"); log("Enjoy My Demo Script!"); } @Override public int onLoop() { Area cuttingArea = new Area(3138,3257,3157,3239); if (!getLocalPlayer().isAnimating()) { if(cuttingArea.contains(getLocalPlayer())); else{ getWalking().walk(cuttingArea.getRandomTile()); } if(getInventory().isFull()){ getInventory().dropAllExcept("Small fishing net"); } else{ GameObject tree = getGameObjects().closest("Tree"); if (tree != null){ tree.interact("Chop Down"); log("Cutting Tree"); } if(tree.interact("Chop Down")){ int countLog = getInventory().count("logs"); sleepUntil(() -> getInventory().count("logs") > countLog, 10000); sleep((int) (Math.random() * 7002)); } } } return 1500; } @Override public void onExit() { log("The Script Has Ended!"); } } Thank you in advance guys! any help will be greatly appreciated!
  • Create New...