Daily Quest Remaining

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Daily Quest Remaining

#1 Post by Guest1234 » Sat Jan 28, 2012 11:21 am

I have a Waypoint setup to work with cot_tele.

It checks if my mule has enough Phirius Token Coins, if not, it goes to farm dailies.
When Dailies are done, it goes back to Varanas and loads cot_tele.

My problem is it craps out when it checks daily count.
I took the code from another waypoint file on this forum, forgot which one, apologies to original author for not being able to give credit...

On onLoad, it gets (or tries) dailies quest count.

Code: Select all

	<onLoad>
		local dailycomplete_ptr = 0x9CD1E0
		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))
		end
	</onLoad>
and then, when turning in quests

Code: Select all

		sendMacro("CompleteQuest()");
		checkDQCount()
		player:update()
		if 10 > getDailyComplete() then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Billboard"))
		else 
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Back"))
		end
I get error message, compared to a nil value.
I'm thinking I have the wrong address / offset.

Couldn't find it in addresses.lua either.

Thanks for your help.

Shogun
Posts: 45
Joined: Wed Jul 27, 2011 6:08 am

Re: Daily Quest Remaining

#2 Post by Shogun » Sat Jan 28, 2012 12:42 pm

Origin is from the CoT script. Replace like this:

Code: Select all

		function getDailyComplete()
			--[[
			local dailycomplete_ptr = 0x9CD1E0
			local dailycomplete_offset = 0xACF4
			return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset)
			--]]

			local dailyQuestCount, dailyQuestsPerDay;
			repeat dailyQuestCount, dailyQuestsPerDay = RoMScript("Daily_count()") until nil ~= dailyQuestCount and nil ~= dailyQuestsPerDay
			return dailyQuestCount;
		end

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Daily Quest Remaining

#3 Post by Guest1234 » Sat Jan 28, 2012 2:32 pm

Trying that now, thx.

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Daily Quest Remaining

#4 Post by Guest1234 » Sat Jan 28, 2012 2:35 pm

I lied, gonna have to try it out tomorrow.

Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Daily Quest Remaining

#5 Post by Guest1234 » Sun Jan 29, 2012 12:48 pm

Tried it, works like a charm.

Thanks !

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests