<commit_before>-- I_2744_pfeife.lua
--
require("base.common")
require("item.general.wood")

module("item.id_2744_pipe", package.seeall, package.seeall(item.general.wood))

-- UPDATE common SET com_script='item.id_2744_pipe' WHERE com_itemid = 2744;

function UseItem( User, SourceItem, TargetItem, Counter, Param)
	
	
	--local ammountSib = Character:countItemAt("belt",155);
	--local ammountTob = Character:countItemAt("belt",772);
	if (Character:countItemAt("belt",155) == 0 and Character:countItemAt("belt",772) == 0) then
		base.common.InformNLS( Character,
        "1.Du bentigst Sibanac-Bltter oder Tabak um Pfeife rauchen zu knnen.",
        "1.You need sibanac-leafs or tobacco to smoke a pipe." );
		
		
	elseif (Character:countItemAt("belt",155) ~= 0) then 
		User:talkLanguage(Character.say,Player.german ,"#me nimmt einen tiefen Zug von der Pfeife.");
		User:talkLanguage(Character.say,Player.english,"#me takes a deep drag from the pipe. 'I smoke weed'");
		Character:eraseItem( 155, 1 );
			
	elseif (Character:countItemAt("belt",772) ~= 0) then
		User:talkLanguage(Character.say,Player.german ,"#me blst einen Rauchkringel in die Luft.");
		User:talkLanguage(Character.say,Player.english,"#me puffs a ring of smoke into the air.");
		Character:eraseItem( 772, 1 );
	--[[Effekt setzen falls noch nicht vorhanden<commit_msg>pipes<commit_after>-- I_2744_pfeife.lua
--
require("base.common")
require("item.general.wood")

module("item.id_2744_pipe", package.seeall, package.seeall(item.general.wood))

-- UPDATE common SET com_script='item.id_2744_pipe' WHERE com_itemid = 2744;

function UseItem( User, SourceItem, TargetItem, Counter, Param)
	
	
	--local ammountSib = Character:countItemAt("belt",155);
	--local ammountTob = Character:countItemAt("belt",772);
	if (User:countItemAt("belt",155) == 0 and User:countItemAt("belt",772) == 0) then
		base.common.InformNLS( Character,
        "1.Du bentigst Sibanac-Bltter oder Tabak um Pfeife rauchen zu knnen.",
        "1.You need sibanac-leafs or tobacco to smoke a pipe." );
		
		
	elseif (User:countItemAt("belt",155) ~= 0) then 
		User:talkLanguage(Character.say,Player.german ,"#me nimmt einen tiefen Zug von der Pfeife.");
		User:talkLanguage(Character.say,Player.english,"#me takes a deep drag from the pipe. 'I smoke weed'");
		User:eraseItem( 155, 1 );
			
	elseif (User:countItemAt("belt",772) ~= 0) then
		User:talkLanguage(Character.say,Player.german ,"#me blst einen Rauchkringel in die Luft.");
		User:talkLanguage(Character.say,Player.english,"#me puffs a ring of smoke into the air.");
		User:eraseItem( 772, 1 );
	--[[Effekt setzen falls noch nicht vorhanden
{'fraction_non_alphanumeric': 0.1404707668944571, 'fraction_numerical': 0.03644646924829157, 'mean_word_length': 5.002277904328018, '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': '2446707', 'n_tokens_mistral': 1018, 'n_tokens_neox': 907, 'n_words': 223}