Daily Quest- Conditions... Help.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Valleyguy
Posts: 100
Joined: Wed Aug 04, 2010 11:34 pm
Location: Canada

Daily Quest- Conditions... Help.

#1 Post by Valleyguy » Sun Aug 08, 2010 11:07 am

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...
Image

VoidMain
Posts: 187
Joined: Wed Apr 21, 2010 12:21 pm

Re: Daily Quest- Conditions... Help.

#2 Post by VoidMain » Sun Aug 08, 2010 11:16 am

Code: Select all

if 10 == dailyQuestCount then

Valleyguy
Posts: 100
Joined: Wed Aug 04, 2010 11:34 pm
Location: Canada

Re: Daily Quest- Conditions... Help.

#3 Post by Valleyguy » Sun Aug 08, 2010 11:32 am

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.
Image

Post Reply

Who is online

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