Jump to content

PlagueDoctor

Members
  • Posts

    197
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by PlagueDoctor

  1. K heres some threads. Hopefully one of them will answer your question. http://osbot.org/forum/topic/90148-simple-ge-api/ http://osbot.org/forum/topic/73580-ge-selection If these don't give you the info you need, look into widgets. Widgets are really useful if you need to tell the script to click something or type something in a certain area etc, or check if an area contains something. On the osbot client, log into a character and click settings - > options - > debug tab - > check widgets. Hover over your inventory for instance, it will show you the root and children of the area you are hovering. In my cannonball smithing script i used widgets to detect when my smithing had leveled up, so that i could tell it to start smithing again (because leveling up generally stops whatever you are doing). Heres the code, incase it helps you understand widgets a little better. RS2Widget smithingLevelWidget = getWidgets().get(233, 0); // defining the widget variable. if(smithingLevelWidget != null && smithingLevelWidget.isVisible() && smithingLevelWidget.getMessage().contains("Smithing")) return Action.SMELT; /* If the smithingLevelWidget is not equal to null, and is visible, and the widget contains the text "Smithing", do Action.Smelt (this is the case that interacts with the furnace and smelts the cannonballs). */ http://osbot.org/api/org/osbot/rs07/api/Widgets.html edit: @Saiyan copied me while i was writing this out, pls report. Ruined my dank response.
  2. Hmm, i personally don't know how to do this, i'll have a look through some threads and see if i can figure it out. Hopefully someone who can answer your question will post on this thread.
  3. http://osbot.org/forum/topic/108450-ge-help/ Heres a similar thread on the first page of Scripting Help, have a read. Also check for other threads first before you post. Hopefully one of the other threads can answer your question. edit - lul you posted on that thread already, anyways still check a few pages back, there might already be an answer, since i think thats probably a reasonably common question.
  4. Yeah its likely that is the issue, i do have several different methods of slowing it down in the script such as int timesBought = 0; if(getStore().getAmount("Death rune") >= 1) { // This is part of my shop code getStore().buy("Death rune", 10); timesBought++; } if(timesBought <= 8) { // This is just before hopping sleep(random(1000,3000)); } timesBought = 0; I'll try making the sleeps much larger to see what effect it has. I was kinda hoping someone would have some sort of miracle method to help me circumvent this haha. I mean the script does what i want it to, so im still happy, it would just be cool to improve the efficiency. EDIT: I've set it up so it's sleeping for 4-8 seconds if 'timesBought <= 8' (times bought is increased by one each time the script buys 10 of something, and is reset to 0 after a hop). This seems to have solved the problem more or less. Is there a better way to do this? Perhaps with less of a delay, but still circumventing the dcing issue? EDIT: Jokes problem still happening haha, less often tho with the long ass delays.
  5. Screenshot of logger - http://imgur.com/a/ib51x Code - http://pastebin.com/GAsVZDsB Script does what i wanted it to, but it occasionally starts dcing after a couple hops. This seriously lowers the profit per hour, so if anyone has any ideas on how to fix this, i would love to hear them. Thanks to anyone who takes a look, much appreciated. PS. I'm not running any other scripts at the same time, and it happens even when i'm not logged into my main on OSBuddy.
  6. GL with your learning! As TeamCape said, make sure you have the basics down before you try some super hard shit. Even if it feels kinda pointless to write a script that you're not going to use, its probably still worthwhile as it will help you have a good understanding of how to make things work.
  7. Thanks, apologies for posting in the wrong place originally. Hadn't slept yet at the time. Thanks for the tips, i recently read up on the java conventions, still transitioning from bad old habits. Also reading up on linear regression now. Found out the reason my script wasn't starting at all ( i was able to reproduce it later ). It was due to poor placement of variables, one of the time i was able to reproduce it was when i placed a RS2WIdget variable at the top of my code. This apparently causes OSBot to not want to execute the script. So , problem solved and the way to solve it is to properly place certain variables. This is the state of the script currently - hhttp://pastebin.com/Z8LWniQH - anymore tips from anyone is greatly welcomed.
  8. This may be more suited to be in 'Scripting Help', but i'm unsure whether or not this is a problem with my script or a problem with the client interacting with my script or.. whatever. I've recently finished writing a very basic draft of a shop buying script. I'm trying to test it out but its not starting at all and i'm getting nothing in the logger. I start my bot, press play, refresh, select my script and click start and nothing happens.. also nothing shows up in the logger past the acknowledgement that I've started my bot. All my other scripts work. I've read through the code heaps of times to see whether or not I've missed something obvious and important.. but i haven't had any luck so far. Here's the code, this is all it is at this point http://pastebin.com/jNHhm0Uh , perhaps someone with more experienced eyes than mine can see what the issue is :> I'm at a bit of a loss due to the lack of error messages or anything.. no idea whats going on. Thanks to anyone who decides to have a look. (I've only recently started writing code, hopefully its not too hard on the eyes.)
  9. erino
  10. This thread is hilarious
  11. my name a jeff
  12. helo i am litle oby from serbia can u pls odnate me many chippies so i can eat tonight?

  13. kek
  14. Yeah mouse click isn't great though, because when you're running out of herbs you might not have a full inventory, so it would click on nothing a bunch of times. Which could be okay, but isn't really perfect.
  15. So i'm making a herb cleaning script and i'm having trouble finding a method of cleaning each herb that doesn't either suck(clicks each herb too slowly), or occasionally mess up(click every herb and then do it again even though they're all clean). As you read this i am trying out different things to try and reach a desirable result. How would you do this? Can you inform me of a good way to do this?
  16. This is a godsend, couldn't figure out how to make a mouse trail.
  17. Added support for the use of any bank and added conditional sleeping.
  18. Will do, thanks for mentioning the conditional sleep stuff, looks as though it will be really useful. Might try implement in into this code as a learning experience.
  19. Thanks for the response, i'll look into what you mentioned. I created this script for my own use and decided to share in case others would find it useful.
  20. http://2007.runescape.wikia.com/wiki/Money_making_guide/Grinding_chocolate_bars $190-200k Profit Per/Hour ~ Script to execute the above method of money making. No skill requirements! Requirements: Have Knife in bank or inventory Have Chocolate bars in bank Be near a bank or GE Process: Withdraws a Knife and 27 Chocolate Bars. Turns all of the Chocolate bars into Chocolate Dust. Deposits all Chocolate Dust. If you have no Chocolate bars left, it logs out and stops script. Repeat. Extra Notes: You can only buy 10,000 Chocolate bars from the G.E every 4 hours. As with all scripts, if you don't want to get banned, script carefully or don't script at all. Download: Google Drive Link https://drive.google.com/file/d/0B68yui8zn4TPVXAyNHBtbzBKdWM/view?usp=sharing EDITS: 9/28/2016 - Added conditional sleeping, removed walk to bank function and added support for every bank. If you have any issues, post them here. Otherwise, enjoy!
×
×
  • Create New...