Everything posted by Butters
-
JavaFX and OSBot
Thanks. Maybe there's a post what Valkyr was doing and etc.?
-
Restless Ghost
Thanks for the post. But I've just redone the quest with a fresh account and all looks good. Kinda thought maybe Jagex updated the dialogues. Aereck options are: "I'm looking for a quest!", "Ok, let me help then." Urhney: "Father Aereck sent me to talk to you.", "He's got a ghost haunting his graveyard." The interface had these options and still selected something else?
-
JavaFX and OSBot
I'm trying to make a bot GUI with JavaFX instead of swing. Well you know, looks 10x sexier. Though I ran into a ton of problems. First things first, is it even possible to properly use JavaFX in OSbot instead of Swing without going through hell? I've called the GUI like this Application.launch(Test.class); Cause this doesn't even bother to work Test test = new Test(Script s); test.launch(Test.class); // Tried with null - the same // Getting cannot be launched more than once exception Any idea how to pass GUI parameters between the interface and the bot code? Or shouldn't I even bother and write everything in Swing?
-
Breaking questions?
Check if this is deselected
-
Automated Botting
Great stuff. Willing to share wthat's considered a real Antiban or will you keep this a secret? By the way, could you PM me the VPS client you're using?
-
Finding the object that you clicked
Thanks! Extremely useful. Just to clarify on this bit: if (mining_rock_positions.containsKey(p)) { mining_rock_positions.remove(p); e.consume(); } else if (!mining_rock_positions.containsKey(p)) { RS2Object rock = getObjects().get(p.getX(), p.getY()).get(0); if (rock != null) { mining_rock_positions.put(p, rock.getId()); e.consume(); } } You populate a HashMap of rock positions in the area where you are and then add/remove the rocks with ores in the list? Though this snippet is only for updating the rock map that the user manually clicked on, cause I believe mouseListener does not catch client "mouse clicks". Am I right?
-
Finding the object that you clicked
Thanks. Will make the code much cleaner. But what does the get(0) do? And back to the original question. The mouse class has a method getPosition(), but I'm pretty sure it returns the coordinates of your window. Any way to get a runescape map position from those mouse coordinates?
-
Finding the object that you clicked
Nah, that doesn't work or I don't know how to check that. The object that I've interacted with somehow is still visible and existing. The new no-ore rock is a new object with a different ID. So what I do is I store the objects' that I've interacted with position and then scan for rocks that contain no ore. If the rocks' with no ore position matches the the rocks' position that I'm interacting then I now that the rock was mined.
-
Finding the object that you clicked
I'm making a mining script and I'm storing the current rock that is mined, so that I could later check if it still contains ore (to stop animating and go to next rock). The problem is when I enable input and click on a random rock myself the script stops working after the rock has been mined. I want to determine on what rock (or on what location) I've clicked and do something accordingly.
-
Finding the object that you clicked
I'm having trouble finding what position on RS map did my mouse click. I've created my own MouseListener class and it catches the mouse click event perfectly. But how can I convert my mouse coordinates during the click to, lets say, a Position on RS map?
-
Getting itemID by name
@Explv Kudos to you. Extremely useful. Thanks
-
[FREE] Doric's Quest || Fully automated
Thanks, liking your scripts too. By the way, is this worth putting on SDN or not?
-
Is it possible to run a bat file from inside a script?
So, if I understood correctly, OSbot blocks the execute command Blocked permission: ("java.io.FilePermission" "<<ALL FILES>>" "execute") So there's no way to init a new Osbot client from within the script without having some outer program/listener?
-
Getting itemID by name
Thanks for the heads up. Didn't know about this one. But immediately I see a couple of concerns: 1) How do I know if the site will be available for a long time? 2) This is strange The current raw lobbie D is 377. The site gives me two ID's with the same revision number.
-
[FREE] Doric's Quest || Fully automated
Definatelly will Cheers, please inform me if everything went well
-
[FREE] Doric's Quest || Fully automated
Probably some random F2P quests in the short term. Though I think I didn't see a Dragon Slayer bot anywhere. So gonna do that maybe sometime later. Also thinking of making an AIO fighter and a miner - muler.
-
[FREE] Doric's Quest || Fully automated
Doric's Quest Download Link Hey, I'm in the proccess of making fully automated scripts and decided to share this one with you. Feel free to use it. I did this cause I didn't find a free Doric's quester that's fully automated (most scripts usually require to have the materials before the quest). Correct me if I'm wrong. Why to use this script * Gives you that lovely quest point * Great quest if you want to gain starting mining XP (1.3k) Features * Checks if you have the ores in your bank on start * Mines clay and copper at Rimmington mine * If your mining level is 15 or more, mines iron at Rimmington mine * If your mining level is less than 15, checks if you have the money to buy iron at GE * If you don't have the coins, mines clay to sell for coins * Sells clay and buys iron (or just buys the iron if you have the coins) * Checks the current prices via API * The script uses OSBot webwalking, so you can start it anywhere on the Runescape surface. If you don't have a pickaxe in your inventory/bank Doric will give you one at the start of the quest Known issues Setup If you find any bugs or have any suggestions feel free to post them on this thread or contact me.
- Getting itemID by name
-
Getting itemID by name
Thanks, but any idea how to load them? I need the ID for grand exchange (and probably would find more places where to apply them), as I don't have the items on me when I want to buy them. I'm using the OSBot GE API for the buying part, but it requires item ID's.
-
Getting itemID by name
I was wondering is there a way to failproof code by not hardcoding item(or any other) ID's? For example I know that I can get the ID if I have have the item in inventory or somewhere else Item item = inventory.getItem(new Filter<Item>() { @[member=Override] public boolean match(Item item) { return item.getName() == "SOME ITEM NAME"; } }); log(item.getId()); But what if I don't have the item in my inventory/region/etc?
-
Explv's Map
Why haven't I seen this earlier? Thanks for this
-
Widget tutorial request
Great, thanks for the info
-
Widget tutorial request
Thanks, fiddled around a little bit and got the ID's. This is just for information gathering right? Cause I don't believe that I'll be able to interact with a widget through the info of its' tooltip. Anyway thanks for the responses. But how about getting the widgets without hardcoding ID's?
-
Widget tutorial request
Sorry, if it's out there somewhere, but was unable to find one. Is there/or could someone write a decent tutorial on how to use widget debugger, use widgets in code etc. with examples? For example I want to make the bot to click on GE Box1. I can see that the Action for it is "View offer" when I hover my mouse on it, but using widget debugger I'm unable to find which widget it is, that has the action. Also, I've seen in multiple topics that using static widget ID's in code is like punching your grandma. As I understood you can use RS2Widget allWidget = getWidgets().singleFilter(getWidgets().getAll(), new ActionFilter("SOME ACTION HERE")); but isn't it extremely inefficient, cause as I understand it goes though all the widgets? And is it safe to filter by action alone? Thanks in advance
-
Simple GE API
Thanks for this, but maybe someone could help me out how to fix this error. I get a NumberFormatException in the setPrice() method. Well, basically I get it everyhere where Integer.parseInt() is used. For example this if (priceText() != null && priceText().getMessage() != null) says it's not null and then tries to execute the parseInt() and ends up with a error. Though when I log the getMessage() method it's empty. The error occurs when doing a buy or a sell offer. Any idea how to fix this properly?