November 19, 20178 yr Hello there, new guy here I searched the forum and unless I missed it I can't figure out how to(if its even possible) run just a plugin when starting the bot ie i hit the play i want it to just load my plugin only and do nothing else or if I could load a plugin + just a grinder profile with no fightclass that would be ok as well, also is there an api to draws like DrawLine, Drawcircle etc?
November 19, 20178 yr Hello Icesythe7, I believe you can just leave the fight class combo box empty if you do not wish to use any fight class. If you want to draw circles, lines, and or text, you want to use wManager.Wow.Helpers.Radar3D. Have a look at my plugin, WRadar.
November 19, 20178 yr Author Thanks for the reply I have since figured out the settings however if you could give me an explanation of how the drawing event works that would be super(cant check ur file as i am a trial user i just use the 15 min trial on vanilla currently)
November 19, 20178 yr If you are wanting to use Radar3D for a plugin, you will need to include the Plugin interface... using robotManager.Helpful; using System; using wManager.Plugin; using wManager.Wow.Helpers; public class Radar3DExample : IPlugin { private bool _isLaunched; public void Initialize() { _isLaunched = true; Radar3D.Pulse(); Radar3D.OnDrawEvent += Radar3DOnDrawEvent; Logging.Write("Started"); } public void Dispose() { try { Radar3D.OnDrawEvent -= Radar3DOnDrawEvent; } catch { } _isLaunched = false; Logging.Write("Stopped"); } public void Settings() { throw new NotImplementedException(); } private void Radar3DOnDrawEvent() { // Will make sure player is in game and connected, alive and the product is not paused if (_isLaunched && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { try { /* DrawCircle center => Center of the object radius => the size of the circle color => color of the circle (Using struct System.Drawing.Color ARGB - Alpha, Red, Green, Blue) alpha => 0 = transparent | 255 100% opaque Radar3D.DrawCircle(Vector3 center, float radius, Color color, bool filled = false, alpha = 255) DrawLine from => where to start the line from to => where to draw the line to color => color of the circle (Using struct System.Drawing.Color ARGB - Alpha, Red, Green, Blue) alpha => 0 = transparent | 255 100% opaque Radar3D.DrawLine(Vector3 from, Vector3 to, Color color, alpha = 255) */ } catch (Exception e) { Logging.WriteError("Radar3DOnDrawEvent() Error: " + Environment.NewLine + e); return; } } } }
November 19, 20178 yr Author Does this get called continuously or just 1 time? What i have worked with in the past when drawing it will draw the item once per frame so you would draw in a while loop, if this does just draw and then stay forever how can i remove it?
November 19, 20178 yr You will want to test if the object or unit you are drawing to is valid, alive, within a specific range, etc. It will draw it on on screen as long your requirements are met. Sorry - I should say, that is the object, or player, NPC is alive, valid, exists - and IF your conditionals are met (ie: within close distance, is an herb, or mineral vein) it will continuously draw as long as it is within the game's max view distance.
November 19, 20178 yr Author Why when i call radar3d pulse does it draw a bunch of stuff i didnt tell it too?
November 19, 20178 yr Author no its not, do u have discord by chance so we dont have to do this here?
November 19, 20178 yr 1 minute ago, Icesythe7 said: no its not, do u have discord by chance so we dont have to do this here? I don't unfortunately, and it's getting late here.
November 19, 20178 yr Author 1 minute ago, Apexx said: I don't unfortunately, and it's getting late here. Ok well its like its turning radar3d in map on when i call pulse is what is seems like
November 19, 20178 yr Correct, it's using the Radar3D. If it's drawing to multiple things without you coding it in, check the settings Other, there's an arrow to pull up another menu with many other items to draw. Maybe see if they are on?
November 19, 20178 yr Author 5 minutes ago, Apexx said: Correct, it's using the Radar3D. If it's drawing to multiple things without you coding it in, check the settings Other, there's an arrow to pull up another menu with many other items to draw. Maybe see if they are on? it still draws a random blue circle but its working now xd https://i.gyazo.com/e0e5b485a0e5c921e47bfae196310753.mp4
November 19, 20178 yr That is strange, usually the blue circle around player is only shown if it's enabled through Radar3D other settings menu at the top.
November 19, 20178 yr Author ok so heres whats happening calling pulse turns radar3d on in maps(even tho the switch is off) and the only way to turn it off is to turn it on and back off, if i draw something myself it only will draw if radar 3d is on if i turn it on and bacj off while my plugin is running my draws disappear
Create an account or sign in to comment