cgeorg13 2 Posted October 21, 2016 Share Posted October 21, 2016 Hello, I've been looking into writing my own plugin and have found that it is extremely hard if I can't test some of the functions I'm wanting to use (such as, ObjectManager.GetUnitAttackPlayer()). I've been looking into the development tool and saw the 'C# (ret value in wManager.DevelopmentTools.OutPutCSharp)' button but have no idea what that does or how to use it although I feel like this is what I'm looking for lol. So, officially my question is, how can I test return values of functions I want to use? Link to comment Share on other sites More sharing options...
Droidz 2737 Posted December 6, 2016 Share Posted December 6, 2016 Hello, you can test code return value in development tools like this: var o = wManager.Wow.ObjectManager.ObjectManager.GetUnitAttackPlayer(); if (o.Count > 0) { wManager.DevelopmentTools.OutPutCSharp = o[0].Name + " Distance: " + o[0].GetDistance.ToString(); } Link to comment Share on other sites More sharing options...
Droidz 2737 Posted December 6, 2016 Share Posted December 6, 2016 You can also write log like: robotManager.Helpful.Logging.Write("My test log"); Link to comment 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