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>
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'm thinking I have the wrong address / offset.
Couldn't find it in addresses.lua either.
Thanks for your help.