Everything posted by Psvxe
-
Sort HashMap keys based on highest value first
The problem is that I need to get the keys with the lowest or highest value. The key alone is useless. ;p
-
Sort HashMap keys based on highest value first
May I PM you with more details?
-
Sort HashMap keys based on highest value first
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)
-
Find projectiles
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)
-
NodeFragment and NodeLinking Systems
what you on about?
-
NodeFragment and NodeLinking Systems
@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?
-
NodeFragment and NodeLinking Systems
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(); } }
-
NodeFragment and NodeLinking Systems
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: ????
-
NodeFragment and NodeLinking Systems
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?
-
NodeFragment and NodeLinking Systems
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.
-
NodeFragment and NodeLinking Systems
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.
-
Find projectiles
Want to make it free for vips / donors Yeah. Kind of frustrating haha
-
Find projectiles
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.
-
Find projectiles
I'd check the API but I couldn't find anything. Perhaps it has a different name or I just didn't see it.
-
NodeFragment and NodeLinking Systems
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.
-
Find projectiles
Is it possible to find projectiles which are flowing trough the air?
-
@Dutch crew, going on a city[trip] to Maastricht tomorow
Well I'm from The Netherlands. However I got a party tomorrow
-
What laptop to buy
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!
- What laptop to buy
-
What laptop to buy
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.
-
What laptop to buy
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
-
Perfect Magic AIO
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.
-
2.3.75 < Cannot Connect
Same issue. EDIT: fixed
- [70 range] [54 magic] Range pure
-
Click Analysis by Ares
Work with the devs and make a heatmap so scripters in general could make use of it