Jump to content

Recommended Posts

How can I have quester use grapple points?

 

I have been able to setup a step to interact with NPC and get it to grapple up to the hook, but just after casting (but before being taken up to the hook) it will try to run away to find a way to walk up. Usually this ends up making it run off the side of a mountain back to where it came from. I've tried making "is complete condition" to the hooks position but it doesn't care and will keep walking around trying to interact with other points. 

Link to comment
https://wrobot.eu/forums/topic/4208-stormhelm-grapple-poins/
Share on other sites

  • 1 month later...

Hello, you need to use c# for this quest, and use code like:

        var grappleId = 1234;
        var grapple1 = new Vector3(1, 2, 3);
        var grapple2 = new Vector3(1, 2, 3);
        var grapple3 = new Vector3(1, 2, 3);

        if (ObjectManager.Me.Position.DistanceTo(grapple1) < 8)
        {
            var g = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(grappleId), grapple2);
            if (g.IsValid)
            {
                Interact.InteractGameObject(g.GetBaseAddress, true);
                Thread.Sleep(1000);
            }
        }
        else if (ObjectManager.Me.Position.DistanceTo(grapple2) < 8)
        {
            var g = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(grappleId), grapple3);
            if (g.IsValid)
            {
                Interact.InteractGameObject(g.GetBaseAddress, true);
                Thread.Sleep(1000);
            }
        }
        // ...
        else
        {
            var g = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(grappleId), grapple1);
            if (g.IsValid)
            {
                Interact.InteractGameObject(g.GetBaseAddress, true);
                Thread.Sleep(1000);
            }
        }

 

Link to comment
https://wrobot.eu/forums/topic/4208-stormhelm-grapple-poins/#findComment-21310
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...