Page 1 of 1

Daily Quest- Conditions... Help.

Posted: Sun Aug 08, 2010 11:07 am
by Valleyguy
Maybe you guys can find my bug here there is something i have wrong in the code here and the bot errors on it but it does not tell me where i went wrong...

Code: Select all

	local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); 
		if 10 == dailyQuestCount;
		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

Now i know most of it is correct because if i just put ....

Code: Select all

local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); printf("You've completed "..dailyQuestCount.." out of " .. dailyQuestsPerDay ..    " daily quests, leaving " .. dailyQuestsPerDay - dailyQuestCount .. " quests.");
everything works... i am just trying to add a if / else statement into the mix...

Re: Daily Quest- Conditions... Help.

Posted: Sun Aug 08, 2010 11:16 am
by VoidMain

Code: Select all

if 10 == dailyQuestCount then

Re: Daily Quest- Conditions... Help.

Posted: Sun Aug 08, 2010 11:32 am
by Valleyguy
VoidMain wrote:

Code: Select all

if 10 == dailyQuestCount then

yea i just came back to say i missed a "then" thanks !

got it working well now.