<commit_before>-- UPDATE common SET com_script='item.id_361_altar' WHERE com_itemid IN (361);

require("base.common")
require("content.gods")

module("item.id_361_altar", package.seeall, package.seeall(content.gods))

function LookAtItem(User, Item)

	if Item.data ==100 then --used for THE LIBRARY quest
		if (User:getPlayerLanguage() ==0) then
			User:inform("Dir fallen die Buchstaben CRG am Altar auf")
			else
			User:inform("You notice the letters CRG on the altar")
		end
	end
	
    if Item.data > 0 then
        if User:getPlayerLanguage() == 0 then
            ret = "Altar "..GOD_DE[Item.data];
        else
            ret = "Altar "..GOD_EN[Item.data];
        end;
        if User:getRace() == 5 then
            ret = string.gsub( ret, "Tanora", "Zshhel-pheey-arrr" );
        end;
    else
        ret = User:getPlayerLanguage() == 0 and "Ungeweihter Altar" or "Undedicated altar";
    end;
    world:itemInform( User, Item, ret );
end

function UseItem(User, SourceItem, TargetItem, Counter, param)

	if (SourceItem.data == 100) then --used for THE LIBRARY quest
		
		local items = User:getItemList(79);
				for i, item in pairs(items) do
					if (item.data == 705) or (item.data==707) then --teleport if has complete amulet
							world:makeSound(5,position(385,552,0))
							User:warp(position(382,560,-3))
							if (User:getPlayerLanguage() ==0) then
								User:inform("Du legst das Amulett auf den Altar - Es blitzt auf und du bist an einem anderen Ort");
							else
								User:inform("You place the amulet on the altar - there is a flash and you are somewhere else");
							end
						break;
					end;
				end;
	end;
	

	

end;
 
<commit_msg>replaced old data and fixed lookat<commit_after>-- UPDATE common SET com_script='item.id_361_altar' WHERE com_itemid IN (361);

require("base.common")
require("content.gods")

module("item.id_361_altar", package.seeall, package.seeall(content.gods))

function LookAtItem(User, Item)

	if tonumber(Item:getData("libraryQuest")) ==100 then --used for THE LIBRARY quest
		if (User:getPlayerLanguage() ==0) then
			User:inform("Dir fallen die Buchstaben CRG am Altar auf")
			else
			User:inform("You notice the letters CRG on the altar")
		end
	end
	
    if tonumber(Item:getData("god")) > 0 then
        if User:getPlayerLanguage() == 0 then
            retDE = "Altar "..GOD_DE[tonumber(Item:getData("god"))];
        else
            retEN = "Altar "..GOD_EN[tonumber(Item:getData("god"))];
        end;
        if User:getRace() == 5 then
            retDE = string.gsub( retDE, "Tanora", "Zshhel-pheey-arrr" );
			retEN = string.gsub( retEN, "Tanora", "Zshhel-pheey-arrr" );
        end;
    else
        retDE = "Ungeweihter Altar";
		retEN = "Undedicated altar";
    end;
	base.lookat.SetSpecialName(Item, retDE, retEN)
	world:itemInform(User,Item,base.lookat.GenerateLookAt(User, Item, base.lookat.NONE));
end

function UseItem(User, SourceItem, TargetItem, Counter, param)

	if (tonumber(SourceItem:getData("libraryQuest")) == 100) then --used for THE LIBRARY quest
		
		local items = User:getItemList(79);
				for i, item in pairs(items) do
					if (tonumber(item:getData("libraryQuest")) == 705) or (tonumber(item:getData("libraryQuest"))==707) then --teleport if has complete amulet
							world:makeSound(5,position(385,552,0))
							User:warp(position(382,560,-3))
							if (User:getPlayerLanguage() ==0) then
								User:inform("Du legst das Amulett auf den Altar - Es blitzt auf und du bist an einem anderen Ort");
							else
								User:inform("You place the amulet on the altar - there is a flash and you are somewhere else");
							end
						break;
					end;
				end;
	end;
	

	

end;
 

{'fraction_non_alphanumeric': 0.12503397662408264, 'fraction_numerical': 0.02364773036151128, 'mean_word_length': 3.1818181818181817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1664834', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1225, 'n_words': 353}