Page 1 of 1

Daily Resets Turn In!

Posted: Mon Feb 20, 2012 6:50 pm
by woah
Daily Turn In v1.0

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>
Have a carpal tunnel free day :D

Re: Daily Resets Turn In!

Posted: Mon Feb 20, 2012 8:59 pm
by lisa
woah wrote:uires QuestByName
That has been integrated into the bot itself now, you can delete the userfunction =)

Re: Daily Resets Turn In!

Posted: Tue Feb 21, 2012 4:07 am
by woah
Nice, I took that stuff out (:

Re: Daily Resets Turn In!

Posted: Thu May 24, 2012 5:19 pm
by bruenor9
Anyway to integrate butterflies in here?