This code will:
Turn in your daily's.
Use a daily reset when needed.
Stop when you run out of either daily items or resets.
This is currently set up for "Poison Anteater Sac" Turn-Ins, but can be changed to a different quest.. vvv
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
changeProfileOption("TARGET_LEVELDIF_BELOW", "1") --To not attack a nearby mob for poison sac turn-ins.
</onload>
<!-- # 1 --><waypoint x="-16424" z="41230" y="622"> --change the waypoint coordinates, must be a spot next to questgiver
while inventory:itemTotalCount("Poison Anteater Sac") >= 10 do --change the name of the daily item
player:target_NPC("Allan Greenshovel"); --change the npc name
AcceptQuestByName(); yrest(200); --if npc has more then one quest, put the correct quest name in the ()
sendMacro("CloseWindows();"); yrest(100);
player:target_NPC("Allan Greenshovel"); --change the npc name
CompleteQuestByName(); yrest(200); --if npc has more then one quest, put the correct quest name in the ()
sendMacro("CloseWindows();"); yrest(50);
player:update()
yrest(200)
local dailyQuestCount, dailyQuestsPerDay = RoMScript("Daily_count()")
if dailyQuestsPerDay - dailyQuestCount == 0 then -- out of dailies
local reset = inventory:findItem(202434) -- "Daily Quest Ticket"
if reset then
reset:use()
else
error("Completed All Daily Resets.")
end
end
end
error("Ran Out of Daily Items.")
</waypoint>
</waypoints>