Jump to content

Recommended Posts

Hello there, i need some help with lua code for quest, to interact witn an object https://base.opiums.eu/?object=184502
for this quest https://base.opiums.eu/?quest=9621 because the bot have no idea how to leave this location.

Link to comment
https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/
Share on other sites

var pos = new Vector3(x, y, z); 
        int clickonobject = 0; 

        GoToTask.ToPosition(pos);
        while (MovementManager.InMovement)
        {
            Thread.Sleep(250);
        }
        if (ObjectManager.Me.Position.DistanceTo2D(pos) < 3)
        {
            Interact.InteractGameObject(ObjectManager.GetWoWGameObjectByEntry(clickonobject).FirstOrDefault().GetBaseAddress);
            Thread.Sleep(500);
            
        }
        return true;
Link to comment
https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68575
Share on other sites

32 minutes ago, Zer0 said:
int clickonobject = 0;

Replace '0' with the actual entry of the object you want to interact with.

Also make sure x, y and z are the correct coordinates of the object.

var pos = new Vector3(10034.75, -7000.305, 61.57602);
int clickonobject = 184502;

GoToTask.ToPosition(pos);
        while (MovementManager.InMovement)
        {
            Thread.Sleep(250);
        }
        if (ObjectManager.Me.Position.DistanceTo2D(pos) < 3)
        {
            Interact.InteractGameObject(ObjectManager.GetWoWGameObjectByEntry(clickonobject).FirstOrDefault().GetBaseAddress);
            Thread.Sleep(500);
        }
        return true;

Link to comment
https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68579
Share on other sites

i need, the bot pickup the quest. https://base.opiums.eu/?quest=9621
Run to the object, and interact with it https://base.opiums.eu/?quest=9621 to leave the location
and after being teleported start run to the turnin the quest to interactWithNpc

Link to comment
https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68581
Share on other sites

You need to spend some time on figuring out how to actually use the quester. In the quester profile, you can use Pickup, Run and TurnIn. 

Pickup will pick up the quest if it's neither completed nor in your log, run will run it if currently in your log and Turnin will go to the marked turn in NPC if the quest is in your log and marked completely.

For what you seem to want to do, you can just use the quest editor and likely don't need to write a single line of code. There's a guide and tutorial section in the forums. There are even video guides.

Link to comment
https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68584
Share on other sites

7 minutes ago, Matenia said:

You need to spend some time on figuring out how to actually use the quester. In the quester profile, you can use Pickup, Run and TurnIn. 

Pickup will pick up the quest if it's neither completed nor in your log, run will run it if currently in your log and Turnin will go to the marked turn in NPC if the quest is in your log and marked completely.

For what you seem to want to do, you can just use the quest editor and likely don't need to write a single line of code. There's a guide and tutorial section in the forums. There are even video guides.

My problem not in the quester, by some reason the quester just wont follow to the object.
The quest don't required the object to be compleated, its just need to leave the location where the quest is picked up.
So my probles is, the quster pick up the quest, and them should run to the object coordinates to interact with it, but it wond to it at all.
a bit latter capture some video abaut my problem.

Link to comment
https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68585
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...