Everything posted by dreameo
-
Keeping track of a global variable
- Keeping track of a global variable
then you force methods to be static loop would look like this since you couldn't use any of your static methods inside onLoop(){ Main.cut() Main.bank() ... }- Keeping track of a global variable
global variables do exist lol. Seems like you're doing everything inside of a single class. You just need to init the variable within the class and any object or method can access it.- Basic bank evaluator
The method should be kept static and the constructor private. ** class should be separate for ^- Few General Questions
The only issue with trying to do OOP is that, you have to maintain a single reference across multiple classes.- Few General Questions
I think you should avoid all the state and task stuff. Start out simple and if you don't like it, explore more appropriate designs. if(canCut){ cut(); } lol, something like this would be in your onLoop... Think you get the idea- Threading paint before OnLoop
- Threading paint before OnLoop
There is nothing that is going to interfere with your GUI. The script hasn't started so if your GUI is open and a user is adjusting the area, the area on minimap will also adjust accordingly. After the script starts, the thread that draws is separate from the onLoop thread, there still isn't any interference.- reading text from chat box
contains method in Chatbox checks for MessegeType instances You want to use the message listener and then do a contains method that checks for sub strings equaling "has happened". You may encounter issues (depending on the method) with, exact phrases though. ("has happened" vs "has happened.")- RSBotStats - Script Stat Tracking API | Easily Track Your Script Stats!
You could probably modify the example to accept a map (exp:task, quantity:task...). Instead of having to modify the function each time. Including max, min, avg, and total would probably be good (on the properties) for your site. I might add this.- Dream GE Firemaker
It's an OSBot issue. Wait till it's fixed. Refrain from using the bot, thanks ;)- Dont know how to use it
lol, the api dead anyhow- I projected 2013-14 Crypto bubble on 2017-18
You're never going to help anyone with so called "chart analysis" because it doesn't actually work.- Dream GE Firemaker
is this the case for anyone?- Dream GE Firemaker
You're always gonna have bans lol. Just spread out your botting time. FM lvls come quick so, 1-3 hours max a day. I don't play, so figure out what works for you.- Dream GE Firemaker
Bruh it's free- last chatbox message
lol my bad, kinda rushed it but, you want this: getChatbox().getMessages(Chatbox.MessageType.ALL).get(0); change type of message if you don't want all. the only reason you're getting null is because of poor referencing- last chatbox message
According to Alek you want: chatbox.getMessages().get(0); If there is an error, then post the logs.- Coal bag
Not sure the size of configs but why do anything manual lol. Leave it to the b0t to figure ish out for you.- Coal bag
To see if there is a config, get a list of all configs when coal bad empty, then get another list when coal is full. See if there is any differences. Not sure how well this would work.- School Related > Arrays
lol randomly select an index from 'people' and 'location', remove the objects from the list, print out result, continue till empty, profit- Auto chat responder
..No you don't. Many basic chat bots can easily know the difference and that's not done by hard coding each and every type of phrase. From the first random chat bot I attempted: https://imgur.com/a/9mqP3- Auto chat responder
You can take into consideration time and also if you have already answered the persons question (-Is it just the two of you in an area, or multiple people and someone @ you. You could probably find a large list of generic responses to generic questions. Phrases wouldn't be exact so you have to match case with a certain percentage of accuracy. There's so many dam chat bots, you could maybe implement that into your bot, who knows (instead of above).- Dream GE Firemaker
Thanks- I got hacked for using a script
Dude just ignore everyone and do that below - Keeping track of a global variable