<commit_before>require("base.common")
module("quest_aquest28", package.seeall)
function split_questdata(originator)
	local qpg = {};
	local questid = originator:getQuestProgress(29);
	qpg[1]=math.floor(questid/10^3); -- the cow of user
	qpg[2] = math.floor ( (questid-qpg[1]*10^3)/10^2 ); -- counter needed to know how many tasks to do till char gets milk
	qpg[3] = math.floor ( (questid - (qpg[1]*10^3 + qpg[2]*10^2))/10^1 );-- task id part 1
	qpg[4] = math.floor ( (questid - (qpg[1]*10^3 + qpg[2]*10^2 + qpg[3]*10^1))/1 ); -- task id part 2

	local taskid = qpg[3]*10+qpg[4];
	return qpg[1], taskid, qpg[2];
end

function glue_questdata(originator,cow,task,counter)
	local taskpart1 = math.floor(task/10);
	local taskpart2 = math.floor( (task - taskpart1*10));
	local qpg = cow * 1000 + counter * 100+ taskpart1*10+taskpart2;
	originator:setQuestProgress(29, qpg);
end

function wait(timeInSeconds)  --Works ONLY in the nextCycle-function!!!
        if (cycleCounter==nil) then
            cycleCounter=0;
			return false;
        elseif(cycleCounter~=nil and cycleCounter~=(timeInSeconds*10)) then
            cycleCounter=cycleCounter+1;
			return false;
        elseif (cycleCounter==(timeInSeconds*10)) then
			cycleCounter=nil;
			return true;
		end
end

function getTaskItems()
                    --comb, water bucket, lute ,   nothing,bundle of grain, big empty bottle
	local itemlist = {2719 ,52,           335,     0,      249            , 164         };  --EDIT HERE
	return itemlist;
end

function getNumberOfTasks()
	local NumberOfTasks = 6; --EDIT HERE THE NUMBER OF TASKS
	return NumberOfTasks;
end

function PrintTaskText(User, task) --EDIT HERE THE TEXT FOR THE MESSAGES
	if task == 1 then --task 1: Brush the cow with a comb 2719
		base.common.TalkNLS(User, CCharacter.say, "#me beginnt damit die Kuh mit dem Kamm zu brsten.", "#me starts brushing the cow with a comb.");
	elseif task == 2 then -- task 2: Wash the cow with a water bucket 52
		base.common.TalkNLS(User, CCharacter.say, "#me beginnt damit die Kuh zu waschen.", "#me starts washing the cow.");
	elseif task == 3 then -- play some tunes on a lute for the cow
		base.common.TalkNLS(User, CCharacter.say, "#me spielt der Kuh eine Melodie vor.", "#me plays a melody for the cow.");<commit_msg>DO NOT MAKE ASSUMPTIONS ABOUT THE CALLER OF A FUNCTION, PLEASE FIX THIS YOURSELF<commit_after>require("base.common")
module("quest_aquest28", package.seeall)
function split_questdata(originator)
	local qpg = {};
	local questid = originator:getQuestProgress(29);
	qpg[1]=math.floor(questid/10^3); -- the cow of user
	qpg[2] = math.floor ( (questid-qpg[1]*10^3)/10^2 ); -- counter needed to know how many tasks to do till char gets milk
	qpg[3] = math.floor ( (questid - (qpg[1]*10^3 + qpg[2]*10^2))/10^1 );-- task id part 1
	qpg[4] = math.floor ( (questid - (qpg[1]*10^3 + qpg[2]*10^2 + qpg[3]*10^1))/1 ); -- task id part 2

	local taskid = qpg[3]*10+qpg[4];
	return qpg[1], taskid, qpg[2];
end

function glue_questdata(originator,cow,task,counter)
	local taskpart1 = math.floor(task/10);
	local taskpart2 = math.floor( (task - taskpart1*10));
	local qpg = cow * 1000 + counter * 100+ taskpart1*10+taskpart2;
	originator:setQuestProgress(29, qpg);
end

function wait(timeInSeconds)  --Works ONLY in the nextCycle-function!!! vilarion says: DO NOT MAKE ASSUMPTIONS ABOUT THE CALLER OF A FUNCTION, PLEASE FIX THIS YOURSELF
--[[
        if (cycleCounter==nil) then
            cycleCounter=0;
			return false;
        elseif(cycleCounter~=nil and cycleCounter~=(timeInSeconds*10)) then
            cycleCounter=cycleCounter+1;
			return false;
        elseif (cycleCounter==(timeInSeconds*10)) then
			cycleCounter=nil;
			return true;
		end
--]]
-- return false because I feel like it, see above
return false;
end

function getTaskItems()
                    --comb, water bucket, lute ,   nothing,bundle of grain, big empty bottle
	local itemlist = {2719 ,52,           335,     0,      249            , 164         };  --EDIT HERE
	return itemlist;
end

function getNumberOfTasks()
	local NumberOfTasks = 6; --EDIT HERE THE NUMBER OF TASKS
	return NumberOfTasks;
end

function PrintTaskText(User, task) --EDIT HERE THE TEXT FOR THE MESSAGES
	if task == 1 then --task 1: Brush the cow with a comb 2719
		base.common.TalkNLS(User, CCharacter.say, "#me beginnt damit die Kuh mit dem Kamm zu brsten.", "#me starts brushing the cow with a comb.");
	elseif task == 2 then -- task 2: Wash the cow with a water bucket 52
		base.common.TalkNLS(User, CCharacter.say, "#me beginnt damit die Kuh zu waschen.", "#me starts washing the cow.");
	elseif task == 3 then -- play some tunes on a lute for the cow
		base.common.TalkNLS(User, CCharacter.say, "#me spielt der Kuh eine Melodie vor.", "#me plays a melody for the cow.");
{'fraction_non_alphanumeric': 0.12513056193858366, 'fraction_numerical': 0.04345101316064341, 'mean_word_length': 3.61271676300578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6770455', 'n_tokens_mistral': 1755, 'n_tokens_neox': 1596, 'n_words': 529}