Jump to content

Khaleesi

$250.00 Donor
  • Posts

    26986
  • Joined

  • Last visited

  • Days Won

    214
  • Feedback

    100%

Everything posted by Khaleesi

  1. I will take a look at that I believe that's a bug in the queuing system, I reported this to the devs, they were going to take a look at this
  2. Enjoy! Make sure to read the tips and tricks on the first post
  3. This made me laugh Ofcourse man! Enjoy
  4. Critisim, learn to deal with it if you ask to fix your code
  5. you can't choose yourself, it banks only the important items at this point it will drop the following ones: Banana, Strawberry, Cooking apple, Lime, Lemon, Redberries
  6. Nothing wrong with passing around the Methodprovider object. You can also extend the second class from MethodProvider and then exchange bot context, that way you can use log("") in your other class. public class SecondClass extends MethodProvider { public void execute(){ log("Test"); FirstClass.status = "Test"; } public static String status = ""; private SecondClass secondClass; public void onStart() { secondClass = new SecondClass(); secondClass.exchangeContext(getBot()); } public int onLoop() { secondClass.execute(); } public void onPaint(Graphics2D g) { g.drawString("Status: " + status ,10, 10); } Ofc mister know it all who can't write a "hello world" app in java using OOP Your ego is like the complete opposite from your coding skills at this point, how can you be this cocky while YOU are asking for help in the first place? Be gratefull anyone wants to help in the first place, but no... let's flame them right away. Good way to make friends
  7. It's great, but can't expect to master it after a few hours of playing around
  8. I don't think you understand what you are trying to do yourself at this point. You are trying to fix something thats completely misdesigned, it's like putting boat parts in a car and expecting it to work I also said to post some code, then you post 5 lines of code which could be anything in the world and you expect to get a proper answer -_-OOP I suggest you to learn java OOP properly to begin with
  9. Make it a public static void and then you can call it from your other class with MainClass.status("test")
  10. What I hear from this is that your design is not correct, scripts made in java just follow the general java conventions. Like when you are programming OOP, there should be 0 reason to call a method from the object to where you instanced the object. Without showing any code it;s kinda hard to see what you are trying to do. so enlighten us and we will see what I can do for you
  11. Thanks for the heads up, will check that out right now You can;t atm, just deposit your whole gear and equip a max charge one?
  12. Because you are loading the cloest cow with this code, that won't always be the cow you are fighting if another ones get into the same range as the one you are already fighting. NPC cow = main.getNpcs().closest(npc -> npc.getName().startsWith("cow") && npc.isAttackable()); What you can do is check if you are under attack by a cow, if so don't do anything, else attack a new one NPC npcAttackingMe = script.getNpcs().closest(npc -> npc.isInteracting(script.myPlayer()) && npc.hasAction("Attack") && npc.getHealthPercent() > 0 && script.getMap().canReach(npc));
×
×
  • Create New...