July 11, 20169 yr While in Runcode, can I pause the code or wait for 3sec then continue? Anything like Wait(sec)?
July 12, 20169 yr Author Before the wait I am interacting with innkeeper to set hearthstone but the issue is that the code runs to quick so by time the popup appears to accept location, my code already run. I am using run macro for lua code. So I need to pause 1 or 2 sec then run code to accept. I have tested the accept by itself and it works.
July 12, 20169 yr Author I did see this option but I was wondering if there was anything I can put in as part of the code in run code. Will change what I was trying to do. Thanks for reply.
July 12, 20169 yr I'll give you full code when i get to computer. Took me a while to do it for my alliance quester profile but it's fail proof now
July 12, 20169 yr Alright it will look like this: Change the coords step to your destination coords. (it's setup for redridge mountains inn) While step: ObjectManager.Me.Position.DistanceTo2D(new Vector3(-9223.98f, -2157.12f, 63.73089f)) > 5 && ObjectManager.Me.Position.DistanceTo2D(new Vector3(-9223.98f, -2157.12f, 63.73089f)) < 100 Change the coords for the Inn keeper location and ID(6727) for NPC ID (you can get them from helper tools > target info) RunCode: wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-9223.98f, -2157.12f, 63.73089f), 6727, 1, false); below add RunMacroLUA: /click StaticPopup1Button1 after this all add EndWhile. If it still is too fast for you (never had issues with this setup) add action type step Wait with 2000 ms after runcode
Create an account or sign in to comment