my whole bot crashes when getting messages is there a way to get the last message only so not the whole array im using this.
else if(api.chatbox.contains(MessageType.ALL, "Welcome to runescape."))
and then i get nulled when someone types a message or when i typ somthing
how do i call it from the main class it wont let me do it... getting NUlled or error
i did
Inventory inventory = new Inventory();
or
Inventory inventory = new Inventory(null);
Thank you il try that its so weird you cant like call methode from that class objects are working for me now but i want to make classes im using public voids now in main class....
man im really stuck here im trying my best to understand it just wont work just getting nulled... and im trying to code in objectoriented and in classes ...
if i put everything in main class it works fine.... but then its not objectoriented...
i have no clue how this works....
Inv invent = new Inv();
Inv.this.exchangeContext(bot);
invent.compareItems();
banked = invent.getWillowsCut();
private MethodProvider api;
public void onStart() {
api = new Inv();
api.exchangeContext(getBot());
}
did it in my class still null class called Inv en main class called main