Avvi 98 Posted September 19, 2017 Share Posted September 19, 2017 (edited) I wasn't quite sure how to label this thread, but basically what I'm trying to solve is the scenario where mining nodes leave behind a node that is no longer open-able, but still return true from this: nodesNearMe = ObjectManager.GetObjectWoWGameObject().FindAll(p => p.GetDistance <= 50 && p.CanOpen && p.IsValid); This scenario is specific to Empyrium deposits. Somehow, WRobot is able to ignore these nodes when doing pulses for available nodes, and ignores them. One thing that a tester noticed (thanks @dragonmase!) was that turning off wRobot, and then turning WRobot back on after mining an Empyrium deposit, WRobot logs report the following: "error node is no longer around?" but ONLY if you restart WRobot. So, i'm guessing that it is keeping a list of nodes that it has collected. How can I make my nodesNearMe ignore nodes that leave behind the 'corpse'? Thanks! Edited September 19, 2017 by Avvi Link to comment https://wrobot.eu/forums/topic/7129-ignore-de-spawned-mining-nodes/ Share on other sites More sharing options...
Avvi 98 Posted September 19, 2017 Author Share Posted September 19, 2017 Thoughts anyone? Link to comment https://wrobot.eu/forums/topic/7129-ignore-de-spawned-mining-nodes/#findComment-32305 Share on other sites More sharing options...
Avvi 98 Posted September 20, 2017 Author Share Posted September 20, 2017 @Droidz is this something you can help on? Link to comment https://wrobot.eu/forums/topic/7129-ignore-de-spawned-mining-nodes/#findComment-32344 Share on other sites More sharing options...
Droidz 2738 Posted September 22, 2017 Share Posted September 22, 2017 Try code like: var nodesNearMe = ObjectManager.GetObjectWoWGameObject().FindAll(p => p.IsValid && p.GetDistance <= 50 && p.CanOpen).OrderBy(p => p.GetDistance).FirstOrDefault(); if (nodesNearMe != null && nodesNearMe.IsValid && wManager.wManagerSetting.IsBlackListed(nodesNearMe.Guid)) { wManager.wManagerSetting.RemoveBlackList(nodesNearMe.Guid); } Avvi 1 Link to comment https://wrobot.eu/forums/topic/7129-ignore-de-spawned-mining-nodes/#findComment-32442 Share on other sites More sharing options...
Avvi 98 Posted September 22, 2017 Author Share Posted September 22, 2017 I will try. Thank you Droidz! Link to comment https://wrobot.eu/forums/topic/7129-ignore-de-spawned-mining-nodes/#findComment-32448 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now