Jump to content

Elevator\boat\zeppelin


Recommended Posts

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

Безымянный.png

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

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

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); }

zeppelin.thumb.png.1424cc986451d77c1907d127fa12152c.png

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...