Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold


  • Content Count

  • Joined

  • Last visited

  • Feedback


Everything posted by hobfmule

  1. @ButtaThe currently used theme is "Dashboard (Default)". The only other option is "Default". Will switching to that theme solve the problem?
  2. I had to log in via the password reset process because I'm being required to enter a non-existent authentication code. I never opted for 2FA. Any thoughts on how to make this problem go away?
  3. I want a server's message to reset a static Timer in a class with a bunch of static methods. I made the class implement MessageListening07 and then made this code in a static block: public class Navigation implements MessageListening07 { { MessageListener.addListener(this); } When the server notifies me that I can't use home or minigame teleports, I want the respective timers to reset. However, the overridden method serverMessageReceived is never called. Anybody have a solution for implementing message listening in a non-instanced class with static methods?
  4. Simply amazing. Thank you for this. I actually came here to ask this same question, custom username support would be a great feature. Even with no UI.
  5. if(ChooseOption.isOpen()) { ChooseOption.select(new Filter<RSMenuNode>() { @Override public boolean accept(RSMenuNode rsMenuNode) { return rsMenuNode.containsAction("Make All"); } }); }
  6. It is always preferred to sleep dynamically rather than using fixed sleeps. If you sleep too long, your script loses efficiency; sleep too little and your script attempts to complete the action again before it had time to fully do so initially. If this is giving you problems it's probably because you're checking if your inventory has bars and then withdrawing 0 (why?). The boolean you return in your overridden active() method looks like the same condition that hasBars() outputs. If that is the case, the entire dynamic sleep here is redundant -- what you have here will sleep for 100-200ms because the condition is already met. This would make more sense: if(!hasBars()) { Banking.withdraw(27, BAR); Timing.waitCondition(new Condition() { @Override public boolean active() { General.sleep(100,200); return hasBars(); } }, General.random(1000,1500)); } boolean hasBars() { return Inventory.find(BAR).length > 0; }
  7. Is there some way for me to check if I am the sole person using a SOCKS5 proxy? Not 100% comfortable just taking the vendor's word for it
  8. I could be mistaken, but I checked for Game.getSetting() changes for before and after teleporting using Sigma's Setting Explorer. Found nothing
  9. I can't find a game setting for this, and the Interface (218,1) doesn't change regardless of when the spell was last used. I made a homeTeleport() method which returns a boolean, now I have no way to loop it until it is true without putting it inside its own timed while-loop. I want to avoid doing that, any ideas?
  10. How is that any different than using nested nodes? public class RebuildManager { public static ArrayList<Node> nodes = new ArrayList<>(); public RebuildManager(){ Collections.addAll(nodes, new TutorialIslandManager(), new MagicTrainerManager(), new FishingTrainerManager()); } public void loop() { for(final Node node : nodes) { if(node.validate()) { node.execute(); //sleep for some amount break; } else { nodes.remove(node); } } } public boolean completed() { return nodes.size() == 0; } } ArrayLists are iterated sequentially, only one "task" node is focused on at a time, and old "tasks" are thrown out. In my main Script class I only have to make an instance of RebuildManager and loop it until it loses all of its nodes. etc.
  11. Why is public static ArrayList<Node> nodes = new ArrayList<>(); static?
  12. Sequential nodes: I am working on a rebuild class for when accounts are banned, obviously this is like one big quest script. Each task is sequential: Tutorial island, train skill 1, train skill 2, quest 1, quest 2, etc. When an account is first made, all task nodes' validate() methods would return true, since none of the tasks have been completed yet. To prevent switching tasks prematurely, should the for-loop be modified? What is the best way to accomplish this? I was thinking: for(final Node node : nodes) { if(node.validate()) { node.execute(); //sleep for some amount break; } else { nodes.remove(node); } } Is there a better way? Sorry for being a total noob at node framework and tasking.
  13. Whenever I see someone's code snippet inside their forum post, it appears on one line. Makes it difficult to read the code. How do I change this so their snippet appears on multiple lines? By the way I'm using Chrome. Tried loading the same pages on Firefox and got the one-lined same result.
  14. Restarting my computer fixed the problem. I hadn't restarted it since I purchased VIP extended. Thanks
  15. The script just isn't showing up. package scripts; import org.tribot.script.Script; import org.tribot.script.ScriptManifest; @ScriptManifest(authors = {"hobfmule"}, name = "Test", category = "Test") public class Test extends Script { @Override public void run() { System.out.println("Hello World"); } } As you can see, there is no "Test" category. The script is set to compile to the correct directory. I have tried reinstalling Tribot and recompiling the script. Any help would be appreciated.
  16. I am writing a program with a central while-loop. The loop has if-statements that call methods. I am caught between 2 situations: 1) My methods contain while loops 2) Create a boolean for each method so the main loop runs the method until the boolean is satisfied Problem with 1): Methods gain full control - while the method is in control, the main loop can't make other checks such as run toggling Problems with 2): There are a very large amount of booleans. Complex methods must be broken up into simple tasks, creating more methods
  17. All 4 bankers in the GE are missing from the Constants.IDs.NPCs.banker array. private boolean allBankersListed() { //Grand Exchange Bankers int bankersListed = 0; if (NPCs.findNearest("Banker").length > 0) { RSNPC[] nearestBankers = NPCs.findNearest("Banker"); for (int bankerID : Constants.IDs.NPCs.banker) { for (RSNPC nearestBanker : nearestBankers) { if(nearestBanker.getID() == bankerID) bankersListed++; } System.out.println("Bankers Nearby: "+ nearestBankers.length); System.out.println("Bankers listed: "+ bankersListed); return bankersListed == nearestBankers.length; } } return false; }This method returns false and produces the ouput: Bankers Nearby: 4Bankers listed: 0 The GE was released a year ago... Any other classes people consider out-of-date and should be avoided? Thx
  18. That entire guide looks like a commercial for the website he keeps promoting
  • Create New...