Page 1 of 1

DailyQuest Problem

Posted: Tue Aug 10, 2010 9:26 pm
by bussdee
I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675

Code: Select all

<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 == dqCount then
			loadPaths("daily.dalanis.streife.haus.xml");
	</waypoint>
found another post here like this, but wont work too

Code: Select all

	<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");		
			if (dqPerDay - dqCount) == 0 then
			loadPaths("daily.dalanis.streife.haus.xml");
	</waypoint>


anyone can help me pls ?

Re: DailyQuest Problem

Posted: Tue Aug 10, 2010 9:33 pm
by Valleyguy
bussdee wrote:I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675

Code: Select all

<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 == dqCount then
			loadPaths("daily.dalanis.streife.haus.xml");
	</waypoint>
anyone can help me pls ?
i'll give you a snippet of how i deal with dailies you can use that to mod to your change paths if you want...

Code: Select all

<onLoad> 	
		local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); 
		if 10 == dailyQuestCount then
		printf ("You've completed "..dailyQuestCount.." out of " .. dailyQuestsPerDay ..    " all done so quitting...")
		error("Bot finished", 0); -- Not really an error, but it will drop us back to shell.
		else
		printf("You've completed "..dailyQuestCount.." out of " .. dailyQuestsPerDay ..    " daily quests, leaving " .. dailyQuestsPerDay - dailyQuestCount .. " quests.");
		end
</onLoad>
instead of error("Bot finished", 0); you can change this instead to your path (this is after 10 runs of the daily is done)

Re: DailyQuest Problem

Posted: Tue Aug 10, 2010 9:36 pm
by VoidMain
bussdee wrote:I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675

Code: Select all

<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 == dqCount then
			loadPaths("daily.dalanis.streife.haus.xml");
	</waypoint>
anyone can help me pls ?
You just missing an "end" after the "if":

Code: Select all

<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 == dqCount then
			    loadPaths("daily.dalanis.streife.haus.xml");
                        end;
	</waypoint>

Re: DailyQuest Problem

Posted: Tue Aug 10, 2010 9:41 pm
by Valleyguy
VoidMain wrote:
bussdee wrote:I want to load a new waypoint when finished Dailies, but something is wrong.
scripts\rom/bot.lua:675

Code: Select all

<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 == dqCount then
			loadPaths("daily.dalanis.streife.haus.xml");
	</waypoint>
anyone can help me pls ?
You just missing an "end" after the "if":

Code: Select all

<!-- # 44 --><waypoint x="-4137" z="6074">
	player:target_NPC("Sueke Haragen");
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(750);
		sendMacro("CompleteQuest()"); yrest(2000);
		local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 == dqCount then
			    loadPaths("daily.dalanis.streife.haus.xml");
                        end;
	</waypoint>
DOH!

Re: DailyQuest Problem

Posted: Tue Aug 10, 2010 9:42 pm
by bussdee
shame on me, thanks a lot !

I should go to sleep since 4 hours like i planned, missing an "end" ... uuuhhh
but that is what my signature always say. ^^