September 11, 20178 yr I wish I could make it only show veins, or herbs etc. But the object setting shows everything. Is this possible and I'm just missing something? Edit- So I realize the "By name" function works, but I can't seem to make it work with multiple different types of veins etc.
September 12, 20178 yr Hello, I'll not add this feature but you can do that with plugin, you can request plugin for that here https://wrobot.eu/forums/forum/28-profiles-and-requests/
September 15, 20178 yr On 14/09/2017 at 5:58 PM, Apexx said: @Droidz Where would one reference Radar3D?
September 15, 20178 yr Interesting! Thanks @Droidz. I will check into those threads and see what I can learn.
September 17, 20178 yr I managed to get the lines and circles to draw to the screen, but now I am running into the problem of not being able to clear the lines and circles independently from one another if the player moves far enough away. So far they just stick to the screen and continue to pile up, blocking the view. Man, it would be nice if there was better documentation with this bot. // Ore public List<string> OreNames = new List<string> { "Copper Vein", "Tin Vein", "Silver Vein", "Ooze Covered Silver Vein", "Iron Vein", "Gold Vein", "Ooze Covered Gold Vein", "Mithril Deposit", "Ooze Covered Mithril Deposit", "Truesilver Deposit", "Ooze Covered Truesilver Deposit", "Dark Iron Vein", "Small Thorium Vein", "Ooze Covered Thorium Vein", "Rich Thorium Vein", "Ooze Covered Rich Thorium Vein", "Fel Iron Vein", "Nethercite Deposit", "Adamantite Vein", "Rich Adamantite Vein", "Khorium Vein", "Cobalt Deposit", "Rich Cobalt Deposit", "Saronite Deposit", "Rich Saronite Deposit", "Pure Saronite Deposit", "Titanium Deposit", "Obsidium Deposit", "Rich Obsidium Deposit", "Elementium Vein", "Rich Elementium Vein", "Pyrite Deposit", "Rich Pyrite Deposit", "Ghost Iron Deposit", "Rich Ghost Iron Deposit", "Kyparite Deposit", "Rich Kyparite Deposit", "Trillium Vein", "Rich Trillium Vein", "Blackrock Deposit", "Rich Blackrock Deposit", "True Iron Deposit", "Rich True Iron Deposit", "Leystone Deposit", "Leystone Seam", "Rich Leystone Deposit", "Felslate Deposit", "Felslate Seam", "Felslate Spike", "Rich Felslate Deposit", }; public void Initialize() { _isLaunched = true; while (_isLaunched && Products.IsStarted) { try { if (Conditions.ProductIsStartedNotInPause) { foreach (var o in ObjectManager.GetObjectWoWGameObject()) { try { if (o.IsValid && !string.IsNullOrEmpty(o.Name) && OreNames.Contains(o.Name) && o.GetDistance <= 100) { Radar3D.OnDrawEvent += () => { Radar3D.DrawLine(ObjectManager.Me.Position, o.Position, Color.AliceBlue, 75); Radar3D.DrawCircle(o.Position, 3.0f, Color.Gold, false, 75); }; } if(o.GetDistance > 100) { // I need to be able to remove the drawn line(s) and circle(s) } } catch { } } Radar3D.Pulse(); } } catch { } Thread.Sleep(300); } }
September 17, 20178 yr If you call "Radar3D.OnDrawEvent += () => ...", call this method (and all WRobot events) only one time. And use "Landmarks" like: // remove all landmarks by ID wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Remove("MyCircleId"); // Add landmarks wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Add(new MiniMapGenerator.LandmarkMiniMap(new Vector3(1, 2, 3), "MyCircleId", Color.Red)); wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Add(new MiniMapGenerator.LandmarkMiniMap(new Vector3(1, 2, 3), "MyCircleId", Color.Red)); or var skyfire = ObjectManager.GetWoWGameObjectByEntry(241630).FirstOrDefault(); var fires = ObjectManager.GetWoWGameObjectByEntry(243244); wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Remove("volatileflare"); foreach (var f in fires) { var g = new Vector3(f.Matrix.M41, f.Matrix.M42, f.Matrix.M43); // Good position Logging.Write(" FIRE: " + f.Name + " matrix=" + f.Matrix + " local=" + f.Position + " global=" + g + " dist=" + ObjectManager.Me.Position.DistanceTo(g) + " distZ=" + ObjectManager.Me.Position.DistanceZ(g)); wManager.Wow.Forms.UserControlMiniMap.LandmarksMiniMap.Add(g, "volatileflare", System.Drawing.Color.Chartreuse, 10, "", true); }
Create an account or sign in to comment