Jump to content

Khaleesi

$250.00 Donor
  • Posts

    27478
  • Joined

  • Last visited

  • Days Won

    222
  • Feedback

    100%

Everything posted by Khaleesi

  1. Critisim, learn to deal with it if you ask to fix your code
  2. 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
  3. 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
  4. It's great, but can't expect to master it after a few hours of playing around
  5. Enjoy your trial
  6. 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
  7. Make it a public static void and then you can call it from your other class with MainClass.status("test")
  8. 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
  9. Enjoy!
  10. 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?
  11. 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));
  12. I believe the walking code is a event and no other code of yours gets executed until it's done. If you print out some logs you can see that What you can do is create your own walkingevent: (Rough guess) WalkingEvent event = new WalkingEvent(); event.setPath(areasAndPaths.pathToDestination); event.setHighBreakPriority(true); event.setBreakCondition(new Condition() { @Override public boolean evaluate() { return atDestination() || nearbyThreat(); } });
  13. Enjoy!
  14. All good!
  15. Sure just hit me up on discord ^^
  16. You already have an expired trial on this script Enjoy! Enjoy!
  17. Enjoy!
  18. Somethimes restarting the client can fix a lot of these weird things
  19. Very strange can you send me a screenshot where u start it and what settings you are using?
  20. Enjoy!
  21. Enjoy! You already have an expired agility trial
  22. You already have an expired trial on this script
×
×
  • Create New...