Butterfly daily don't work

Talk about anything in Runes of Magic. This does not need to pertain to botting.
Post Reply
Message
Author
Beginner42
Posts: 1
Joined: Mon Jul 07, 2014 6:51 am

Butterfly daily don't work

#1 Post by Beginner42 » Mon Jul 07, 2014 7:25 am

Hey Community

First I am a totally Beginner in using micromacro ^^
i have searched for a script for the daily "Catch Butterflies" in Xaviera but i didn't found any working one :(
So i tried to write a one script based on the others i have found.
But there are some problems with scipt. Some errors i was able to fix but know there is one i don't understand and i think there are some more:(
Could somebody please look throw the script and tell me what i did wrong? :)

here is the script code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints >
<onLoad>
	
   function checkDQCount()
    local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()")
      cprintf(cli.lightblue,"%s quests completed.\n",tostring(dailyQuestCount));
      if (dailyQuestCount == 10) then
        cprintf(cli.lightblue,"Completed max number of daily quests");
        sendMacro("LeaveParty();")
		player:sleep();
       end   
   end

	function quest()
	   local queststate = getQuestStatus("Catch Butterflies")
	   if queststate == "complete" then
	player:mount();
	      __WPL:setForcedWaypointType("TRAVEL")
	   end
	end
</onLoad>


	<!-- #  1 --><waypoint x="6414" z="5468" y="159" tag ='one'>
	checkDQCount()
	local queststate = getQuestStatus("Catch Butterflies")
	if queststate == "complete" then
		 player:mount();
		 __WPL:setForcedWaypointType("TRAVEL");
		 player:target_NPC("Robbie Butcher");
		 CompleteQuestByName("Catch Butterflies");
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("one"));
		 end
		 else
			 player:mount();
			 __WPL:setForcedWaypointType("TRAVEL")
			 player:target_NPC("Robbie Butcher");
			 AcceptQuestByName("Catch Butterflies");
					 local dqCount, dqPerDay = RoMScript("Daily_count()");
				 if dqCount == 10 then
				 checkDQCount()
				 __WPL:setWaypointIndex(__WPL:findWaypointTag("next"))
	</waypoint>
	<!-- #  2 --><waypoint x="6435" z="4451" y="182" tag ='next'>	</waypoint> 
	<!-- #  3 --><waypoint x="6503" z="4201" y="182">	</waypoint>
	<!-- #  4 --><waypoint x="6530" z="4085" y="204">	</waypoint>
	<!-- #  5 --><waypoint x="6551" z="3997" y="204">	</waypoint>
	<!-- #  6 --><waypoint x="6572" z="3904" y="204">	</waypoint>
	<!-- #  7 --><waypoint x="6605" z="3765" y="172">	</waypoint>
	<!-- #  8 --><waypoint x="6834" z="3592" y="173">	</waypoint>
	<!-- #  9 --><waypoint x="7031" z="3445" y="190">	</waypoint>
	<!-- #  10 --><waypoint x="7135" z="3174" y="190">	</waypoint>
	<!-- #  11 --><waypoint x="7360" z="3209" y="182">	</waypoint>
	<!-- #  12 --><waypoint x="7342" z="3323" y="181">	</waypoint>
	<!-- #  13 --><waypoint x="7449" z="3364" y="181">	</waypoint>
	<!-- #  14 --><waypoint x="7514" z="3167" y="182">	</waypoint>
	<!-- #  15 --><waypoint x="7631" z="3176" y="181">	</waypoint>
	<!-- #  16 --><waypoint x="7662" z="3082" y="182">	</waypoint>
	<!-- #  17 --><waypoint x="7555" z="3034" y="181">	</waypoint>
	<!-- # 18 --><waypoint x="7541" z="3054" y="181">	</waypoint>
	<!-- # 19 --><waypoint x="7610" z="2659" tag ='two'>	</waypoint>
	<!-- # 50 --><waypoint x="7662" z="2315" y="182">	</waypoint>
	<!-- # 51 --><waypoint x="7646" z="2063" y="182">	</waypoint>
	<!-- # 52 --><waypoint x="7416" z="2033" y="177">	</waypoint>
	<!-- # 53 --><waypoint x="7104" z="2209" y="176">	</waypoint>
	<!-- # 54 --><waypoint x="6914" z="2155" y="176">	</waypoint>
	<!-- # 55 --><waypoint x="6911" z="2450" y="182">	</waypoint>
	<!-- # 56 --><waypoint x="7425" z="2660" y="181">
		queststate = getQuestStatus("Catch Butterflies")
		if queststate == "complete" then
				--use self killing macro(for example skill 1) and
				--__WPL:setWaypointIndex(__WPL:findWaypointTag("one"))
				--or:
				__WPL:setDirection(WPT_BACKWARD);
			else
				__WPL:setWaypointIndex(__WPL:findWaypointTag("three"))
				__WPL:setForcedWaypointType("FIGHT");
				end 		
			</waypoint>
			<!-- # 21 --><waypoint x="7400" z="2656" tag ='three'>	</waypoint>
			<!-- # 22 --><waypoint x="6991" z="2577" y="181">	</waypoint>
			<!-- # 23 --><waypoint x="6211" z="2389" y="181">	</waypoint>
			<!-- # 24 --><waypoint x="6261" z="2211" y="182">	</waypoint>
			<!-- # 25 --><waypoint x="6356" z="1784" y="182">	</waypoint>
			<!-- # 26 --><waypoint x="6537" z="1786" y="181">	</waypoint>
			<!-- # 27 --><waypoint x="6689" z="1788" y="178">	</waypoint>
			<!-- # 28 --><waypoint x="6769" z="1995" y="177">	</waypoint>
			<!-- # 29 --><waypoint x="6927" z="2180" y="177">	</waypoint>
			<!-- # 30 --><waypoint x="7015" z="2507" y="181">	</waypoint>
			<!-- # 31 --><waypoint x="7611" z="2707" y="182">
				queststate = getQuestStatus("Catch Butterflies")
				if queststate == "complete" then
						--use self killing macro(for example skill 1) and
						--__WPL:setWaypointIndex(__WPL:findWaypointTag("one"))
						--or:
						--(__WPL:setDirection(WPT_BACKWARD);)dont know whether it works like this  ??
						__WPL:setWaypointIndex(__WPL:findWaypointTag("four"))
					else
						__WPL:setWaypointIndex(__WPL:findWaypointTag("three"))
						end 
						
			</waypoint>
			<!-- # 33 --><waypoint x="7610" z="2722" tag ='four'>	</waypoint>
			<!-- # 34 --><waypoint x="7534" z="3036" y="181">	</waypoint>
			<!-- # 35 --><waypoint x="7638" z="3073" y="182">	</waypoint>
			<!-- # 36 --><waypoint x="7629" z="3177" y="182">	</waypoint>
			<!-- # 37 --><waypoint x="7523" z="3183" y="182">	</waypoint>
			<!-- # 38 --><waypoint x="7471" z="3355" y="181">	</waypoint>
			<!-- # 39 --><waypoint x="7348" z="3326" y="182">	</waypoint>
			<!-- # 40 --><waypoint x="7366" z="3204" y="182">	</waypoint>
			<!-- # 41 --><waypoint x="7140" z="3172" y="189">	</waypoint>
			<!-- # 42 --><waypoint x="7031" z="3498" y="189">	</waypoint>
			<!-- # 43 --><waypoint x="6621" z="3769" y="173">	</waypoint>
			<!-- # 44 --><waypoint x="6558" z="3958" y="203">	</waypoint>
			<!-- # 45 --><waypoint x="6474" z="4284" y="182">	</waypoint>
			<!-- # 46 --><waypoint x="6320" z="4903" y="181">	</waypoint>
			<!-- # 47 --><waypoint x="6350" z="5072" y="182">	</waypoint>
			<!-- # 48 --><waypoint x="6427" z="5398" y="177">
				__WPL:setWaypointIndex(__WPL:findWaypointTag("one"))
			</waypoint>		

</waypoints>
Sorry for my bad English :(



greetings Beginner42

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: Butterfly daily don't work

#2 Post by beanybabe » Fri Aug 15, 2014 12:27 am

here is one I made that works but its not flawless you might tune it up some.



Code: Select all

<!-- #  1 --><waypoint x="6420" z="5417" >	
		local empties = inventory:itemTotalCount(0);
		if 1 > empties then
			-- Wait for user to make some space in inventory.
			cprintf(cli.yellow,"Not much space left in inventory. Are you sure you want to continue with only %d spaces left?\n",empties)
			player:sleep();
		end;
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies");
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount == 10 then
sendMacro("LeaveParty();")
player:sleep();
else
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies")
end


__WPL:setForcedWaypointType("TRAVEL");
	player:mount()
	</waypoint>

	<!-- #  2 --><waypoint x="6362" z="4979">	</waypoint>
	<!-- #  3 --><waypoint x="6390" z="4850" >	</waypoint>
	<!-- #  4 --><waypoint x="6510" z="4604" >	</waypoint>
	<!-- #  5 --><waypoint x="6588" z="4559" y="178">	</waypoint>
	<!-- #  6 --><waypoint x="6628" z="4280" y="179">	</waypoint>
	<!-- #  7 --><waypoint x="6518" z="4161" y="182">	</waypoint>
	<!-- #  8 --><waypoint x="6521" z="3896" y="201">	</waypoint>
	<!-- #  9 --><waypoint x="6289" z="3716" y="179">	</waypoint>
	<!-- # 10 --><waypoint x="6171" z="3524" y="178">	</waypoint>
	<!-- # 11 --><waypoint x="6158" z="3418" y="179">	</waypoint>
	<!-- # 12 --><waypoint x="6291" z="3294" y="187">	</waypoint>
	<!-- # 13 --><waypoint x="6379" z="3130" y="186">	</waypoint>
	<!-- # 14 --><waypoint x="6393" z="2799" y="179">	</waypoint>
	<!-- # 15 --><waypoint x="6342" z="2752" y="179">	</waypoint>
	<!-- # 16 --><waypoint x="6172" z="2815" y="178">	</waypoint>
	<!-- # 17 --><waypoint x="6075" z="2827" y="178">	</waypoint>
	<!-- # 18 --><waypoint x="6123" z="2611" y="179">	</waypoint>
	<!-- # 19 --><waypoint x="6215" z="2439" y="179"> __WPL:setForcedWaypointType("NORMAL")	</waypoint>
	<!-- # 20 --><waypoint x="6389" z="2407">	</waypoint>
	<!-- # 22 --><waypoint x="6889" z="2417">	</waypoint>
	<!-- # 23 --><waypoint x="6889" z="2417" >	</waypoint>
	
	<!-- # 27 --><waypoint x="7027" z="2218" >	</waypoint>
	<!-- # 28 --><waypoint x="7010" z="2490" >	
	queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
__WPL:setForcedWaypointType("TRAVEL");
 player:mount();
else
end
</waypoint>
	<!-- # 29 --><waypoint x="7200" z="2590">	</waypoint>
	<!-- # 30 --><waypoint x="7427" z="2710" >	</waypoint>
	<!-- # 31 --><waypoint x="7627" z="2710" >	</waypoint>
	<!-- # 32 --><waypoint x="7627" z="2309" >
__WPL:setForcedWaypointType("TRAVEL");  player:mount();	</waypoint>
	<!-- # 33 --><waypoint x="7567" z="2433" >	</waypoint>
	
	--setWaypointIndex(__WPL:findWaypointTag("rideout"))
	
	
	<!-- # 34 --><waypoint x="7632" z="2580"> 	</waypoint>
	<!-- # 35 --><waypoint x="7557" z="2983" >	</waypoint>
	<!-- # 36 --><waypoint x="7592" z="3051" y="179">	</waypoint>
	<!-- # 37 --><waypoint x="7646" z="3151" y="179">	</waypoint>
	<!-- # 38 --><waypoint x="7592" z="3197" y="178">	</waypoint>
	<!-- # 39 --><waypoint x="7513" z="3165" y="179">	</waypoint>
	<!-- # 40 --><waypoint x="7433" z="3347" y="179">	</waypoint>
	<!-- # 41 --><waypoint x="7357" z="3330" y="179">	</waypoint>
	<!-- # 42 --><waypoint x="7365" z="3242" y="179">	</waypoint>
	<!-- # 43 --><waypoint x="7309" z="3191" y="179">	</waypoint>
	<!-- # 44 --><waypoint x="7171" z="3215" y="186">	</waypoint>
	<!-- # 45 --><waypoint x="6997" z="3469" y="187">	</waypoint>
	<!-- # 46 --><waypoint x="7167" z="3679" y="179">	</waypoint>
	<!-- # 47 --><waypoint x="6958" z="3866" y="179">	</waypoint>
	<!-- # 48 --><waypoint x="6760" z="3899" y="179">	</waypoint>
	<!-- # 49 --><waypoint x="6614" z="3761" y="169">	</waypoint>
	<!-- # 50 --><waypoint x="6565" z="3825" y="186">	</waypoint>
	<!-- # 51 --><waypoint x="6550" z="4035" y="200">	</waypoint>
	<!-- # 52 --><waypoint x="6457" z="4161" y="178">	</waypoint>
	<!-- # 53 --><waypoint x="6326" z="4242" >	</waypoint>
	<!-- # 54 --><waypoint x="6218" z="4717" >	</waypoint>
	<!-- # 55 --><waypoint x="6284" z="4761" >	</waypoint>
	<!-- # 56 --><waypoint x="6345" z="4937" >	</waypoint>
	<!-- # 57 --><waypoint  x="6420" z="5417" >  </waypoint>
</waypoints>

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Butterfly daily don't work

#3 Post by rock5 » Fri Aug 15, 2014 12:53 am

Please don't forget to use Code tags to quote code.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests