how do you use daily reset tickets in a macro?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

how do you use daily reset tickets in a macro?

#1 Post by newton666 »

hi, i've made a macro for doing butterfly dailys and stop when its done the ten dailys but i want to use daily reset tickets when i have done my normal ten dailys.
Can someone edite this so it works with daily tickets thanks
p.s yes im new to all this macro thing :-

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
	local dailycomplete_ptr = 0x9CB190;
	local dailycomplete_offset = 0xACF4;
	
	function getDailyComplete()
		return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset);
	end
	
	function checkDQCount()
		local _tmpQC = getDailyComplete();
		cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
		if (_tmpQC == 10) then
			cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
			keyboardPress(key.VK_F10);  yrest(555); 
	 	end
	end
	
	killquest = RoMScript("TEXT('Sys424181_name')"); yrest(500) -- ie. catch butterflys
	
	function skipper()
		killstatus = getQuestStatus(killquest);
			if killstatus == "complete" then
				__WPL:setForcedWaypointType("RUN")
				
			end
	end
	</onLoad>
	
	<!-- #  1 --><waypoint x="6426" z="5429" y="156">
		__WPL:setDirection(WPT_FORWARD);
		checkDQCount();
		player:target_NPC("Robbie Butcher");
		CompleteQuestByName(killquest);
		AcceptQuestByName(killquest);
		__WPL:setForcedWaypointType("NORMAL");
			player:mount();
			player:rest(1);
	</waypoint>
		<!-- #  2 --><waypoint x="6426" z="5429" y="156" type ="RUN">	
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); 
     			if 10 == dailyQuestCount then
      				printf ("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Quests. STOP.");
      				error("Bot ending.", 0); -- ends the script.
      			else
      				printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
      			end
	</waypoint>
	<!-- #  3 --><waypoint x="6321" z="4918" y="168">	</waypoint>
	<!-- #  4 --><waypoint x="6366" z="4740" y="168">	</waypoint>
	<!-- #  5 --><waypoint x="6397" z="4607" y="168">	</waypoint>
	<!-- #  6 --><waypoint x="6422" z="4501" y="168">	</waypoint>
	<!-- #  7 --><waypoint x="6448" z="4391" y="168">	</waypoint>
	<!-- #  8 --><waypoint x="6474" z="4281" y="168">	</waypoint>
	<!-- #  9 --><waypoint x="6497" z="4187" y="168">	</waypoint>
	<!-- # 10 --><waypoint x="6541" z="3998" y="190">	</waypoint>
	<!-- # 11 --><waypoint x="6541" z="3998" y="190">			
                        player:mount();
			player:rest(1);
	</waypoint>
	<!-- # 12 --><waypoint x="6606" z="3775" y="158">	</waypoint>
	<!-- # 13 --><waypoint x="6697" z="3762" y="158">	</waypoint>
	<!-- # 14 --><waypoint x="6834" z="3795" y="158">	</waypoint>
	<!-- # 15 --><waypoint x="6976" z="3723" y="158">	</waypoint>
	<!-- # 16 --><waypoint x="7047" z="3606" y="163">	</waypoint>
	<!-- # 17 --><waypoint x="7060" z="3472" y="176">	</waypoint>
	<!-- # 18 --><waypoint x="7101" z="3226" y="176">	</waypoint>
	<!-- # 19 --><waypoint x="7101" z="3226" y="176">			
                        player:mount();
			player:rest(1);
	</waypoint>
	<!-- # 20 --><waypoint x="7239" z="3184" y="176">	</waypoint>
	<!-- # 21 --><waypoint x="7373" z="3210" y="168">	</waypoint>
	<!-- # 22 --><waypoint x="7332" z="3342" y="168">	</waypoint>
	<!-- # 23 --><waypoint x="7456" z="3352" y="168">	</waypoint>
	<!-- # 24 --><waypoint x="7495" z="3180" y="168">	</waypoint>
	<!-- # 25 --><waypoint x="7634" z="3203" y="168">	</waypoint>
	<!-- # 26 --><waypoint x="7643" z="3072" y="168">	</waypoint>
	<!-- # 27 --><waypoint x="7545" z="3043" y="168">	</waypoint>
	<!-- # 28 --><waypoint x="7574" z="2894" y="168">	</waypoint>
	<!-- # 29 --><waypoint x="7579" z="2874" y="168">	</waypoint>
	<!-- # 30 --><waypoint x="7579" z="2874" y="168">			
                        player:mount();
			player:rest(1);
	</waypoint>
	<!-- # 38 --><waypoint x="7568" z="2817" y="168" tag="pointofreturn">	</waypoint>
        <!-- #  41 --><waypoint x="7572" z="2906" y="168">	</waypoint>
	<!-- #  42 --><waypoint x="7572" z="2906" y="168">	</waypoint>
	<!-- #  43 --><waypoint x="7506" z="2775" y="168">	</waypoint>
	<!-- #  44 --><waypoint x="7406" z="2754" y="168">	</waypoint>
	<!-- #  45 --><waypoint x="7429" z="2681" y="168">	</waypoint>
	<!-- #  46 --><waypoint x="7532" z="2637" y="168">	</waypoint>
	<!-- #  47 --><waypoint x="7638" z="2596" y="168">skipper();	</waypoint>
	<!-- #  48 --><waypoint x="7640" z="2530" y="168">	</waypoint>
	<!-- #  49 --><waypoint x="7601" z="2413" y="168">	</waypoint>
	<!-- # 110 --><waypoint x="7582" z="2350" y="168">	</waypoint>
	<!-- # 111 --><waypoint x="7599" z="2248" y="168">	</waypoint>
	<!-- # 112 --><waypoint x="7625" z="2141" y="168">	</waypoint>
	<!-- # 113 --><waypoint x="7667" z="2036" y="168">	</waypoint>
	<!-- # 114 --><waypoint x="7683" z="1992" y="168">	</waypoint>
	<!-- # 115 --><waypoint x="7710" z="1846" y="168">	</waypoint>
	<!-- # 116 --><waypoint x="7735" z="1706" y="168">skipper();	</waypoint>
	<!-- # 117 --><waypoint x="7798" z="1651" y="168">	</waypoint>
	<!-- # 118 --><waypoint x="7908" z="1524" y="168">	</waypoint>
	<!-- # 119 --><waypoint x="7944" z="1410" y="168">	</waypoint>
	<!-- # 120 --><waypoint x="7876" z="1387" y="168">	</waypoint>
	<!-- # 121 --><waypoint x="7795" z="1379" y="168">skipper();	</waypoint>
	<!-- # 122 --><waypoint x="7792" z="1442" y="168">              </waypoint>                       
	<!-- # 223 --><waypoint x="7772" z="1497" y="168">skipper();	</waypoint>
	<!-- # 224 --><waypoint x="7753" z="1589" y="168">	</waypoint>
	<!-- # 225 --><waypoint x="7721" z="1734" y="168">	</waypoint>
	<!-- # 226 --><waypoint x="7696" z="1857" y="168">	</waypoint>
	<!-- # 227 --><waypoint x="7678" z="1996" y="168">	</waypoint>
	<!-- # 228 --><waypoint x="7629" z="2153" y="168">	</waypoint>
	<!-- # 229 --><waypoint x="7606" z="2286" y="168">	</waypoint>
	<!-- # 230 --><waypoint x="7612" z="2378" y="168">	</waypoint>
	<!-- # 231 --><waypoint x="7701" z="2527" y="168">skipper();	</waypoint>
	<!-- # 232 --><waypoint x="7582" z="2597" y="168">	</waypoint>
	<!-- # 233 --><waypoint x="7469" z="2653" y="168">	</waypoint>
	<!-- # 234 --><waypoint x="7375" z="2701" y="168">	</waypoint>
	<!-- # 235 --><waypoint x="7462" z="2767" y="168">	</waypoint>
	<!-- # 236 --><waypoint x="7573" z="2835" y="168">	</waypoint>
	<!-- # 238 --><waypoint x="7577" z="2838" y="168">skipper();	</waypoint>
	<!-- # 276 --><waypoint x="7554" z="2678" y="168" tag="checkpoint">		
	__WPL:setForcedWaypointType("RUN")
	killstatus = getQuestStatus(killquest);
	if killstatus == "complete" then
			-- go back to npc
			__WPL:setDirection(WPT_BACKWARD);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
	end
	if killstatus == "incomplete" then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
	end
	</waypoint>
</waypoints>
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: how do you use daily reset tickets in a macro?

#2 Post by Germangold »

wy u opening a new thred for this u troll??

replace
keyboardPress(key.VK_F10); yrest(555);
with

Code: Select all

inventory:update();
player:update();
-- note #202434 is the daily reset card
	if inventory:itemTotalCount(202434) => 1 then
		inventory:useItem(202434);
	else
		error("No Daily Reset Cards left!")
		player:sleep();
	end
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#3 Post by newton666 »

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
   local dailycomplete_ptr = 0x9CB190;
   local dailycomplete_offset = 0xACF4;
   
   function getDailyComplete()
      return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset);
   end
   
   function checkDQCount()
      local _tmpQC = getDailyComplete();
      cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
      if (_tmpQC == 10) then
         cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
 inventory:update();
player:update();
-- note #202434 is the daily reset card
   if inventory:itemTotalCount(202434) => 1 then
      inventory:useItem(202434);
   else
      error("No Daily Reset Cards left!")
      player:sleep();
   end
   end
   
   killquest = RoMScript("TEXT('Sys424181_name')"); yrest(500) -- ie. catch butterflys
   
   function skipper()
      killstatus = getQuestStatus(killquest);
         if killstatus == "complete" then
            __WPL:setForcedWaypointType("RUN")
            
         end
   end
   </onLoad>
   
   <!-- #  1 --><waypoint x="6426" z="5429" y="156">
      __WPL:setDirection(WPT_FORWARD);
      checkDQCount();
      player:target_NPC("Robbie Butcher");
      CompleteQuestByName(killquest);
      AcceptQuestByName(killquest);
      __WPL:setForcedWaypointType("NORMAL");
         player:mount();
         player:rest(1);
   </waypoint>
      <!-- #  2 --><waypoint x="6426" z="5429" y="156" type ="RUN">   
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); 
              if 10 == dailyQuestCount then
                  printf ("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Quests. STOP.");
                  error("Bot ending.", 0); -- ends the script.
               else
                  printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
               end
   </waypoint>
   <!-- #  3 --><waypoint x="6321" z="4918" y="168">   </waypoint>
   <!-- #  4 --><waypoint x="6366" z="4740" y="168">   </waypoint>
   <!-- #  5 --><waypoint x="6397" z="4607" y="168">   </waypoint>
   <!-- #  6 --><waypoint x="6422" z="4501" y="168">   </waypoint>
   <!-- #  7 --><waypoint x="6448" z="4391" y="168">   </waypoint>
   <!-- #  8 --><waypoint x="6474" z="4281" y="168">   </waypoint>
   <!-- #  9 --><waypoint x="6497" z="4187" y="168">   </waypoint>
   <!-- # 10 --><waypoint x="6541" z="3998" y="190">   </waypoint>
   <!-- # 11 --><waypoint x="6541" z="3998" y="190">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 12 --><waypoint x="6606" z="3775" y="158">   </waypoint>
   <!-- # 13 --><waypoint x="6697" z="3762" y="158">   </waypoint>
   <!-- # 14 --><waypoint x="6834" z="3795" y="158">   </waypoint>
   <!-- # 15 --><waypoint x="6976" z="3723" y="158">   </waypoint>
   <!-- # 16 --><waypoint x="7047" z="3606" y="163">   </waypoint>
   <!-- # 17 --><waypoint x="7060" z="3472" y="176">   </waypoint>
   <!-- # 18 --><waypoint x="7101" z="3226" y="176">   </waypoint>
   <!-- # 19 --><waypoint x="7101" z="3226" y="176">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 20 --><waypoint x="7239" z="3184" y="176">   </waypoint>
   <!-- # 21 --><waypoint x="7373" z="3210" y="168">   </waypoint>
   <!-- # 22 --><waypoint x="7332" z="3342" y="168">   </waypoint>
   <!-- # 23 --><waypoint x="7456" z="3352" y="168">   </waypoint>
   <!-- # 24 --><waypoint x="7495" z="3180" y="168">   </waypoint>
   <!-- # 25 --><waypoint x="7634" z="3203" y="168">   </waypoint>
   <!-- # 26 --><waypoint x="7643" z="3072" y="168">   </waypoint>
   <!-- # 27 --><waypoint x="7545" z="3043" y="168">   </waypoint>
   <!-- # 28 --><waypoint x="7574" z="2894" y="168">   </waypoint>
   <!-- # 29 --><waypoint x="7579" z="2874" y="168">   </waypoint>
   <!-- # 30 --><waypoint x="7579" z="2874" y="168">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 38 --><waypoint x="7568" z="2817" y="168" tag="pointofreturn">   </waypoint>
        <!-- #  41 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  42 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  43 --><waypoint x="7506" z="2775" y="168">   </waypoint>
   <!-- #  44 --><waypoint x="7406" z="2754" y="168">   </waypoint>
   <!-- #  45 --><waypoint x="7429" z="2681" y="168">   </waypoint>
   <!-- #  46 --><waypoint x="7532" z="2637" y="168">   </waypoint>
   <!-- #  47 --><waypoint x="7638" z="2596" y="168">skipper();   </waypoint>
   <!-- #  48 --><waypoint x="7640" z="2530" y="168">   </waypoint>
   <!-- #  49 --><waypoint x="7601" z="2413" y="168">   </waypoint>
   <!-- # 110 --><waypoint x="7582" z="2350" y="168">   </waypoint>
   <!-- # 111 --><waypoint x="7599" z="2248" y="168">   </waypoint>
   <!-- # 112 --><waypoint x="7625" z="2141" y="168">   </waypoint>
   <!-- # 113 --><waypoint x="7667" z="2036" y="168">   </waypoint>
   <!-- # 114 --><waypoint x="7683" z="1992" y="168">   </waypoint>
   <!-- # 115 --><waypoint x="7710" z="1846" y="168">   </waypoint>
   <!-- # 116 --><waypoint x="7735" z="1706" y="168">skipper();   </waypoint>
   <!-- # 117 --><waypoint x="7798" z="1651" y="168">   </waypoint>
   <!-- # 118 --><waypoint x="7908" z="1524" y="168">   </waypoint>
   <!-- # 119 --><waypoint x="7944" z="1410" y="168">   </waypoint>
   <!-- # 120 --><waypoint x="7876" z="1387" y="168">   </waypoint>
   <!-- # 121 --><waypoint x="7795" z="1379" y="168">skipper();   </waypoint>
   <!-- # 122 --><waypoint x="7792" z="1442" y="168">              </waypoint>                       
   <!-- # 223 --><waypoint x="7772" z="1497" y="168">skipper();   </waypoint>
   <!-- # 224 --><waypoint x="7753" z="1589" y="168">   </waypoint>
   <!-- # 225 --><waypoint x="7721" z="1734" y="168">   </waypoint>
   <!-- # 226 --><waypoint x="7696" z="1857" y="168">   </waypoint>
   <!-- # 227 --><waypoint x="7678" z="1996" y="168">   </waypoint>
   <!-- # 228 --><waypoint x="7629" z="2153" y="168">   </waypoint>
   <!-- # 229 --><waypoint x="7606" z="2286" y="168">   </waypoint>
   <!-- # 230 --><waypoint x="7612" z="2378" y="168">   </waypoint>
   <!-- # 231 --><waypoint x="7701" z="2527" y="168">skipper();   </waypoint>
   <!-- # 232 --><waypoint x="7582" z="2597" y="168">   </waypoint>
   <!-- # 233 --><waypoint x="7469" z="2653" y="168">   </waypoint>
   <!-- # 234 --><waypoint x="7375" z="2701" y="168">   </waypoint>
   <!-- # 235 --><waypoint x="7462" z="2767" y="168">   </waypoint>
   <!-- # 236 --><waypoint x="7573" z="2835" y="168">   </waypoint>
   <!-- # 238 --><waypoint x="7577" z="2838" y="168">skipper();   </waypoint>
   <!-- # 276 --><waypoint x="7554" z="2678" y="168" tag="checkpoint">      
   __WPL:setForcedWaypointType("RUN")
   killstatus = getQuestStatus(killquest);
   if killstatus == "complete" then
         -- go back to npc
         __WPL:setDirection(WPT_BACKWARD);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   if killstatus == "incomplete" then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   </waypoint>
done that but still doant work
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: how do you use daily reset tickets in a macro?

#4 Post by rock5 »

An error message would have been helpful but I see a mistake. It should be ">=" not "=>".
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: how do you use daily reset tickets in a macro?

#5 Post by Germangold »

sry for that, i cant really test the code i am at the libary studing
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#6 Post by newton666 »

hi this is the erroe i get:-
scripts\rob/bot.lua:769:failed to complie and run lua code for waypoint #3
SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: how do you use daily reset tickets in a macro?

#7 Post by SpiralV »

yes rock said it
safe your daily-tickets first time

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
   local dailycomplete_ptr = 0x9CB190;
   local dailycomplete_offset = 0xACF4;
   
   function getDailyComplete()
      return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset);
   end
   
   function checkDQCount()
      local _tmpQC = getDailyComplete();
      cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
      if (_tmpQC == 10) then
         cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
         keyboardPress(key.VK_F10);  yrest(555);
       end
   end
   
   killquest = RoMScript("TEXT('Sys424181_name')"); yrest(500) -- ie. catch butterflys
   
   function skipper()
      local killstatus = getQuestStatus(killquest);
         if killstatus == "complete" then
            __WPL:setForcedWaypointType("RUN")
            
         end
   end
   </onLoad>
   
   <!-- #  1 --><waypoint x="6426" z="5429" y="156">
      __WPL:setDirection(WPT_FORWARD);
      checkDQCount();
      player:target_NPC("Robbie Butcher");
      CompleteQuestByName(killquest);
      AcceptQuestByName(killquest);
      __WPL:setForcedWaypointType("NORMAL");
         player:mount();
         player:rest(1);
   </waypoint>
      <!-- #  2 --><waypoint x="6426" z="5429" y="156" type ="RUN">
		inventory:update();
		player:update();
		-- note #202434 is the daily reset card
	local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
		if 10 == dailyQuestCount and inventory:itemTotalCount(202434) >= 1 then
      			inventory:useItem(202434);
	                local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
   		end
		if 10 == dailyQuestCount and inventory:itemTotalCount(202434) == 0 then
                              printf("No Daily Reset Cards left!\n")
                              player:sleep();
   		end
              if 10 == dailyQuestCount then
                  printf ("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Quests. STOP.");
                  error("Bot ending.", 0); -- ends the script.
               else
                  printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");
               end
   </waypoint>
   <!-- #  3 --><waypoint x="6321" z="4918" y="168">   </waypoint>
   <!-- #  4 --><waypoint x="6366" z="4740" y="168">   </waypoint>
   <!-- #  5 --><waypoint x="6397" z="4607" y="168">   </waypoint>
   <!-- #  6 --><waypoint x="6422" z="4501" y="168">   </waypoint>
   <!-- #  7 --><waypoint x="6448" z="4391" y="168">   </waypoint>
   <!-- #  8 --><waypoint x="6474" z="4281" y="168">   </waypoint>
   <!-- #  9 --><waypoint x="6497" z="4187" y="168">   </waypoint>
   <!-- # 10 --><waypoint x="6541" z="3998" y="190">   </waypoint>
   <!-- # 11 --><waypoint x="6541" z="3998" y="190">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 12 --><waypoint x="6606" z="3775" y="158">   </waypoint>
   <!-- # 13 --><waypoint x="6697" z="3762" y="158">   </waypoint>
   <!-- # 14 --><waypoint x="6834" z="3795" y="158">   </waypoint>
   <!-- # 15 --><waypoint x="6976" z="3723" y="158">   </waypoint>
   <!-- # 16 --><waypoint x="7047" z="3606" y="163">   </waypoint>
   <!-- # 17 --><waypoint x="7060" z="3472" y="176">   </waypoint>
   <!-- # 18 --><waypoint x="7101" z="3226" y="176">   </waypoint>
   <!-- # 19 --><waypoint x="7101" z="3226" y="176">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 20 --><waypoint x="7239" z="3184" y="176">   </waypoint>
   <!-- # 21 --><waypoint x="7373" z="3210" y="168">   </waypoint>
   <!-- # 22 --><waypoint x="7332" z="3342" y="168">   </waypoint>
   <!-- # 23 --><waypoint x="7456" z="3352" y="168">   </waypoint>
   <!-- # 24 --><waypoint x="7495" z="3180" y="168">   </waypoint>
   <!-- # 25 --><waypoint x="7634" z="3203" y="168">   </waypoint>
   <!-- # 26 --><waypoint x="7643" z="3072" y="168">   </waypoint>
   <!-- # 27 --><waypoint x="7545" z="3043" y="168">   </waypoint>
   <!-- # 28 --><waypoint x="7574" z="2894" y="168">   </waypoint>
   <!-- # 29 --><waypoint x="7579" z="2874" y="168">   </waypoint>
   <!-- # 30 --><waypoint x="7579" z="2874" y="168">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 38 --><waypoint x="7568" z="2817" y="168" tag="pointofreturn">   </waypoint>
        <!-- #  41 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  42 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  43 --><waypoint x="7506" z="2775" y="168">   </waypoint>
   <!-- #  44 --><waypoint x="7406" z="2754" y="168">   </waypoint>
   <!-- #  45 --><waypoint x="7429" z="2681" y="168">   </waypoint>
   <!-- #  46 --><waypoint x="7532" z="2637" y="168">   </waypoint>
   <!-- #  47 --><waypoint x="7638" z="2596" y="168">skipper();   </waypoint>
   <!-- #  48 --><waypoint x="7640" z="2530" y="168">   </waypoint>
   <!-- #  49 --><waypoint x="7601" z="2413" y="168">   </waypoint>
   <!-- # 110 --><waypoint x="7582" z="2350" y="168">   </waypoint>
   <!-- # 111 --><waypoint x="7599" z="2248" y="168">   </waypoint>
   <!-- # 112 --><waypoint x="7625" z="2141" y="168">   </waypoint>
   <!-- # 113 --><waypoint x="7667" z="2036" y="168">   </waypoint>
   <!-- # 114 --><waypoint x="7683" z="1992" y="168">   </waypoint>
   <!-- # 115 --><waypoint x="7710" z="1846" y="168">   </waypoint>
   <!-- # 116 --><waypoint x="7735" z="1706" y="168">skipper();   </waypoint>
   <!-- # 117 --><waypoint x="7798" z="1651" y="168">   </waypoint>
   <!-- # 118 --><waypoint x="7908" z="1524" y="168">   </waypoint>
   <!-- # 119 --><waypoint x="7944" z="1410" y="168">   </waypoint>
   <!-- # 120 --><waypoint x="7876" z="1387" y="168">   </waypoint>
   <!-- # 121 --><waypoint x="7795" z="1379" y="168">skipper();   </waypoint>
   <!-- # 122 --><waypoint x="7792" z="1442" y="168">              </waypoint>                       
   <!-- # 223 --><waypoint x="7772" z="1497" y="168">skipper();   </waypoint>
   <!-- # 224 --><waypoint x="7753" z="1589" y="168">   </waypoint>
   <!-- # 225 --><waypoint x="7721" z="1734" y="168">   </waypoint>
   <!-- # 226 --><waypoint x="7696" z="1857" y="168">   </waypoint>
   <!-- # 227 --><waypoint x="7678" z="1996" y="168">   </waypoint>
   <!-- # 228 --><waypoint x="7629" z="2153" y="168">   </waypoint>
   <!-- # 229 --><waypoint x="7606" z="2286" y="168">   </waypoint>
   <!-- # 230 --><waypoint x="7612" z="2378" y="168">   </waypoint>
   <!-- # 231 --><waypoint x="7701" z="2527" y="168">skipper();   </waypoint>
   <!-- # 232 --><waypoint x="7582" z="2597" y="168">   </waypoint>
   <!-- # 233 --><waypoint x="7469" z="2653" y="168">   </waypoint>
   <!-- # 234 --><waypoint x="7375" z="2701" y="168">   </waypoint>
   <!-- # 235 --><waypoint x="7462" z="2767" y="168">   </waypoint>
   <!-- # 236 --><waypoint x="7573" z="2835" y="168">   </waypoint>
   <!-- # 238 --><waypoint x="7577" z="2838" y="168">skipper();   </waypoint>
   <!-- # 276 --><waypoint x="7554" z="2678" y="168" tag="checkpoint">      
   __WPL:setForcedWaypointType("RUN")
   killstatus = getQuestStatus(killquest);
   if killstatus == "complete" then
         -- go back to npc
         __WPL:setDirection(WPT_BACKWARD);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   if killstatus == "incomplete" then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   </waypoint>
</waypoints>
edit i change something make sure you have right code
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#8 Post by newton666 »

thanks its working now and useing the daily reset but the problem now is that it keep's useing the daily reset after each return instand of after 10 times ?
help.........

p.s please be patience with im new to all this
SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: how do you use daily reset tickets in a macro?

#9 Post by SpiralV »

Yes sorry not my day :oops: I've corrected it
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#10 Post by newton666 »

still a problem, after it does the 1st 10 daily's it use the daily reset ticket and then falls a sleep with the new 10 dailys not started ???
some thing is still wrong :(
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: how do you use daily reset tickets in a macro?

#11 Post by lisa »

Not sure exactly how the in game function works as i haven't tested it but I believe that dailyQuestCount will return how many quests you have done, regardless of the reset. So if you use a reset and do another quest then it would return 11.
But as I said I haven't tested that.

so in your code it returns 10 quests done, then uses a dailyreset. it then checks how many quests done, which is still 10 and checks if you have any daily resets which you obviously don't as it then goes to sleep.

I think to get past this you will need to combine you code together instead of doing seperate checks for the number of dailys done.
Then you can do a check for == 10 or 20 or 30.
Another option would be to play with the second val that is returned dailyQuestsPerDay, would need to test the results both have when you reach 10 and after using reset to be able to make your code more efficient.

Code: Select all

   
      <!-- #  2 --><waypoint x="6426" z="5429" y="156" type ="RUN">
      inventory:update();
      player:update();

local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if dailyQuestCount == 10 or dailyQuestCount == 20 or dailyQuestCount == 30 then
if inventory:itemTotalCount(202434) >= 1 then
               inventory:useItem(202434);
else
                 printf("No Daily Reset Cards left!\n")
                  player:sleep();
end
end
</waypoint>
Something like that will probably do the trick.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: how do you use daily reset tickets in a macro?

#12 Post by SpiralV »

i think there is a logic fault

Code: Select all

   local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
      if 10 == dailyQuestCount and inventory:itemTotalCount(202434) >= 1 then
               inventory:useItem(202434);
               local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
         end
      if 10 == dailyQuestCount and inventory:itemTotalCount(202434) == 0 then
               printf("No Daily Reset Cards left!\n")
               player:sleep();
         end
the local scope of dailyQuestCount, dailyQuestsPerDay ends with the if statment
and it may be the client needs more time to update

let's see if it works now hopefully

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
   local dailycomplete_ptr = 0x9CB190;
   local dailycomplete_offset = 0xACF4;
   
   function getDailyComplete()
      return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset);
   end
   
   function checkDQCount()
      local _tmpQC = getDailyComplete();
      cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
      if (_tmpQC == 10) then
         cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
         keyboardPress(key.VK_F10);  yrest(555);
       end
   end
   
   killquest = RoMScript("TEXT('Sys424181_name')"); yrest(500) -- ie. catch butterflys
   
   function skipper()
      local killstatus = getQuestStatus(killquest);
         if killstatus == "complete" then
            __WPL:setForcedWaypointType("RUN")
         end
   end
   </onLoad>
   
   <!-- #  1 --><waypoint x="6426" z="5429" y="156">
      __WPL:setDirection(WPT_FORWARD);
      checkDQCount();
      player:target_NPC("Robbie Butcher");
      CompleteQuestByName(killquest);
      AcceptQuestByName(killquest);
      __WPL:setForcedWaypointType("NORMAL");
         player:mount();
         player:rest(1);
   </waypoint>
      <!-- #  2 --><waypoint x="6426" z="5429" y="156" type ="RUN">

      	inventory:update();
      	player:update();

      	-- note #202434 is the daily reset card
	local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
	if 10 == dailyQuestCount then
		if inventory:itemTotalCount(202434) >= 1 then
                	inventory:useItem(202434);
		else
			printf("No Daily Reset Cards left!\n")
			player:sleep();		
		end
	end

	printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");

   </waypoint>
   <!-- #  3 --><waypoint x="6321" z="4918" y="168">   </waypoint>
   <!-- #  4 --><waypoint x="6366" z="4740" y="168">   </waypoint>
   <!-- #  5 --><waypoint x="6397" z="4607" y="168">   </waypoint>
   <!-- #  6 --><waypoint x="6422" z="4501" y="168">   </waypoint>
   <!-- #  7 --><waypoint x="6448" z="4391" y="168">   </waypoint>
   <!-- #  8 --><waypoint x="6474" z="4281" y="168">   </waypoint>
   <!-- #  9 --><waypoint x="6497" z="4187" y="168">   </waypoint>
   <!-- # 10 --><waypoint x="6541" z="3998" y="190">   </waypoint>
   <!-- # 11 --><waypoint x="6541" z="3998" y="190">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 12 --><waypoint x="6606" z="3775" y="158">   </waypoint>
   <!-- # 13 --><waypoint x="6697" z="3762" y="158">   </waypoint>
   <!-- # 14 --><waypoint x="6834" z="3795" y="158">   </waypoint>
   <!-- # 15 --><waypoint x="6976" z="3723" y="158">   </waypoint>
   <!-- # 16 --><waypoint x="7047" z="3606" y="163">   </waypoint>
   <!-- # 17 --><waypoint x="7060" z="3472" y="176">   </waypoint>
   <!-- # 18 --><waypoint x="7101" z="3226" y="176">   </waypoint>
   <!-- # 19 --><waypoint x="7101" z="3226" y="176">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 20 --><waypoint x="7239" z="3184" y="176">   </waypoint>
   <!-- # 21 --><waypoint x="7373" z="3210" y="168">   </waypoint>
   <!-- # 22 --><waypoint x="7332" z="3342" y="168">   </waypoint>
   <!-- # 23 --><waypoint x="7456" z="3352" y="168">   </waypoint>
   <!-- # 24 --><waypoint x="7495" z="3180" y="168">   </waypoint>
   <!-- # 25 --><waypoint x="7634" z="3203" y="168">   </waypoint>
   <!-- # 26 --><waypoint x="7643" z="3072" y="168">   </waypoint>
   <!-- # 27 --><waypoint x="7545" z="3043" y="168">   </waypoint>
   <!-- # 28 --><waypoint x="7574" z="2894" y="168">   </waypoint>
   <!-- # 29 --><waypoint x="7579" z="2874" y="168">   </waypoint>
   <!-- # 30 --><waypoint x="7579" z="2874" y="168">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 38 --><waypoint x="7568" z="2817" y="168" tag="pointofreturn">   </waypoint>
        <!-- #  41 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  42 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  43 --><waypoint x="7506" z="2775" y="168">   </waypoint>
   <!-- #  44 --><waypoint x="7406" z="2754" y="168">   </waypoint>
   <!-- #  45 --><waypoint x="7429" z="2681" y="168">   </waypoint>
   <!-- #  46 --><waypoint x="7532" z="2637" y="168">   </waypoint>
   <!-- #  47 --><waypoint x="7638" z="2596" y="168">skipper();   </waypoint>
   <!-- #  48 --><waypoint x="7640" z="2530" y="168">   </waypoint>
   <!-- #  49 --><waypoint x="7601" z="2413" y="168">   </waypoint>
   <!-- # 110 --><waypoint x="7582" z="2350" y="168">   </waypoint>
   <!-- # 111 --><waypoint x="7599" z="2248" y="168">   </waypoint>
   <!-- # 112 --><waypoint x="7625" z="2141" y="168">   </waypoint>
   <!-- # 113 --><waypoint x="7667" z="2036" y="168">   </waypoint>
   <!-- # 114 --><waypoint x="7683" z="1992" y="168">   </waypoint>
   <!-- # 115 --><waypoint x="7710" z="1846" y="168">   </waypoint>
   <!-- # 116 --><waypoint x="7735" z="1706" y="168">skipper();   </waypoint>
   <!-- # 117 --><waypoint x="7798" z="1651" y="168">   </waypoint>
   <!-- # 118 --><waypoint x="7908" z="1524" y="168">   </waypoint>
   <!-- # 119 --><waypoint x="7944" z="1410" y="168">   </waypoint>
   <!-- # 120 --><waypoint x="7876" z="1387" y="168">   </waypoint>
   <!-- # 121 --><waypoint x="7795" z="1379" y="168">skipper();   </waypoint>
   <!-- # 122 --><waypoint x="7792" z="1442" y="168">              </waypoint>                       
   <!-- # 223 --><waypoint x="7772" z="1497" y="168">skipper();   </waypoint>
   <!-- # 224 --><waypoint x="7753" z="1589" y="168">   </waypoint>
   <!-- # 225 --><waypoint x="7721" z="1734" y="168">   </waypoint>
   <!-- # 226 --><waypoint x="7696" z="1857" y="168">   </waypoint>
   <!-- # 227 --><waypoint x="7678" z="1996" y="168">   </waypoint>
   <!-- # 228 --><waypoint x="7629" z="2153" y="168">   </waypoint>
   <!-- # 229 --><waypoint x="7606" z="2286" y="168">   </waypoint>
   <!-- # 230 --><waypoint x="7612" z="2378" y="168">   </waypoint>
   <!-- # 231 --><waypoint x="7701" z="2527" y="168">skipper();   </waypoint>
   <!-- # 232 --><waypoint x="7582" z="2597" y="168">   </waypoint>
   <!-- # 233 --><waypoint x="7469" z="2653" y="168">   </waypoint>
   <!-- # 234 --><waypoint x="7375" z="2701" y="168">   </waypoint>
   <!-- # 235 --><waypoint x="7462" z="2767" y="168">   </waypoint>
   <!-- # 236 --><waypoint x="7573" z="2835" y="168">   </waypoint>
   <!-- # 238 --><waypoint x="7577" z="2838" y="168">skipper();   </waypoint>
   <!-- # 276 --><waypoint x="7554" z="2678" y="168" tag="checkpoint">     
   __WPL:setForcedWaypointType("RUN")
   killstatus = getQuestStatus(killquest);
   if killstatus == "complete" then
         -- go back to npc
         __WPL:setDirection(WPT_BACKWARD);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   if killstatus == "incomplete" then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   </waypoint>
</waypoints>
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#13 Post by newton666 »

ok new problem it use the daily reset then runs off with out selecting the quest??? help
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: how do you use daily reset tickets in a macro?

#14 Post by rock5 »

Maybe you should show us what your code looks like now.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#15 Post by newton666 »

here is my waypoint

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
   local dailycomplete_ptr = 0x9CB190;
   local dailycomplete_offset = 0xACF4;
   
   function getDailyComplete()
      return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset);
   end
   
   function checkDQCount()
      local _tmpQC = getDailyComplete();
      cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
      if (_tmpQC == 10) then
         cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
         keyboardPress(key.VK_F10);  yrest(555);
       end
   end
   
   killquest = RoMScript("TEXT('Sys424181_name')"); yrest(500) -- ie. catch butterflys
   
   function skipper()
      local killstatus = getQuestStatus(killquest);
         if killstatus == "complete" then
            __WPL:setForcedWaypointType("RUN")
         end
   end
   </onLoad>
   
   <!-- #  1 --><waypoint x="6426" z="5429" y="156">
      __WPL:setDirection(WPT_FORWARD);
      checkDQCount();
      player:target_NPC("Robbie Butcher");
      CompleteQuestByName(killquest);
      AcceptQuestByName(killquest);
      __WPL:setForcedWaypointType("NORMAL");
         player:mount();
         player:rest(1);
   </waypoint>
      <!-- #  2 --><waypoint x="6426" z="5429" y="156" type ="RUN">

         inventory:update();
         player:update();

         -- note #202434 is the daily reset card
   local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
   if 10 == dailyQuestCount then
      if inventory:itemTotalCount(202434) >= 1 then
                   inventory:useItem(202434);
      else
         printf("No Daily Reset Cards left!\n")
         player:sleep();      
      end
   end

   printf("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Left " .. dailyQuestsPerDay - dailyQuestCount .. " Quests.");

   </waypoint>
   <!-- #  3 --><waypoint x="6321" z="4918" y="168">   </waypoint>
   <!-- #  4 --><waypoint x="6366" z="4740" y="168">   </waypoint>
   <!-- #  5 --><waypoint x="6397" z="4607" y="168">   </waypoint>
   <!-- #  6 --><waypoint x="6422" z="4501" y="168">   </waypoint>
   <!-- #  7 --><waypoint x="6448" z="4391" y="168">   </waypoint>
   <!-- #  8 --><waypoint x="6474" z="4281" y="168">   </waypoint>
   <!-- #  9 --><waypoint x="6497" z="4187" y="168">   </waypoint>
   <!-- # 10 --><waypoint x="6541" z="3998" y="190">   </waypoint>
   <!-- # 11 --><waypoint x="6541" z="3998" y="190">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 12 --><waypoint x="6606" z="3775" y="158">   </waypoint>
   <!-- # 13 --><waypoint x="6697" z="3762" y="158">   </waypoint>
   <!-- # 14 --><waypoint x="6834" z="3795" y="158">   </waypoint>
   <!-- # 15 --><waypoint x="6976" z="3723" y="158">   </waypoint>
   <!-- # 16 --><waypoint x="7047" z="3606" y="163">   </waypoint>
   <!-- # 17 --><waypoint x="7060" z="3472" y="176">   </waypoint>
   <!-- # 18 --><waypoint x="7101" z="3226" y="176">   </waypoint>
   <!-- # 19 --><waypoint x="7101" z="3226" y="176">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 20 --><waypoint x="7239" z="3184" y="176">   </waypoint>
   <!-- # 21 --><waypoint x="7373" z="3210" y="168">   </waypoint>
   <!-- # 22 --><waypoint x="7332" z="3342" y="168">   </waypoint>
   <!-- # 23 --><waypoint x="7456" z="3352" y="168">   </waypoint>
   <!-- # 24 --><waypoint x="7495" z="3180" y="168">   </waypoint>
   <!-- # 25 --><waypoint x="7634" z="3203" y="168">   </waypoint>
   <!-- # 26 --><waypoint x="7643" z="3072" y="168">   </waypoint>
   <!-- # 27 --><waypoint x="7545" z="3043" y="168">   </waypoint>
   <!-- # 28 --><waypoint x="7574" z="2894" y="168">   </waypoint>
   <!-- # 29 --><waypoint x="7579" z="2874" y="168">   </waypoint>
   <!-- # 30 --><waypoint x="7579" z="2874" y="168">         
                        player:mount();
         player:rest(1);
   </waypoint>
   <!-- # 38 --><waypoint x="7568" z="2817" y="168" tag="pointofreturn">   </waypoint>
        <!-- #  41 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  42 --><waypoint x="7572" z="2906" y="168">   </waypoint>
   <!-- #  43 --><waypoint x="7506" z="2775" y="168">   </waypoint>
   <!-- #  44 --><waypoint x="7406" z="2754" y="168">   </waypoint>
   <!-- #  45 --><waypoint x="7429" z="2681" y="168">   </waypoint>
   <!-- #  46 --><waypoint x="7532" z="2637" y="168">   </waypoint>
   <!-- #  47 --><waypoint x="7638" z="2596" y="168">skipper();   </waypoint>
   <!-- #  48 --><waypoint x="7640" z="2530" y="168">   </waypoint>
   <!-- #  49 --><waypoint x="7601" z="2413" y="168">   </waypoint>
   <!-- # 110 --><waypoint x="7582" z="2350" y="168">   </waypoint>
   <!-- # 111 --><waypoint x="7599" z="2248" y="168">   </waypoint>
   <!-- # 112 --><waypoint x="7625" z="2141" y="168">   </waypoint>
   <!-- # 113 --><waypoint x="7667" z="2036" y="168">   </waypoint>
   <!-- # 114 --><waypoint x="7683" z="1992" y="168">   </waypoint>
   <!-- # 115 --><waypoint x="7710" z="1846" y="168">   </waypoint>
   <!-- # 116 --><waypoint x="7735" z="1706" y="168">skipper();   </waypoint>
   <!-- # 117 --><waypoint x="7798" z="1651" y="168">   </waypoint>
   <!-- # 118 --><waypoint x="7908" z="1524" y="168">   </waypoint>
   <!-- # 119 --><waypoint x="7944" z="1410" y="168">   </waypoint>
   <!-- # 120 --><waypoint x="7876" z="1387" y="168">   </waypoint>
   <!-- # 121 --><waypoint x="7795" z="1379" y="168">skipper();   </waypoint>
   <!-- # 122 --><waypoint x="7792" z="1442" y="168">              </waypoint>                       
   <!-- # 223 --><waypoint x="7772" z="1497" y="168">skipper();   </waypoint>
   <!-- # 224 --><waypoint x="7753" z="1589" y="168">   </waypoint>
   <!-- # 225 --><waypoint x="7721" z="1734" y="168">   </waypoint>
   <!-- # 226 --><waypoint x="7696" z="1857" y="168">   </waypoint>
   <!-- # 227 --><waypoint x="7678" z="1996" y="168">   </waypoint>
   <!-- # 228 --><waypoint x="7629" z="2153" y="168">   </waypoint>
   <!-- # 229 --><waypoint x="7606" z="2286" y="168">   </waypoint>
   <!-- # 230 --><waypoint x="7612" z="2378" y="168">   </waypoint>
   <!-- # 231 --><waypoint x="7701" z="2527" y="168">skipper();   </waypoint>
   <!-- # 232 --><waypoint x="7582" z="2597" y="168">   </waypoint>
   <!-- # 233 --><waypoint x="7469" z="2653" y="168">   </waypoint>
   <!-- # 234 --><waypoint x="7375" z="2701" y="168">   </waypoint>
   <!-- # 235 --><waypoint x="7462" z="2767" y="168">   </waypoint>
   <!-- # 236 --><waypoint x="7573" z="2835" y="168">   </waypoint>
   <!-- # 238 --><waypoint x="7577" z="2838" y="168">skipper();   </waypoint>
   <!-- # 276 --><waypoint x="7554" z="2678" y="168" tag="checkpoint">     
   __WPL:setForcedWaypointType("RUN")
   killstatus = getQuestStatus(killquest);
   if killstatus == "complete" then
         -- go back to npc
         __WPL:setDirection(WPT_BACKWARD);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   if killstatus == "incomplete" then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("pointofreturn"));
   end
   </waypoint>
</waypoints>
if u can help it would be great.
As i said before after 10 dailys it use the dialy reset ticket and then dosn't take the quest from the npc and then carry's on with the way point.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: how do you use daily reset tickets in a macro?

#16 Post by rock5 »

You're checking your quest count before completing the quest. So it sees you have completed 9 so it completes the quest then tries to accept it again, then continues. Try putting the quest check between the complete and accept commands.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
newton666
Posts: 81
Joined: Fri Oct 22, 2010 3:16 pm

Re: how do you use daily reset tickets in a macro?

#17 Post by newton666 »

not sure what u mean im new at this .So can edite the last why point i posted
Thankyou very much :)
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: how do you use daily reset tickets in a macro?

#18 Post by rock5 »

I mean change these lines of waypoint #1

Code: Select all

      checkDQCount();
      player:target_NPC("Robbie Butcher");
      CompleteQuestByName(killquest);
      AcceptQuestByName(killquest);
To this

Code: Select all

      player:target_NPC("Robbie Butcher");
      CompleteQuestByName(killquest);
      checkDQCount();
      AcceptQuestByName(killquest);
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
svizzera
Posts: 5
Joined: Sat Sep 10, 2011 8:25 pm

Re: how do you use daily reset tickets in a macro?

#19 Post by svizzera »

I tried this one out with the improvement from the last post but it it keeps on unmounting and attacking dogs instead of riding straight to the butterfly place.
also it starts to attack the flower in the near of the quest npc which doesnt have to be.

are there better waypoints around or could somebody help improve this one?
Post Reply