Khaleesi
Script Officer
-
Joined
-
Last visited
-
Currently
Viewing Forums Index
Everything posted by Khaleesi
-
Khal Utilities
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
- ๐ฅ KHAL SCRIPTS TRIALS ๐ฅ HIGHEST QUALITY ๐ฅ BEST REVIEWS ๐ฅ LOWEST BANRATES ๐ฅ TRIALS AVAILABLE ๐ฅ DISCORD SUPPORT ๐ฅ ALMOST EVERY SKILL ๐ฅ CUSTOM BREAKMANAGER ๐ฅ DEDICATED SUPPORT
-
Khal Tutorial Island
Enjoy! Make sure to read the tips and tricks on the first post
-
Calling methods from another class
This made me laugh Ofcourse man! Enjoy
-
Calling methods from another class
Critisim, learn to deal with it if you ask to fix your code
-
Khal AIO Thieving
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
-
Calling methods from another class
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
-
Calling methods from another class
It's great, but can't expect to master it after a few hours of playing around
-
Khal AIO Crafter
Enjoy your trial
-
Calling methods from another class
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
-
Calling methods from another class
Make it a public static void and then you can call it from your other class with MainClass.status("test")
-
Calling methods from another class
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
- Khal Tithe Farm
- ๐ฅ KHAL SCRIPTS TRIALS ๐ฅ HIGHEST QUALITY ๐ฅ BEST REVIEWS ๐ฅ LOWEST BANRATES ๐ฅ TRIALS AVAILABLE ๐ฅ DISCORD SUPPORT ๐ฅ ALMOST EVERY SKILL ๐ฅ CUSTOM BREAKMANAGER ๐ฅ DEDICATED SUPPORT
-
Khal Utilities
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?
-
Every once in a while my player will attack another npc while already under attack.. why?
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));
-
Breaking walkPath when there is a player nearby?
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(); } });
- Khal AIO RuneCrafter
- Khal Guardians Of The Rift
- ๐ฅ KHAL SCRIPTS TRIALS ๐ฅ HIGHEST QUALITY ๐ฅ BEST REVIEWS ๐ฅ LOWEST BANRATES ๐ฅ TRIALS AVAILABLE ๐ฅ DISCORD SUPPORT ๐ฅ ALMOST EVERY SKILL ๐ฅ CUSTOM BREAKMANAGER ๐ฅ DEDICATED SUPPORT
-
Mentor for Walkthrough
Sure just hit me up on discord ^^
-
Khal Guardians Of The Rift
You already have an expired trial on this script Enjoy! Enjoy!
- Khal AIO Agility
-
Khal Wintertodt
Somethimes restarting the client can fix a lot of these weird things
-
Khal AIO RuneCrafter
Very strange can you send me a screenshot where u start it and what settings you are using?