lsabakal 2 Posted July 24, 2023 Share Posted July 24, 2023 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 More sharing options...
lsabakal 2 Posted July 24, 2023 Author Share Posted July 24, 2023 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 More sharing options...
lsabakal 2 Posted July 24, 2023 Author Share Posted July 24, 2023 This one doesn't work Link to comment https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68576 Share on other sites More sharing options...
Zer0 148 Posted July 24, 2023 Share Posted July 24, 2023 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. Link to comment https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68578 Share on other sites More sharing options...
lsabakal 2 Posted July 24, 2023 Author Share Posted July 24, 2023 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 More sharing options...
lsabakal 2 Posted July 24, 2023 Author Share Posted July 24, 2023 Link to comment https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68580 Share on other sites More sharing options...
lsabakal 2 Posted July 24, 2023 Author Share Posted July 24, 2023 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 More sharing options...
lsabakal 2 Posted July 24, 2023 Author Share Posted July 24, 2023 But this code posted up isnt work at all, i'll try many different things, but am so stupid in coding. Link to comment https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68582 Share on other sites More sharing options...
Matenia 630 Posted July 25, 2023 Share Posted July 25, 2023 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 More sharing options...
lsabakal 2 Posted July 25, 2023 Author Share Posted July 25, 2023 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 More sharing options...
TechMecca 7 Posted July 25, 2023 Share Posted July 25, 2023 Im patently wait to see if anyone is gonna tell this guy he is using c# and not lua? lsabakal 1 Link to comment https://wrobot.eu/forums/topic/15258-need-some-help-with-lua/#findComment-68587 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