tray 0 Posted February 22, 2017 Share Posted February 22, 2017 How use it in vanilla ? try use RunCode if (ObjectManager.Me.Position.DistanceTo2D(ObjectManager.GetWoWGameObjectByyId(20808).FirstOrDefault() <= 50 )){wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey,2500)} But it's closed with error If try use like he just stay all time on 1 place if (ObjectManager.GetWoWGameObjectByyId(20808).FirstOrDefault().GetDistance <= 50) { wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey,2500); }; Link to comment Share on other sites More sharing options...
Droidz 2722 Posted February 23, 2017 Share Posted February 23, 2017 Hello, Try if (ObjectManager.GetWoWGameObjectByyId(20808).Count > 0 && ObjectManager.GetWoWGameObjectByyId(20808).FirstOrDefault().GetDistance <= 50) { wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 2500); } or if (ObjectManager.GetWoWGameObjectByyId(20808).Count > 0 && ObjectManager.GetWoWGameObjectByyId(20808).FirstOrDefault().GetDistance2D <= 50) { wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 2500); } Link to comment Share on other sites More sharing options...
tray 0 Posted February 24, 2017 Author Share Posted February 24, 2017 14 hours ago, Droidz said: Hello, Try if (ObjectManager.GetWoWGameObjectByyId(20808).Count > 0 && ObjectManager.GetWoWGameObjectByyId(20808).FirstOrDefault().GetDistance <= 50) { wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 2500); } or if (ObjectManager.GetWoWGameObjectByyId(20808).Count > 0 && ObjectManager.GetWoWGameObjectByyId(20808).FirstOrDefault().GetDistance2D <= 50) { wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 2500); } Thanks it's help but i have 1 more question. What does mean this number ? it's distance between me and object ? I need it's for elevator because on server where try use bot only this value change. Coord's x,y,z all time have regular value. 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