Categories

Byte's Wine Grabber for RSBot

I’m not supporting the script at this time. This is kept for those that are interested in taking the work I have done and improving on it.

Ok, so I also have a script for grabbing the Wine of Zamorak at the chaos temple north of Falador in Runescape.

Here is the script, currently v1.23.

It will not run with the current production RSBot, v2.52. Here is a link to the current beta, v2.53. You may also go to GitHub where Paris keeps the source, and you can compile the bot from that.

Either way you will have a beta version of the bot. I don’t add anything to the bot (that upstream hasn’t merged) so it is a safe copy, but if it really matters to you t ogt

Currently, the script will walk to the temple from Falador, wait for wines to appear and tele-grab them. It will also teleport to Falador and walk to the bank, and deposit the wines grabbed, get a number of law runes (building to hold 100 in inventory) so you don’t need to pack 1000’s of expensive law s with you, in the event you get killed by the monks.

If you’re holding an edible item (or a number of a single food) in inventory, the script will eat them as needed, and will expect that you have more of that item in the bank and will exit if you don’t. It will not pull more water runes from the bank, so if it runs out it will exit. The waters are needed to teleport to Falador, so this is a good way to limit the bot’s running time.

If you get attacked, the script will teleport out if your HP falls below 50%/the level you select in the GUI. It will eat available food until that point.

If you set the options in the GUI, the script will hop worlds (thanks to jtryba on PowerBot for the worldHop method!) and rest while walking back to the temple. It will also check for updates from here if you let it.
w

Share

55 comments to Byte’s Wine Grabber for RSBot

  • avatar 0x

    Hey dude What’s wrong with your wine grabber script..its not working now

  • avatar jaja

    hey, I know you also created “wine grabber”. And its really awesome. Its just that other people have faster bots than yours, so i waste like 300 laws and hardly gain anything. I love your bot I was just wondering if you could make the speed of the mouse clicking on the wine as soon as it comes faster?

    thx for everything.

  • avatar jajaja

    Hey, I have your wine grabber, unfortunately it’s not fast enough and everyone who comes before or after me keeps getting the wines and I loose a lost of laws, I love your bot, but is there a way where you might be able to make it grab faster?

    thanks,
    jaja

  • avatar PLease

    Bro, I love your wine grabber but now its getting slow, and everyone has insanley fast bots. Is there a way you can update it? You know.. make the wine grabbing faster, also on my noob charcter I died and lost 1k laws :( . Is there a way u can like if the monk attacks the character teles to fally? other than that your bots amazing and tysm!

    thx

  • I moved y’all’s replies to this post, since I didn’t have one before for the Wine grabber.

    No, I can’t make it faster. It’s using mWine’s grab method, as that appears to be “faster” than what I had.

    Please take into account that the bot is likely fighting itself (ie: another player is using BWG) and that you will not win every wine unless optimal conditions exist. The one I mainly concern myself with is network lag, and I search for the lowest ping value when hopping worlds.

    Set the GUI to hop worlds at 3 misses or less, and you will eventually find a good world to snatch wines from. Then set the misses value higher and let it go. The idea is to average more wines grabbed than laws missed, not to get them all.

    And just to reference the “Make it click the map” whines, no that cannot be done. It’s a limitation of the bot. And think about it, do you click the minimap to move 1 space? I didn’t think so. If it were possible, it’s a dead givaway of botlike activity.

  • avatar danny

    heyy,
    when i use ur bot ; it works the first round good,
    but rs is bugged or something after today’s update;
    see what happens ; when the bot make a round, and tele to fally, &nd then he goes back the zamorak are disseapered?
    and after 20 minutes they dont come back ; you got any solutions, or know what happens?

    greetz

  • avatar Greg

    Dude I love your bot just one problem. Whenever it logs out to lobby to switch worlds it only moves the mouse over the “Player Info” tab at the top of the page and doesn’t switch worlds. If i don’t manually click on the worlds tab it will stop the bot. Do you know if its just me or if its the script?

  • avatar Botter

    It’s pretty good. However the world hopper gets stuck in the lobby, hovering over the first tab, and not clicking the world select tab. It’s not your part of the bot, but perhaps you can improve the world hopper :)

  • avatar mageguy190

    Hey, I use your bot and it only has 2 problems. 1: It’s too slow. 2. It stops after banking and says NullPointerException… Please fix/update, if you have a fix please hit me up on RS- – MageGuy190. Thanks

  • Ummm…no I can’t make it faster, obviously you haven’t bothered to read the forum thread OR the comments here or you’d have known the answer.

    Also, congratulations, thanks to you, I’m dropping this bot. If you’re lucky I WON’T post your email and stuff on RS/Powerbot when I yank the script.

    Lesson: READ before you whine. Thanks.

  • avatar mageguy190

    *cough* Is that why it now says failed to start up? Nobody likes a quitter btw…

  • No, I was slightly pissed because people just can’t frigging read.

    The problem with the script is a problem with the new security introduced in the bot. I explained this in the forum post.

  • avatar mageguy190

    oh, sorry for getting pissy at you, I didn’t see that in the forums… All I saw was people like me complaining :P so it’s unfixable:| kinda depressing

  • avatar mageguy190

    disregard my last comment…I repeat- DISREGARD.

    I just saw that you updated it and now the world hopper works! Thanks a bunch man!

  • It’s all good. This one was relatively easy to get running under the new Nazi security shit. But my cow killer will apparently need a new GUI, it’s all fucked up. And I lost the GUI source, so I’ll have to re-make it

    Oh well, I needed a reason to hack tonight, I guess ;-)
    ————————
    Hmmmmm….the lastest round of stuff on the git repo seems to have fixed the errors with the Cow Killer’s GUI. So, it should work with 2.42, when it comes out. This should work with 2.42 as well.

  • avatar b

    It’s not here anymore, where is it??

  • avatar b

    Nevermind I found it on the powerbot website, but there is a bit of a problem, sometimes when bones are on the floor the script picks them up, and after a while they start to accumulate taking away space in my inventory for additional wines…

  • That’s something I need to work on, though when I dump the whole randomized waitSpot thing, it may get a bit better.

  • avatar mageguy190

    :( it’s happening again– the nullpointer exception. Now it doesn’t even go to the wine, it automatically runs to the bank and attempts to deposit my non-existent wines, then crashes…

  • I need the log information so I can troubleshoot this problem, as it has never happened here, to my knowledge. Without it, I’d be here for the next 5 years trying to figure out what happened.

  • avatar lazboi420

    Your script worked awesome until I updated to 2.42. Now when I go to compile the script I get the following errors.

    Looking for JDK
    Compiling scripts
    ScriptsSourcesBytesWineGrabber.java:74: cannot find symbol
    symbol : class GlobalConfiguration
    location: package org.rsbot.util
    import org.rsbot.util.GlobalConfiguration;
    ^
    ScriptsSourcesBytesWineGrabber.java:92: package GlobalConfiguration does not e
    xist
    GlobalConfiguration.Paths.getScriptCacheDirectory()), “W
    GGEPrices.txt”);
    ^
    ScriptsSourcesBytesWineGrabber.java:748: package GlobalConfiguration does not
    exist
    String localJavaName = GlobalConfiguration.Paths
    ^
    ScriptsSourcesBytesWineGrabber.java:750: package GlobalConfiguration does not
    exist
    String localJarName = GlobalConfiguration.Paths
    ^
    4 errors
    Press any key to continue . . .

    Just thought you would like to know, keep up the good work man!

  • avatar mageguy190

    Looking for JDK
    Compiling scripts
    ScriptsSourcesBytesWineGrabber.java:74: cannot find symbol
    symbol : class GlobalConfiguration
    location: package org.rsbot.util
    import org.rsbot.util.GlobalConfiguration;
    ^
    ScriptsSourcesBytesWineGrabber.java:92: package GlobalConfiguration does not e
    xist
    GlobalConfiguration.Paths.getScriptCacheDirectory()), “W
    GGEPrices.txt”);
    ^
    ScriptsSourcesBytesWineGrabber.java:748: package GlobalConfiguration does not
    exist
    String localJavaName = GlobalConfiguration.Paths
    ^
    ScriptsSourcesBytesWineGrabber.java:750: package GlobalConfiguration does not
    exist
    String localJarName = GlobalConfiguration.Paths
    ^
    4 errors
    Press any key to continue . . .

    –When compiling –

    and I cant check my logs for the nullpointerexception thing because of the latest update, and now the client is “out of date” so when it is back up to date I will test it out again and let you know the results. Thanks!

  • avatar mageguy190

    [WARNING] Tue May 17 18:30:10 EDT 2011: BytesWineGrabber: Uncaught exception from script: java.lang.NullPointerException
    at BytesWineGrabber.loop(BytesWineGrabber.java:472)
    at org.rsbot.script.Script.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    [INFO] Tue May 17 18:30:10 EDT 2011: BytesWineGrabber: Script stopped.

    there.

  • Now, that wasn’t so hard, was it? :p Are you running the current (1.18) version or was this an older one?

  • avatar mageguy190

    the current, I got this log today, copied from pastebin and compiled all today.

  • avatar b

    I ran into a major problem, first of all my health ran very low (about 10% left) and the script didn’t eat the food in my inventory nor teleport back to falador, so I had to stop the script or I would have died.
    But this situation shouldn’t happen in the first place if the script didn’t click on the monks so often, and the way I think this could be solved is for the script to right-click locations and then click on “walk here” while in the temple, instead of using the normal mouseclick. This way you won’t accidentally attack monks or pick up bones on the ground.
    An alternative solution might be to click on the location in the temple using only the minimap.

    There should also be an option to not eat food while being attacked, but rather teleport as soon as in combat, and then eat the food at the bank. My low levels will never be able to kill the monk so it’s just a waste to eat food while in combat and having to teleport anyway. If this is possible then the bot shouldn’t have to bring food with him to the temple to save inventory space for wine.

    If you are successful implementing all of this, you have a flawless script.

  • avatar mite

    I am also getting an error, the script stopped when this came up:

    BytesWineGrabber Uncaught exception from script: java.lang.IllegalArgumentException: count(-1)
    at org.rsbot.script.methods.Bank.withdraw(Unknown Source)
    at BytesWineGrabber.loop(BytesWineGrabber.java:454)
    at org.rsbot.script.Script.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    I am using the newest version of the script.

  • @MageGuy190: Fixed, or patched at least. You are running out of laws, because the NPE would only occur if there are no laws in the bank.

    @b: Mini-map cannot be used. The bot does the right-click, or at least it’s supposed to do so, when I tell it to move there using stuff provided by the bot. Finally, if you want to tele-out if attacked, use mWine.

    @Mite: Possibly out of food in the bank, I’ll have to look it over.

  • avatar mageguy190

    thanks man

  • avatar b

    I’m trying to fix the issue of the bots clicking on the monks, and I’m pretty sure the place to fix it is under: case WALK_TO_TILE:

    where it says:

    walking.walkTileOnScreen(waitSpot);

    if(walking.getDestination() != null && !zammyTempleArea.contains(walking.getDestination()))
    tiles.doAction(calc.getTileOnScreen(waitSpot), “here”);
    waitPlayerMoving();
    sleep(1000, 1200);
    antiBan();
    return 50;

    The problem I’m running into is that only sometimes the bot uses “walk here” but usually just uses the regular click, even if it means clicking on a monk when that spot should != null.

  • As I said before, using walking.walktTileOnScreen(waitSpot), the bot should use the right click. Since it’s unreliable, I tried to make it do it myself, which is equally unreliable.

    I’ve found the eating problem, and now I’ll just need to add in code to tele out if there’s no food, if eating.

    I may add an adjustable HP% slider to the gui.

  • I’ve added a slider for when to eat. Also added code to break out of the loop and tele out when HP at or less than 50%

  • avatar b

    ^ I thought the bot uses right click with this?:

    tiles.doAction(calc.getTileOnScreen(waitSpot), “here”);

  • It *should* but as you’ve probably noticed, it doesn’t always.

  • avatar rsbotter

    dear Mr. Byte

    you need to fix the world hop method because it is not working

  • Actually, the bot is the problem, and I’ve solved it, and hopefully my fix will get into 2.45 of the bot.

    If not, I may incorporate the problem method from the bot into the script so I can control it locally.

    Meanwhile, I’ve put 1.20 of my script up on the server, so if you allow the script to update you’ll have the latest version.

  • avatar rsbotter

    hey. ive downloaded the 1.20 script and its still not hopping

  • avatar rsbotter

    oh and if the fix doesnt go into the 2.45 bot can u post ur fix and how to do it on here?

  • avatar MageGuy190

    congrats on getting your bot into the new rsbot version :D

  • Oh cool!! It’s in the script repo! Thanks for the heads up.

  • avatar user1

    Wil you make a RSBuddy version?
    That’s the real botting-future
    I’m using your rsbot version now for a time and its great!

  • avatar NORTH KOREA

    Great bot dude, it’s terrific! I am loving it.

    ONE REMARK:

    Could you implement a ‘Profit’ segment in the paint?
    Just the overall gp made.. Would be nice and handy.

    Profit = [number of wines snatched]*[Price of 1 jug] – [number of laws used]*[Price of one law]

    (same person as user1) :)

  • avatar NORTH KOREA

    I saw in the beefybill thread that you were hesitating to take the step to RSBuddy. Now will you?

    I would, since I think that RSBuddy is more modern and safer. It’s also more user-friendly. I use both RSBot and RSBuddy, but only rsbot for your script when rsbuddy is down.

    Your script is better than any available zamwine-script on rsbuddy.

    Your scripts could run on both servers..

  • RSBuddy is nothing more than Jacmob’s fork of RSBot. Last time I looked, all that was new was the script distribution network, which RSbot now has. I also don’t do closed source, I don’t trust Arbiter, the list goes on, but basically, no I’m not doing RSBuddy, if for only the most practical reason that I’m up to my ears now with only 2 scripts for 1 bot.
    Please note that this blog is not a proper place for flames in the constant RSBot/RSBuddy debate.

    As far as adding profit, I can maybe do that, but adding more to the paint will slow down the grab, which is why I removed the stats from the paint. The first versions shows constitution etc. if they gained points. Removing them helped speed up the grabbing. People are grumbling now about how “slow” the script is, anything I add to make it even a nano-second slower will get bitched about.

  • avatar NORTH KOREA

    it runs really fast in ‘low cpu’ mode..

  • avatar Cody:)

    not to flatter you, but it should be said, you ARE the man:) your script is absolutely amazing. and ive read your threads to ensure that you havent already gotten this request. I skimmed lol forgive me if im wrong. My bot will not bank my wines. it does everything perfect, except whem it gets to the bank. it right clicks the booth and not the teller. and doesnt actually click anything because the cursor moves off the list and the list vanishes as it normally would. i certainly hope this is fixable, and if not i’ll still continue to use(; and i would like to apologize on the behalf of my fellow players who aggravate you in this thread. thanks in advance and i hope i was specific enough. thanks again.

  • This sounds like the banking issue the bot was having, I’m not sure if it’s been fixed or not. Try clearing your cache directory in your RSBot folder (in Windows, usually My Documents/RSBot/Cache) and let the bot re-download the ms.dat file.

    I’ve been trying to fix the problem with pinging worlds when hopping, so a bug may have crept in while I’ve been looking elsewhere ;-) If so I’ll nail it shortly. Thanks.

  • avatar lj

    Awesome script! Would be nice if you can add a feature to retrieve runes from bank exchange. Thanks for your hard work.

  • Not sure what you mean. It pulls laws and food (if you’re eating) from the bank now. It does not pull waters, and this is by design. You can load up on 5 or 500 water runes and limit how long the bot runs by how many water runes you have. Figure if you’re a higher level character 1 water is 20 wines, since you won’t be teleporting unless you have a full pack of wine.

    If you mean go to the GE and buy them…no. That’s beyond the scope of the script.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Improve the web with Nofollow Reciprocity.