<commit_before>-- Long Time Effect Script: Newbie Island
-- Effect ID: 13
-- Values: newbiePosX, newbiePosY, newbiePosZ, itemid_1, itemnumber_1, itemdata_1, itemquality_1 (1-18)
-- reworked by <NAME> new-noobia

require("base.common")
module("lte.newbieisland", package.seeall)

ListCycleMessageGerman = {}
ListCycleMessageGerman = {
"@Rince: zyklusnachricht 1 deutsch",
"@Rince: zyklusnachricht 2 deutsch",
"@Rince: zyklusnachricht 3 deutsch",
"@Rince: zyklusnachricht 4 deutsch",
"@Rince: zyklusnachricht 5 deutsch",
"@Rince: zyklusnachricht 6 deutsch",
"@Rince: zyklusnachricht 7 deutsch",
"@Rince: zyklusnachricht 8 deutsch",
"@Rince: zyklusnachricht 9 deutsch"}

ListCycleMessageEnglish = {}
ListCycleMessageEnglish = {
"@Rince: zyklusnachricht 1 englisch",
"@Rince: zyklusnachricht 2 englisch",
"@Rince: zyklusnachricht 3 englisch",
"@Rince: zyklusnachricht 4 englisch",
"@Rince: zyklusnachricht 5 englisch",
"@Rince: zyklusnachricht 6 englisch",
"@Rince: zyklusnachricht 7 englisch",
"@Rince: zyklusnachricht 8 englisch",
"@Rince: zyklusnachricht 9 englisch"}


function addEffect(newbieEffect, Character)
    -- newbie LTE has been added; we greet our new player
	base.common.InformNLS(Character,
	  "@Rince: text 1 DE",
	  "@Rince: text 1 EN");
	newbieEffect.nextCalled=20; -- time til the second hello-message (in 1/10) seconds
end

function callEffect(newbieEffect,Character)
    if (not Character.pos.z == 100) and (not Character.pos.z == 101) then -- not on the noobia map
	    return false
	end	
	
	foundSecMes,secMesValue = newbieEffect:findValue("secMes")
	if not foundSecMes then -- there was no second message yet; therefore: second message!
	    base.common.InformNLS(Character,
	    "@Rince: text 2 DE",
	    "@Rince: text 2 EN");
	    newbieEffect:addValue("secMes",1) -- that we remember nex time that we already gave the message out (the value 1 as such is unimportant; just that it is there)
	    newbieEffect.nextCalled=150
    else
	    foundNoobiaLight,noobiaLightValue = newbieEffect:findValue("noobiaLight")
		if not foundNoobiaLight then -- the char should walk to a specific postion (see: triggerfield/noobia_light)
		    base.common.InformNLS(Character,
	        "@Rince: text 3 DE",
	        "@Rince: text 4 EN");
	    end 
		
		if (Charcater:getQuestProgess(13) == 2) or (Charcater:getQuestProgess(13) == 3) then
		    base.common.InformNLS(Character,
	        "@Rince: text Schweine tten DE",
	        "@Rince: text Schweine tten EN");
	    end
		
		if (Charcater:getQuestProgess(12) == 2) then
		    base.common.InformNLS(Character,
	        "@Rince: text Kohle Erz DE",
	        "@Rince: text Kohle Erz EN");
	    end
	
	    foundRoundCount, roundCount = newbieEffect:findValue("roundCount")
	    if foundRoundCount then
		    if (roundCount/2) == math.floor(roundCount/2) then -- every second call the cycle message is given out
		        foundMessageCount, messageCount = newbieEffect:findValue("messageCount")
				if not foundMessageCount then
				    messageCount = 1
				end	
				base.common.InformNLS(Character,
	            ""..ListCycleMessageGerman[messageCount],
	            ""..ListCycleMessageEnglish[messageCount]);   
		        if foundMessageCount then
				    messageCount = messageCount + 1
				end
			    newbieEffect:addValue("messageCount",messageCount)
			end
		    
			roundCount = roundCount + 1
		else
		   roundCount = 1
		end
	    
		newbieEffect:addValue("roundCount",roundCount) 
	end
	
end

function removeEffect(newbieEffect, Character)
end<commit_msg>debzgging<commit_after>-- Long Time Effect Script: Newbie Island
-- Effect ID: 13
-- Values: newbiePosX, newbiePosY, newbiePosZ, itemid_1, itemnumber_1, itemdata_1, itemquality_1 (1-18)
-- reworked by Merung for Rincewinds new-noobia

require("base.common")
module("lte.newbieisland", package.seeall)

ListCycleMessageGerman = {}
ListCycleMessageGerman = {
"@Rince: zyklusnachricht 1 deutsch",
"@Rince: zyklusnachricht 2 deutsch",
"@Rince: zyklusnachricht 3 deutsch",
"@Rince: zyklusnachricht 4 deutsch",
"@Rince: zyklusnachricht 5 deutsch",
"@Rince: zyklusnachricht 6 deutsch",
"@Rince: zyklusnachricht 7 deutsch",
"@Rince: zyklusnachricht 8 deutsch",
"@Rince: zyklusnachricht 9 deutsch"}

ListCycleMessageEnglish = {}
ListCycleMessageEnglish = {
"@Rince: zyklusnachricht 1 englisch",
"@Rince: zyklusnachricht 2 englisch",
"@Rince: zyklusnachricht 3 englisch",
"@Rince: zyklusnachricht 4 englisch",
"@Rince: zyklusnachricht 5 englisch",
"@Rince: zyklusnachricht 6 englisch",
"@Rince: zyklusnachricht 7 englisch",
"@Rince: zyklusnachricht 8 englisch",
"@Rince: zyklusnachricht 9 englisch"}


function addEffect(newbieEffect, Character)
    -- newbie LTE has been added; we greet our new player
	base.common.InformNLS(Character,
	  "@Rince: text 1 DE",
	  "@Rince: text 1 EN");
	newbieEffect.nextCalled=20; -- time til the second hello-message (in 1/10) seconds
end

function callEffect(newbieEffect,Character)
    if (not Character.pos.z == 100) and (not Character.pos.z == 101) then -- not on the noobia map
	    return false
	end	
	
	foundSecMes,secMesValue = newbieEffect:findValue("secMes")
	if not foundSecMes then -- there was no second message yet; therefore: second message!
	    base.common.InformNLS(Character,
	    "@Rince: text 2 DE",
	    "@Rince: text 2 EN");
	    newbieEffect:addValue("secMes",1) -- that we remember nex time that we already gave the message out (the value 1 as such is unimportant; just that it is there)
	    newbieEffect.nextCalled=150
    else
	    foundNoobiaLight,noobiaLightValue = newbieEffect:findValue("noobiaLight")
		if not foundNoobiaLight then -- the char should walk to a specific postion (see: triggerfield/noobia_light)
		    base.common.InformNLS(Character,
	        "@Rince: text 3 DE",
	        "@Rince: text 4 EN");
	    end 
		
		if (Charcater:getQuestProgess(13) == 2) or (Charcater:getQuestProgess(13) == 3) then
		    base.common.InformNLS(Character,
	        "@Rince: text Schweine tten DE",
	        "@Rince: text Schweine tten EN");
	    end
		
		if (Charcater:getQuestProgess(12) == 2) then
		    base.common.InformNLS(Character,
	        "@Rince: text Kohle Erz DE",
	        "@Rince: text Kohle Erz EN");
	    end
	
	    foundRoundCount, roundCount = newbieEffect:findValue("roundCount")
	    if foundRoundCount then
		    if (roundCount/2) == math.floor(roundCount/2) then -- every second call the cycle message is given out
		        foundMessageCount, messageCount = newbieEffect:findValue("messageCount")
				if not foundMessageCount then
				    messageCount = 1
				end	
				base.common.InformNLS(Character,
	            ""..ListCycleMessageGerman[messageCount],
	            ""..ListCycleMessageEnglish[messageCount]);   
		        if foundMessageCount then
				    messageCount = messageCount + 1
				end
			    newbieEffect:addValue("messageCount",messageCount)
			end
		    
			roundCount = roundCount + 1
		else
		   roundCount = 1
		end
	    
		newbieEffect:addValue("roundCount",roundCount) 
	end
	
	return true
end

function removeEffect(newbieEffect, Character)
end
{'fraction_non_alphanumeric': 0.10419026047565119, 'fraction_numerical': 0.01812004530011325, 'mean_word_length': 3.90625, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5354992', 'n_tokens_mistral': 2653, 'n_tokens_neox': 2410, 'n_words': 643}