Daily Quest- Conditions... Help.
Posted: 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...
Now i know most of it is correct because if i just put ....
everything works... i am just trying to add a if / else statement into the mix...
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.");