Jump to content

liverare

Scripter II
  • Posts

    1300
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by liverare

  1. I won't spoon feed you the answer, but your logic should be structured similarly to this: IF inventory does not contain lobster pot --IF bank is open ----IF bank contains lobster pot ------DO withdraw one lobster pot ----ELSE ------DO stop script --ELSE IF in bank ----DO open bank ELSE DO some fishing
  2. Yeah I've heard that a lot. I did have it as "Live Rare", but some usernames wouldn't accept spaces, and then I just got into the habit of not having any spaces.
  3. It would be more beneficial for you to know how to hard code GUIs before reading this. I enjoy creating GUIs. It's challenging, because there's quite a bit to consider in order to get them just right! Friendly UX (User Experience) Either your users are dumb, or the way you've constructed your GUI is misleading and/or has contradictory decisions (e.g., 'power-mine' and 'bank' check boxes). Secure As mentioned above with the contradictory decisions: never allow them. Be strict and firm with the freedom's you're giving to your users, so they don't end up making mistakes. But also make sure the user cannot NOT make decisions, for instance, prevent the bot from working until your users have told your bot what it needs to know in order to work in the first place. Externalise GUIs included in the main script code will make the code look ugly and bulky, because GUI code is always ugly and bulky. Having your GUI code saved in a separate class (aka. code saved in a separate file) and loaded in will make your code look a hell of a lot better! OOP Following on from the previous point; there's various ways to have information sent from your GUI to your script, but the best (in my opinion) is to use OOP. Example: I have not focused on UI (User Interface), because this is just proof-of-concept. The box to the top is a list inside of a scroll pane (when list becomes bigger than box, scroll pane is used to allow scrolling). The text field underneath is where you type monster names and you can separate them with a comma. Notice the space between the 'add remove' buttons and the check box below? That's to hint that those buttons relate to the list above and not the stuff below. Notice the '25' up-down box (aka. spinner) to the bottom-right is disabled; that's because 'Run away when health falls below' is disabled. This is part of UX -- prevent options from being interacted if they're ultimately pointless to the user. Most importantly: the 'Submit' (aka. "start", "go", etc.) button is DISABLED until the list has names inside of it, otherwise what the hell is my bot going to do? ... The names I had entered were 'trimmed' to avoid spaces before the name (e.g., " GUARD"), and I have capitalised all the names so that case sensitivity is not a concern for the user, and the list cannot be populated with crazy-case names (e.g., "GuaRD"). It looks cleaner. I have enabled that spinner for the check box, because the check box is selected. The submit button is now enabled, because the bot actually has something to work with. However there are more UX features that are working behind the scene! You can select multiple items in that list and hit [backspace] or [delete] and they will be removed. When doing this, the next list item to be selected will be the one before the one you deleted, to make it easier to delete multiple items just by using your keyboard. When entering names into the text field, when you hit [enter] the names are added to the list. When adding names (either by [enter] or 'add'), the text field is cleared. You cannot enter the same name twice into the list; this removes unnecessary duplicates. Here's the code: SomeScript.java (Script) Look at the loop() method: the bot will not do anything until the user is finished with the GUI. Display.java (GUI) Instruction.java (Object) This object contains the cut-and-dry of the GUI based on the user's choices. Having the information from the GUI stored this way not only makes it easier to handle in our script, but also means we can use APIs such as JSonSimple to extend this object and make it possible to save the user's decisions locally, and then have the script load them at the user's behest. SubmitListener.java (Interface) In order for our Script to receive the user's instructions from the GUI we need some kind of method that allows for that communication. So what we do is we have this SubmitListener as a variable in the GUI, then we add some public getters/setters to allow the Script to set the SubmitListener inside of the GUI, then the 'submit' button in the GUI will then callback the script using this variable IF this variable has been set. With all this the Script can create the GUI, add the necessary interface to allow the GUI to callback to the script when the user's made their decision, then to dispose of the GUI when the script has stopped. To me, this makes the GUI feels more natural. This is just a rough draft; may improve thread later.
  4. liverare

    Win7 or Win10

    Yeah if you like being spied upon a shit bunch. I'm not putting anything passed Microsoft; they'll probably monitor every click, every type and every pixel. Do you really think they would give out a product for free without some kind of payout? Market research, data mining and just flat out spying. http://www.independent.co.uk/life-style/gadgets-and-tech/news/windows-10-spying-how-to-opt-out-of-microsofts-intrusive-terms-of-use-10432300.html http://bgr.com/2015/07/31/windows-10-upgrade-spying-how-to-opt-out/ Fuck Windows 10. You're a very, very good goy if you get it. :edit: Forgot to mention: http://www.alphr.com/microsoft/microsoft-windows-10/1001360/microsoft-can-disable-your-pirated-games-and-illegal-hardware It doesn't affect me, but I'm still very fucking annoyed.
  5. Work backwards + conditional sleeps: IF speaking WITH Guide --DO interact WITH Guide dialogue ELSE --IF DO interact WITH Guide ----DO conditional sleep UNTIL (IF speaking WITH Guide)
  6. WW3 is coming regardless whether or not Trump is elected. Hell, Hillary is a fucking psychopath and would probably be the reason for it: Bernie Sanders is a fucking cuck who got cucked when those Black Lives Matter dipshits stole his platform. There's no way in hell he'd make a good leader. Trump is rich; I doubt he can be swayed by lobbyists: He'll lobby, but he's too rich to be lobby'd. As for ISIS, sink your teeth into this. Don't just take shit at face value.
  7. Updated! Thanks for keeping me in the loop.
  8. It looks good. It gave me the idea to come up with a conceptual design for something similar to Windows 8 sidebar: I reckon it could be achieved in JavaFX and may not even be so CPU-expensive. :edit: I forgot to add 'add new bot' button; there could be an add button where the 'play' button is, and then have the 'play' and 'pause' buttons display depending on whether a script is running for the currently selected bot. The 'remove bot' button would appear in the selection box on the right-hand side. You could also have a 'condense' button located under the 'settings' button, which would hide the current bot list and small bot preview screen. This way you could minimise the entire thing into a small media playback widget.
  9. 547 USAIN BOLTER AND DARTER Test Testicles
  10. well...i didn't expect that nice lol
  11. Thank you for the notice! Sorry for the late reply. I've just updated it now.
  12. Thank you for notifying me. I've updated the data and should be working now.
  13. There's no known answer unless someone on this forum works for Jagex and knows the insides-and-out. Your best course of action, as stated by Rage Blend, would be to run your bot exclusively through a proxy. However I would take it a step further and suggest you create a new botting account on the proxy, to disassociate any kind of connection between the bot account and your main account. If you wish to step it up to the level of paranoid autism, be sure to bot and play differently, keep those accounts on separate worlds, talk and act different through the botted account (if ever used for more than botting) and go as far as reporting other bots on your main account to appear legit. But perhaps this is a step too far...or is it?
  14. Don't blame me, I voted Ukip!
  15. Google Chrome is not known for it's CPU-friendly approach. There's the main Google Chrome web application, but there should also be five background Google Chrome applications. I believe Google Chrome uses these extra processes to help with concurrency (I heard that somewhere). Either way check what CPU/memory usage is being used on those background applications and (maybe) post on a Google Chrome forum. You'll get a lot more help there.
  16. I support the medicinal use of marijuana for those who need it. I don't care if you smoke marijuana, just so long as it's on your own dime, in your own time and done privately. But what I take issue with are the stereotypical 24/7 stoner douches who abuse weed to no end, hiding behind the medicinal patients reasoning and damaging the image of the casual users by constantly being the faces associated with marijuana.
  17. For added convenience, perhaps make it so the user has to define the paths/areas before being able to get the data. You could make the defined name uppercase with underscores replacing spaces, as well as adding the public static final modifiers.
  18. "I am NOT promoting anyone to go and smoke weed..." "[M]e and my buddy have some sweet piece to smoke dabs, and bowls out of. We do this on a daily basis..." "Not only do we want to start our own YouTube channel based around comedy and pot..." Hardcore stoners (such as you and your mate) are degenerates.
  19. New custom keyboard! Mitchell (aka. Okabe) has found a way to sent messages in OSBot super quickly! You can now enable fast keyboard and not worry about having text spam on whatever application you have open.
  20. On the plus side, this has helped to prove there's a bug with the GE. Although I cannot understand how Jagex missed this one.
  21. A detector of some kind would be better than nothing, but you're only going to force Jagex's hand and have them spy on bots via sock-puppet accounts. Although that assumes your detected is something Jagex cannot simply overcome in the first place. Remember: RuneScape is Jagex's game. The data the client downloads is whatever Jagex allow; I imagine Jagex could easily just hide their presence server-side, aka. be 100% invisible.
  22. I can't, or rather I don't know how. I'll see if the devs know of any way.
  23. If you're using the custom keyboard, this is one of the problems associated with it. I do say before you enable it that you are required to focus solely on the bot's window, otherwise text will be entered on whichever window is focused (even Notepad lol).
×
×
  • Create New...