<commit_before>-- Herblore mit Sichel und Ausbreitung der Pflanzen

-- UPDATE common SET com_script='item.id_126_sickle' WHERE com_itemid=126;

require("item.general.metal")
require("base.common")

module("item.id_126_sickle", package.seeall, package.seeall(item.general.metal))

function UseItem( User, SourceItem, TargetItem, Counter, Param, ltstate )
	--testing stuff
	if (User.lastSpokenText == "faction") then
	    FactionCheck = base.factions.get_Faction(User)
		User:inform("factioncheck")
		User:inform("faction: "..FactionCheck[2])
	    return
	end	
	
	if (User.lastSpokenText == "textbox") then
		    User:inform("debug 1")
			local callbackNewbie = function(dialog)
			   User:inform("debug 2")
			   User:setQuestProgress(2,1)
			   User:inform(""..User:getQuestProgress(2))
			   newbieEffect = LongTimeEffect(13,1)
			   User.effects:addEffect(newbieEffect)
			   find, myEffect = User.effects:find(13)
		       if find then
			        User:inform("lte 13 wurde geadded")
	           else 
                    User:inform("lte 13 wurde NICHT geadded")			   
		        end 
		    end
		
			if User:getPlayerLanguage() == 0 then
				User:inform("debug 3")
				dialog = MessageDialog("Willkommen!", "toller Willkommenstext - in Deutsch!", callbackNewbie)
			else	
				dialog = MessageDialog("Welcome!", "fancy welcome text - in English!", callbackNewbie)<commit_msg>changed test function<commit_after>-- Herblore mit Sichel und Ausbreitung der Pflanzen

-- UPDATE common SET com_script='item.id_126_sickle' WHERE com_itemid=126;

require("item.general.metal")
require("base.common")

module("item.id_126_sickle", package.seeall, package.seeall(item.general.metal))

function UseItem( User, SourceItem, TargetItem, Counter, Param, ltstate )
	--testing stuff
	if (User.lastSpokenText == "faction") then
	    FactionCheck = base.factions.get_Faction(User)
		User:inform("factioncheck")
		User:inform("faction: "..FactionCheck)
	    return
	end	
	
	if (User.lastSpokenText == "textbox") then
		    User:inform("debug 1")
			local callbackNewbie = function(dialog)
			   User:inform("debug 2")
			   User:setQuestProgress(2,1)
			   User:inform(""..User:getQuestProgress(2))
			   newbieEffect = LongTimeEffect(13,1)
			   User.effects:addEffect(newbieEffect)
			   find, myEffect = User.effects:find(13)
		       if find then
			        User:inform("lte 13 wurde geadded")
	           else 
                    User:inform("lte 13 wurde NICHT geadded")			   
		        end 
		    end
		
			if User:getPlayerLanguage() == 0 then
				User:inform("debug 3")
				dialog = MessageDialog("Willkommen!", "toller Willkommenstext - in Deutsch!", callbackNewbie)
			else	
				dialog = MessageDialog("Welcome!", "fancy welcome text - in English!", callbackNewbie)
{'fraction_non_alphanumeric': 0.11888365349764407, 'fraction_numerical': 0.018484958318231243, 'mean_word_length': 3.5320197044334973, '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': '7211288', 'n_tokens_mistral': 1045, 'n_tokens_neox': 873, 'n_words': 193}