Jump to content

Vogelbekdier

Members
  • Posts

    30
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

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

Vogelbekdier's Achievements

Bronze Poster

Bronze Poster (2/10)

7

Reputation

  1. Made a couple of quests script and they all work decently but are not as efficient as I would like them to be. My waterfall Quest script is over 1k lines of code there is definitely room for improvement there.... Below my restless ghost script as it is fairly short. (Won't be troubling anyone with 1k+ lines of spaghetti code). Currently, feel like my main method of sequencing the script by using Area's only to determine where my player is and what actions to complete next is not efficient. Also, feel like I am losing a lot of lines due to a large number of conditional sleeps, tried using Explv's sleep method but it returns me with loads of errors sadly. Any/All feedback welcome as the sole aim of this post is to try and improve!
  2. Making a Hillgiant script for my F2P HCIM that loots and buries Big Bones. Is there any way I can have the Script only loot my own drops as currently my loot method will spam click other players their bones and keeps toggling the message I can't pick up other players drops. current method I'm using: ``` private void loot() throws InterruptedException{ GroundItem bigBones = getGroundItems().closest("Big bones"); if (bigBones != null && !myPlayer().isAnimating() && !getInventory().isFull()) { bigBones.interact("Take"); log("Got some bones."); new ConditionalSleep(2500) { @Override public boolean condition() { return getInventory().contains(; ; Also if my inventory already contains Big Bones and I want to loot more big bones what conditional sleep can I use to prevent my player from spam-clicking the Bones? The current method only works for the first bone it picks up: new ConditionalSleep(2500) { @Override public boolean condition() { return getInventory().contains("Big bones");
  3. All beginner clues got ID 23182 and model ID 37162. Yes, I might have been too ambitious making a clue solver as one of my first Scripts however, I have learned a lot from what I've got so far. Unfortunately, the way I wanted to structure the script is not working out for me. I was planning on opening the clue and grabbing the Message from the widget and applying it to a variable that I want to use in a switch() to complete the task. I came up with the following code for my onLoop() but it's not working. @Override public int onLoop() throws InterruptedException { String clue = clueTask(); if(clue == null) { getClueTask(); } else if(clue != null) { switch (clue) { case xyz: //complete task break; case xyz: //complete task } } return 3000; }
  4. Trying to assign the value of the Method clueTask() to the String clueTask and have it log to the console using log(clueTask); private String clueTask = clueTask(); private String clueTask() { RS2Widget clueTaskAnagram = (RS2Widget) getWidgets().get(203,2); return clueTaskAnagram.getMessage(); }
  5. I did but wasn't working however, I just deleted and recompiled the script and restarted the client and everything is working fine now! Thank you.
  6. So I made a simple script that cuts oaks at Draynor, walks to the bank and banks the logs. I'm trying to have the script chop Oak in my own defined area that only contains one Oak tree, the area I defined to chop Oak in also contains 2 normal tree's. My goal is to have the script chop Oak but if the Oak is chopped down as a secondary task it will chop down the tree's within the area until the oak respawns. Currently using the following code that does not work as I'm sure the order is completely wrong: private void chop() throws InterruptedException { RS2Object Oak = getObjects().closest(choppingGround, "Oak"); RS2Object Tree = getObjects().closest(choppingGround, "Tree"); if (readyToCut() && Oak != null) { sleep(random(150, 3000)); Oak.interact("Chop Down"); log("Chopping oak."); sleep(random(650, 800)); getMouse().moveOutsideScreen(); } else if (readyToCut() && Oak == null && Tree != null) { sleep(random(150, 3000)); Tree.interact("Chop Down"); log("Chopping tree."); sleep(random(600, 800)); getMouse().moveOutsideScreen(); new ConditionalSleep(2300) { @Override public boolean condition() { return myPlayer().isAnimating(); } }.sleep(); } else if (!choppingGround.contains(myPlayer())) { log("walking back to tree's."); getWalking().webWalk(choppingGround); } }
  7. I understand hence why I made the post. By no means am I trying to steal from anyone's work but going through open source scripts and tutorials have helped me greatly to understand the structure and also learn how to use the API. The tutorial and snippet section has been very helpful but unfortunately, some of the threads are outdated with broken links or unfinished, some have .JAR files still attached however that could still be useful as they are referenced to the tutorials.
  8. Hey, Explv thanks for your reply, and thank you even more for your tutorials and snippets as well as the open source docs you've posted on OSBOT. As someone trying to learn it has helped me greatly to understand the structure and layout of basic scripts as well as more complicated tasks.
  9. Learning OOP and have been making some basic scripts. Currently still learning a lot from looking at others scripters code in tutorials etc. Wondering if it is possible/allowed to decompile .jar files to access the code to learn from?
  10. Could you Auth me with V2 just bought V1, Thanks
  11. Recently got perm banned using 1600+ total account be careful using for extended amounts of time.
  12. Magic Longbows dont work for me doesn't find them in inventory
  13. Could you add support, please? Would be easy as volcanic ash is stackable just requires to power mine it and switch between empty and full deposits + drop the soda ash by-product.
  14. Czar can you please add volcanic ash support!
  15. Vorkath support or plugin anytime soon? Would pay good money for one!
×
×
  • Create New...