Everything posted by Token
- Stealth Quester
-
Invoke GUI Checkbox in main class
public interface Observer { public void update(); } public interface Observable { public void registerObserver(Observer observer); public void sendUpdate(); } @ScriptManifest(name = "LeScript", author = "Token", version = 2.0, info = "", logo = "") public class Main extends Script implements Observer { UI ui; boolean checkBoxValue; @ Override public void update() { checkBoxValue = ui.getCheckBoxValue(); } @ Override public void onStart() { ui = new UI(); } @ Override public int onLoop() throws InterruptedException { return 69; } } @SuppressWarnings("serial") public class UI extends JFrame implements Observable { ArrayList<Observer> observers = new ArrayList<Observer>(); @ Override public void registerObserver(Observer observer) { observers.add(observer); } @ Override public void sendUpdate() { observers.forEach(o -> o.update()); } JCheckBox checkBox; JPanel contentPane; public boolean getCheckBoxValue() { return checkBox.isSelected(); } UI() { setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setTitle("LeTitle"); setResizable(false); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); setBounds(100, 100, 582, 401); contentPane.setLayout(null); checkBox = new JCheckBox("Checkbox"); checkBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { sendUpdate(); } }); checkBox.setBounds(181, 52, 97, 23); contentPane.add(checkBox); setVisible(true); } } That's an implementation of the Observer pattern which is used whenever it comes to programming user interfaces, also internally by the swing/awt/javafx libraries and pretty much any other library You can test it like this public static void main(String[] args) { UI ui = new UI(); Observer obs = new Observer() { @ Override public void update() { System.out.println("updated"); } }; ui.registerObserver(obs); } PS: put each class in a separate module
-
How to buy/sell items on the Grand Exchange
It clicks the collect button that appears on the top right corner of the main ge window
-
How to buy/sell items on the Grand Exchange
Men :tears: You gravedigging 1 year old before I even became a scripter Memories :tears: :tears: :tears:
- Stealth Quester
-
How to get "Virgin" Proxy's
99% of all proxies on the market have been sold in the last years to runescape goldfarmers so all of them are recycled. You can see how many times a proxy has run into jagex by trying to create an account, the more difficult the captcha is to complete, the more used is the proxy. On my private home addresses in a country where no one plays runescape and the IP has never been sold on the internet I don't even have to go through the captcha because jagex has never encountered my IPs. If you are asked to complete a captcha then you know the proxy has been resold at least once to another runescape goldfarmer.
- Stealth Quester
-
Pop the champagne
Midnight for me You got 2 more hours to wait
-
Pop the champagne
- Stealth Quester
Authed Waterfall Quest may need some adjustments but yes it should work. If it happens to die it should bank and go try again. If you also run Witch's House before for the hp levels the bot shouldn't die at all. No but there is already some code for the gnome quests- Stealth Quester
Thanks for the report, I'll take a look at it in a bit- Stealth Quester
There have been tons of bug reports on that in the client bugs & suggestions section, such as http://osbot.org/forum/topic/103318-draynor-underwall-tunnel-req-diary/ It's unfortunately some broken links in the webwalker that can't be fixed at script level, however it only happens on accounts with high agility levels and we are awaiting a fix from the devs- Stealth Quester
Authed Feel free to ask any questions- Woodcutting vs fishing
My answer is don't goldfarm manually because they will ban you for botting- Woodcutting vs fishing
I wouldn't risk doing them manually, they ban anyone who owns an axe or pickaxe- Zulrah Scripts
- Zulrah Scripts
Awww I would never leave, you would have to ban me- Zulrah Scripts
There was 1 more person who wanted to write a zulrah script tho Unfortunately his request was denied- Stealth Quester
You probably don't have access to Morytania if you did Priest in Peril manually, the script automatically talks to Drezel after quest for that- Stealth Quester
- java.security.AccessControlException: access denied ("java.awt.AWTPermission" "createRobot")
Mouse data is not sent to jagex, it's legacy code. Can't you just generate mouse movements using the associated ClientMouseEventHandler instance?- java.security.AccessControlException: access denied ("java.awt.AWTPermission" "createRobot")
You can't- Stealth Quester
No but that's what I'm working on for version 2.0- Should i move to City?
I know how it feels, deciding where to move. You just have to figure out where you would have a better life. I personally take into account 2 very important factors: internet speed and electricity reliability PS: this topic doesn't belong in the market section- Stealth Quester
Authed Refresh your script selector, it's already there - Stealth Quester