Jump to content

dreameo

Scripter II
  • Posts

    410
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

Everything posted by dreameo

  1. it's still the same idea.... void thisIsDumb(){ if(Main.badDesign){ ... } } If u wanna share, just use get/set(multiple class). If u wanna make something public static, make sure it's immutable. If it's just within the same class.. public anything will do l0l btw-- I c what u mean, i don messed up. But uh yea, no point having static if it's within the same class and if not then^
  2. 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() ... }
  3. 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.
  4. The method should be kept static and the constructor private. ** class should be separate for ^
  5. The only issue with trying to do OOP is that, you have to maintain a single reference across multiple classes.
  6. 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
  7. 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.
  8. 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.")
  9. 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.
  10. It's an OSBot issue. Wait till it's fixed. Refrain from using the bot, thanks ;)
  11. You're never going to help anyone with so called "chart analysis" because it doesn't actually work.
  12. 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.
  13. 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
  14. According to Alek you want: chatbox.getMessages().get(0); If there is an error, then post the logs.
  15. dreameo

    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.
  16. dreameo

    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.
  17. lol randomly select an index from 'people' and 'location', remove the objects from the list, print out result, continue till empty, profit
  18. ..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
  19. 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).
×
×
  • Create New...