but i can see the problem in future... if im not the only one doing quest... because after you talk to "Uncomfortable Adventurer" he will run away. so after im back again in his spot and he is not yet come back.. my character continue running and going somewhere..
i am sorry for digging up this thread.
if i make this daily quest in party of 2(3-6) chars, and one of them is circulating to talk with NPC's on a mount, and others are passive chars, which just wait the daily quest to be finished?
i tried with only first waypoint of upper shown chain, but passive char constantly losses focus and get back focused to NPC Hugope, and constantly turns around the coordinates of the waypoint.
any idea how to make char to wait until quest is finished, to be able to finish it, without moving and focusing NPC?
I suspect what you are doing is making it redo the waypoint again and again. What you should do is stay inside a loop until their dalies are completed.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
i did tried both ways: repeating waypoint (does upper explained effect), and tried for looping with "while .. do" and "repeat .. until" - micromacro crashes with error in "rom/bot.lua:792: Faild to compile and run Lua code for waypoint #1"
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-7139" z="-4111" y="172">
local dqCount = RoMScript("Daily_count()");
if dqCount == 10 then
player:sleep()
else
queststate = getQuestStatus("Earn a Reputation");
if (queststate != "complete") then
repeat
until queststate == "complete";
player:target_NPC("Hugope")
AcceptCompleteQuestByName("Earn a Reputation")
else
player:target_NPC("Hugope")
AcceptQuestByName("Earn a Reputation")
end
end
</waypoint>
</waypoints>
can you please advice what is proper syntax of loops or give me link to read it. thank you in advance
you also need an end for that if statement but not at the end of all the code, needs to be before the next else as it is nested inside another if statement.
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-7139" z="-4111" y="172">
player:target_NPC("Hugope")
CompleteQuestByName("Earn a Reputation")
local dqCount = RoMScript("Daily_count()");
if dqCount == 10 then
player:sleep()
else
player:target_NPC("Hugope")
AcceptQuestByName("Earn a Reputation")
repeat
yrest(1000)
until getQuestStatus("Earn a Reputation") == "complete";
end
</waypoint>
</waypoints>
Remember no matter you do in life to always have a little fun while you are at it