Jump to content

Psvxe

Members
  • Posts

    235
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Psvxe

  1. The problem is that I need to get the keys with the lowest or highest value. The key alone is useless. ;p
  2. So, I've tried many things. Like creating a PriorityQueue but that didn't work out well. Also a heard a few things about a TreeMap but how does that work? Stackoverflow didn't really make me understand the aspect. This is my HashMap HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();With those keys|value (All id's with corresponding value)
  3. True. But the mage and ranger can be off-screen and map while they attack. If the mager is stuck and the ranger is attacking it would think that mager is attacking since he's onscreen. (Or vice versa)
  4. @Override public void onStart() { manager = new NodeLinkerManager(this); try { manager.add(AttackHandler.class); manager.add(EatHandler.class); } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } manager.initCurrentSet(); } (tried both in the try catch block, and outside) public void initCurrentSet() { for(Node node : allNodes.values()) { if(node.validate()) { currentNodeSet = nodeSet.get(node); return; } } throw new IllegalStateException("No nodes can be processed"); }Do you have teamviewer or skype?
  5. Error, once again. haha [ERROR][Bot #1][06/30 11:11:11 PM]: Error in script executor! java.lang.NullPointerException at fts.linked.NodeLinkerManager.run(NodeLinkerManager.java:64) at nl.psvxe.scripts.fightcave.Manager.onLoop(Manager.java:37) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qh:114) at java.lang.Thread.run(Unknown Source) public void run() { for(Node node : currentNodeSet) { // <----- line of problem. if(node.validate()) { currentNodeSet = nodeSet.get(node.getClass()); node.execute(); } }
  6. I kept the imports from the old file and replaced all the other with the pastebin version. Compile error 1: Fix: Compile error 2: Fix: Compile error 3: Fix: ????
  7. Well, it's impossible to had it fully running. Doubt the guy implemented it right, lewl. The pastebin gives compile errors. At the moment I'm fixing them. Do you have way of talking outside the forums? Or could you enable your PM system?
  8. Still gives me a error. [ERROR][Bot #1][06/30 09:08:10 PM]: Error in script executor! java.lang.NullPointerException at fts.linked.NodeLinkerManager.run(NodeLinkerManager.java:49) at nl.psvxe.scripts.fightcave.Manager.onLoop(Manager.java:37) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qh:114) at java.lang.Thread.run(Unknown Source) Same codes, just did what you said.
  9. Thanks for your time answering, and as always, the incredible detailed posts. However, should I make a ArrayList to get all the current nodes? As you haven't defined AllNodes. EDIT: public void initCurrentSet() { for (Node node : NodeLinkerManager.allNodes.values()) { if (node.validate()) { NodeLinkerManager.currentNodeSet = NodeLinkerManager.nodeSet.get(node); break; } }EDIT2:I guess you ment the NodeLinkerManager, rather than the class Manager.
  10. Want to make it free for vips / donors Yeah. Kind of frustrating haha
  11. Working on a Fight Cave script. (Fire Cape) However those rangers can be off-screen & map. Since it isn't possible to figure out which hitsplash comes from which monster I want to use the projectiles from the ranger to determinate if it has to pray range. EDIT: Perhaps I can check by config settings.
  12. I'd check the API but I couldn't find anything. Perhaps it has a different name or I just didn't see it.
  13. Alright, I got the following NPE but I can't figure out what causes the script to throw it. Console output: [ERROR][Bot #1][06/30 01:00:40 PM]: Error in script executor! java.lang.NullPointerException at fts.linked.NodeLinkerManager.run(NodeLinkerManager.java:49) at nl.psvxe.scripts.fightcave.Manager.onLoop(Manager.java:36) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qh:114) at java.lang.Thread.run(Thread.java:745) NodeLinkerManager class: public void run() { for(Node node : currentNodeSet) { //<------------- Error line (49) if(node.validate()) { currentNodeSet = nodeSet.get(node.getClass()); node.execute(); } } }Manager class: @SuppressWarnings("unchecked") @Override public void onStart(){ manager = new NodeLinkerManager(this); try { manager.add(AttackHandler.class); manager.add(EatHandler.class); } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } } @Override public int onLoop() { manager.run(); //<------------ Error line (36) return random(100,200); }What could cause this? I'm out of ideas.
  14. Is it possible to find projectiles which are flowing trough the air?
  15. Well I'm from The Netherlands. However I got a party tomorrow
  16. Yeah however it's just runescape that I play. So that one from Amazon seems to better fit my needs. Still considering both of them. Thanks for all help!
  17. 500/600 dollar. Is that some good budget? I don't need to play any AAA games on it. Just rs and some school stuff.
  18. Today my laptop died.which brings to the next question; what kind of laptop would be good for me and isn't that expensive? Should have 4gb+ of ram and 250gb+ storage. I am a guy with no knowledge about hardware related shit. Price range: 500/600 dollars
  19. Do you have a trial for me? I want to get 99 magic (47 now). However I would love to test it out for a moment since the few problems I'd read.
×
×
  • Create New...