Butterfly daily with resets script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
bruenor9
Posts: 59
Joined: Sun Feb 05, 2012 11:42 pm

Butterfly daily with resets script

#1 Post by bruenor9 » Thu May 24, 2012 5:21 pm

Anyone have this? I got 100 resets to burn and want to do butterfly.

Or a way to implement it?

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

Re: Butterfly daily with resets script

#2 Post by rock5 » Fri May 25, 2012 12:15 am

It's not just a reset script you are after like the other topic you posted in because you have to go kill the butterflies. So what you want is a butterflies script with daily reset code inserted. Do you have a butterflies script? If so it will be easy to insert the reset 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

bruenor9
Posts: 59
Joined: Sun Feb 05, 2012 11:42 pm

Re: Butterfly daily with resets script

#3 Post by bruenor9 » Fri May 25, 2012 4:57 pm

http://www.solarstrike.net/phpBB3/viewt ... =27&t=3394

I need it implemented in that got like 150 resets to burn :P

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

Re: Butterfly daily with resets script

#4 Post by rock5 » Fri May 25, 2012 11:23 pm

I'm not sure which script you are using, there are a few on that thread. There are even some that supposedly do resets too. Have you tried those?
  • 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

bruenor9
Posts: 59
Joined: Sun Feb 05, 2012 11:42 pm

Re: Butterfly daily with resets script

#5 Post by bruenor9 » Sat May 26, 2012 2:25 pm

whic one works with resets? and first one the post will work

User avatar
grande
Posts: 261
Joined: Tue Jun 28, 2011 4:46 pm

Re: Butterfly daily with resets script

#6 Post by grande » Sat May 26, 2012 8:45 pm

I got you bru. It's as simple as changing part of the /onload section of the xaveria daily script. Do a text search for checkDQCount and then make it look like the below in the /onload portion of the waypoint file. Now, instead of loggin you out when you have completed 10 dailies it will use your daily reset ticket. Hope it works out for you.

Code: Select all

		function checkDQCount()
			local _tmpQC = getDailyComplete();
			cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
			if (_tmpQC == 10) then
			inventory:useItem(202434);
			yrest(2000);
			end
		end
Edit.. oh yeah, this is from a wp that expects you to be strong enough to complete killing mobs quests. works for me... good luck. Looks like you are trying to butterflies which also have a check for 10 daily quests. If you just read what is happening you should see where to interject the "inventory:useItem(202434);" and yrest(2000); after for good measure. So there's a part where it says something like

Code: Select all

	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
After the if "10 == dailyQuestCount then"
you could interject "inventory:useItem(202434);" and "yrest(2000);" instead of printf... and error...

bruenor9
Posts: 59
Joined: Sun Feb 05, 2012 11:42 pm

Re: Butterfly daily with resets script

#7 Post by bruenor9 » Sat May 26, 2012 9:09 pm

I guess I am strong enough to kill the flies so I can use one of em.

You have one I can use?

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Butterfly daily with resets script

#8 Post by kuripot » Fri Jun 01, 2012 9:05 am

put in your onload of the waypoint

Code: Select all

	   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, trying to use a daily reset card.\n");
	         inventory:update();
	         player:update();
	         -- note #202434 is the daily reset card
	            if inventory:itemTotalCount(202434) > 0 then
	                  inventory:useItem(202434);
	         else
			player:sleep();
	            end
	       end   
	   end
then in waypoint

Code: Select all

	<!-- #  1 --><waypoint x="6408" z="5411" y="170">
	__WPL:setForcedWaypointType("TRAVEL")
	player:target_NPC("Robbie Butcher");
	AcceptQuestByName("Catch Butterflies");
	         local dqCount, dqPerDay = RoMScript("Daily_count()");
	     if dqCount == 10 then
		checkDQCount()
	         else
	               player:target_NPC("Robbie Butcher");
	               AcceptQuestByName("Catch Butterflies")
	          end

	</waypoint>
i also put in last waypoint of butterfly to make it sure i dont miss

Code: Select all

	<!-- # 65 --><waypoint x="6416" z="5403" y="174">
         queststate = getQuestStatus("Catch Butterflies");
          if queststate == "complete" then
               player:target_NPC("Robbie Butcher");
           CompleteQuestByName("Catch Butterflies")
		   end
         local dqCount, dqPerDay = RoMScript("Daily_count()");
	     if dqCount == 10 then
		checkDQCount()
	         else
	               player:target_NPC("Robbie Butcher");
	               AcceptQuestByName("Catch Butterflies")
	          end
	</waypoint>

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: Butterfly daily with resets script

#9 Post by AngelDrago » Sat Jun 23, 2012 7:23 am

I also notice on this script once the 10 dailies are finished it will go log me out and it goes to the Character selection is there a way i can change it so it checks with my backpack if i have daily resets for this and than execute the daily resets to start over again.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Butterfly daily with resets script

#10 Post by lisa » Sat Jun 23, 2012 8:33 am

If you have another char doing the killing then just use these, they go to different spots and wait til quest is complete and then head to NPC, uses daily reset tickets if you have any.

Once you run out of tickets it will just go to sleep at the NPC.
Attachments
buttleach1.xml
(1.28 KiB) Downloaded 440 times
buttleach.xml
(1.78 KiB) Downloaded 378 times
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

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: Butterfly daily with resets script

#11 Post by AngelDrago » Sun Jun 24, 2012 12:24 am

Thx Lisa... that will work as well but i don't have an alt at this moment but i do would like to know id their is a way to add the additional function to the script above as that one is perfect for me.

This is what i would like to do.
Remove the character selection after the 10 dailies has been done and not to log-off, and to add a search or check function to see if i have reset tickets in my Item Shop Bag or Backpack.

Thx for the help

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: Butterfly daily with resets script

#12 Post by AngelDrago » Sun Jun 24, 2012 2:56 am

got it figured out sometimes i need to read what it say's thanks again for all the help everyone

chesterfield
Posts: 34
Joined: Thu Feb 16, 2012 4:03 am

Re: Butterfly daily with resets script

#13 Post by chesterfield » Wed Oct 23, 2013 6:10 am

lisa wrote:If you have another char doing the killing then just use these, they go to different spots and wait til quest is complete and then head to NPC, uses daily reset tickets if you have any.

Once you run out of tickets it will just go to sleep at the NPC.

my addon " dailynotes have nothing catch butterflies" !

wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

Re: Butterfly daily with resets script

#14 Post by wishblades » Sat Jun 18, 2016 3:48 am

How do I put a daily reset in this code?

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">

<waypoints><!-- MountSpeedhack -->
<onLoad>
RoMScript("DEFAULT_CHAT_FRAME:AddMessage('|cffffff00MountSpeedhack: "Horse" Press key.CTRL to ACTIVATE! or DEactivate.|r')")
repeat
while not keyPressedLocal(key.VK_CONTROL) do yrest(100); end;
MountSpeedHack();
RoMScript("DEFAULT_CHAT_FRAME:AddMessage('|cffffff00MountSpeedhack: ACTIVATED!|r')")
yrest(1500);

while not keyPressedLocal(key.VK_CONTROL) do yrest(100); end;
MountSpeedoff();
RoMScript("DEFAULT_CHAT_FRAME:AddMessage('|cffffff00MountSpeedhack: DEactivated.|r')")
yrest(1500);
until false

startjParty();
startGMDetect()
while (true) do
yrest(100);
end;

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

--== User Option ==--

Deliver = 0 -- Change if you want to enable/disable deliver quests 0=disable, any number = deliver after that amount of eggs (must b bigger than 9)
LagTime = 0 -- Affects accepting/completing quests. Increase LagTime if time is wasted by repeated CompleteQuests or AcceptQuests.
RunningSpeed = 59 -- The speed the character runs when not teleporting. 50 is normal. Recommended 100.
UseTeleporter = false -- Use Jduratedj's teleport userfunction. Please make sure you have it installed to use this option.
Timeout = 300 -- Time hens and eggs stay in the ignore list before being given another chance. '0' disables it, remains permanently in ignore list.
debugging = true -- Set to true to display extra useful information regarding egg drop rates and ignore lists.

--=================--

-- Apply speed hack
local playerAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
if playerAddress ~= 0 then
memoryWriteFloat(getProc(), playerAddress + 0x40, RunningSpeed);
end
</onLoad>
</waypoints>

<!-- # 1 --><waypoint x="6414" z="5468" y="159">
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
</waypoint>
<!-- # 4 --><waypoint x="6339" z="4882" y="182">
player:mount("Horse");
__WPL:setForcedWaypointType("TRAVEL")
</waypoint>
<!-- # 5 --><waypoint x="6435" z="4451" y="182"> </waypoint>
<!-- # 6 --><waypoint x="6503" z="4201" y="182"> </waypoint>
<!-- # 7 --><waypoint x="6530" z="4085" y="204"> </waypoint>
<!-- # 8 --><waypoint x="6551" z="3997" y="204"> </waypoint>
<!-- # 10 --><waypoint x="6572" z="3904" y="204"> </waypoint>
<!-- # 11 --><waypoint x="6605" z="3765" y="172"> </waypoint>
<!-- # 12 --><waypoint x="6834" z="3592" y="173"> </waypoint>
<!-- # 13 --><waypoint x="7031" z="3445" y="190"> </waypoint>
<!-- # 1 --><waypoint x="7135" z="3174" y="190"> </waypoint>
<!-- # 3 --><waypoint x="7360" z="3209" y="182"> </waypoint>
<!-- # 4 --><waypoint x="7342" z="3323" y="181"> </waypoint>
<!-- # 5 --><waypoint x="7449" z="3364" y="181"> </waypoint>
<!-- # 6 --><waypoint x="7514" z="3167" y="182"> </waypoint>
<!-- # 7 --><waypoint x="7631" z="3176" y="181"> </waypoint>
<!-- # 8 --><waypoint x="7662" z="3082" y="182"> </waypoint>
<!-- # 9 --><waypoint x="7555" z="3034" y="181"> </waypoint>
<!-- # 10 --><waypoint x="7541" z="3054" y="181">
queststate = getQuestStatus("Catch Butterflies")
if queststate == "complete" then
__WPL:setDirection(WPT_BACKWARD);
else
__WPL:setForcedWaypointType("NORMAL")
__WPL:setWaypointIndex(__WPL:findWaypointTag("one"));
end
</waypoint>
<!-- # 12 --><waypoint x="7610" z="2659" tag ='one'> </waypoint>
<!-- # 13 --><waypoint x="7662" z="2315" y="182"> </waypoint>
<!-- # 14 --><waypoint x="7646" z="2063" y="182">player:mount(); </waypoint>
<!-- # 15 --><waypoint x="7416" z="2033" y="177">player:mount(); </waypoint>
<!-- # 16 --><waypoint x="7104" z="2209" y="176">player:mount(); </waypoint>
<!-- # 17 --><waypoint x="6914" z="2155" y="176">player:mount(); </waypoint>
<!-- # 18 --><waypoint x="6911" z="2450" y="182">player:mount(); </waypoint>
<!-- # 19 --><waypoint x="7425" z="2660" y="181">
queststate = getQuestStatus("Catch Butterflies")
if queststate == "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("two"));
else
__WPL:setForcedWaypointType("TRAVEL")
__WPL:setWaypointIndex(__WPL:findWaypointTag("three"));
end
</waypoint>
<!-- # 21 --><waypoint x="7400" z="2656" tag ='two'> </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">player:mount(); </waypoint>
<!-- # 25 --><waypoint x="6356" z="1784" y="182">player:mount(); </waypoint>
<!-- # 26 --><waypoint x="6537" z="1786" y="181">player:mount(); </waypoint>
<!-- # 27 --><waypoint x="6689" z="1788" y="178">player:mount(); </waypoint>
<!-- # 28 --><waypoint x="6769" z="1995" y="177">player:mount(); </waypoint>
<!-- # 29 --><waypoint x="6927" z="2180" y="177">player:mount(); </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
__WPL:setWaypointIndex(__WPL:findWaypointTag("three"));
else
__WPL:setForcedWaypointType("TRAVEL")
__WPL:setWaypointIndex(__WPL:findWaypointTag("one"));
end
</waypoint>
<!-- # 33 --><waypoint x="7610" z="2722" tag ='three'> </waypoint>
<!-- # 34 --><waypoint x="7534" z="3036" y="181">player:mount(); </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">player:mount(); </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">player:mount(); </waypoint>
<!-- # 42 --><waypoint x="7031" z="3498" y="189"> </waypoint>
<!-- # 43 --><waypoint x="6621" z="3769" y="173">player:mount(); </waypoint>
<!-- # 44 --><waypoint x="6558" z="3958" y="203">player:mount(); </waypoint>
<!-- # 45 --><waypoint x="6474" z="4284" y="182"> </waypoint>
<!-- # 46 --><waypoint x="6320" z="4903" y="181">player:mount(); </waypoint>
<!-- # 47 --><waypoint x="6350" z="5072" y="182"> </waypoint>
<!-- # 48 --><waypoint x="6427" z="5398" y="177">
queststate = getQuestStatus("Catch Butterflies");
if queststate == "complete" then
player:target_NPC("Robbie Butcher");
CompleteQuestByName("Catch Butterflies")
end
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount == 10 then
sendMacro("LeaveParty();")
player:sleep();
else
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies")
end
</waypoint>
</waypoints>

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

Re: Butterfly daily with resets script

#15 Post by beanybabe » Sat Jun 18, 2016 8:16 am

local dqCount, dqPerDay = RoMScript("Daily_count()");

inventory:update(); -- putting these 5 lines in may work
player:update();
if inventory:itemTotalCount(202434) > 0 then
inventory:useItem(202434);
end

if dqCount == 10 then
sendMacro("LeaveParty();")
player:sleep();
else
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies")
end

wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

Re: Butterfly daily with resets script

#16 Post by wishblades » Sat Jun 18, 2016 9:03 am

Nope, that started using Daily Resets after turning in every daily. :(

wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

Re: Butterfly daily with resets script

#17 Post by wishblades » Sat Jun 18, 2016 10:56 am

I moved the code inside the IF statement:

local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount == 10 then

inventory:update(); -- putting these 5 lines in may work
player:update();
if inventory:itemTotalCount(202434) > 0 then
inventory:useItem(202434);
end

player:sleep();
else
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies")
end


Now it resets BUT goes to sleep right afterwards. :(

wishblades
Posts: 36
Joined: Fri Aug 31, 2012 4:31 pm

Re: Butterfly daily with resets script

#18 Post by wishblades » Sat Jun 18, 2016 11:08 am

Thinking, if I move the END statement to this, it SHOULD work but not sure how it's gonna end when I run out of resets then.....

local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount == 10 then

inventory:update(); -- putting these 5 lines in may work
player:update();
if inventory:itemTotalCount(202434) > 0 then
inventory:useItem(202434);
end
end


player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies")

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Butterfly daily with resets script

#19 Post by lisa » Sat Jun 18, 2016 4:59 pm

Code: Select all

local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqCount == 10 then

player:update();
if inventory:itemTotalCount(202434) > 0 then 
inventory:useItem(202434);
else
sendMacro("LeaveParty();")
player:sleep();
end


else
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies")
end
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

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

Re: Butterfly daily with resets script

#20 Post by beanybabe » Sat Jun 18, 2016 9:07 pm

That speed hack may cause problems I would comment it out or you might rubber band.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 27 guests