Jump to content

Khaleesi

$250.00 Donor
  • Posts

    26966
  • Joined

  • Last visited

  • Days Won

    214
  • Feedback

    100%

Everything posted by Khaleesi

  1. Make it a public static void and then you can call it from your other class with MainClass.status("test")
  2. 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
  3. 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?
  4. 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));
  5. 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(); } });
  6. Sure just hit me up on discord ^^
  7. You already have an expired trial on this script Enjoy! Enjoy!
  8. Somethimes restarting the client can fix a lot of these weird things
  9. Very strange can you send me a screenshot where u start it and what settings you are using?
  10. Enjoy! You already have an expired agility trial
  11. You already have an expired trial on this script
  12. hmm stramge, if you see tyhis again, please grab a screenshot so I can see where it is, script status, how the inventory looks and that kind of stuff Or ring of dueling to ferox, free health and run restore ^^
  13. Works just fine... You would be the first in 7 years to have this issue
  14. None of my scripts have muling or ge restocking atm Working on rewriting some parts so this dopesnt happen anymore
×
×
  • Create New...