<commit_before>--Ronagan's Ancient Temple
--Dyluck


module("item.id_37_window", package.seeall)


--Window_ID37
--A window that the player can use to enter/exit the temple
--Part of Ronagan's Temple questid(1111) and related NPCs/scripts...

function UseItem(User, SourceItem, TargetItem, Counter, Param, ltstate)

	local win = position(504, 215, 0); --location of the window; to be changed
	local inside = position(505, 215, 0); --location that entering window warps to; to be changed
	local outside = position(503, 215, 0); --location that exiting window warps to be changed
	--player must face window directly in order to climb through

	--quest progress; quest id to be changed
	--local queststatus = User:getQuestProgress(1111); uncomment later
	local queststatus = 1; --remove later


	if SourceItem.pos == win then
		if queststatus >= 1 then
			if User.pos == outside then
				User:inform("You climb in through the window");
				world:gfx(41,User.pos); --probably no graphics needed, just testing
				world:makeSound(13,User.pos); --maybe some kind of jumping/landing sound
				User:warp(inside);
				world:gfx(41,User.pos);
				world:makeSound(13,User.pos);
				return;
			elseif User.pos == inside then
				User:inform("You climb out through the window");
				world:gfx(41,User.pos);
				world:makeSound(13,User.pos);
				User:warp(outside);
				world:gfx(41,User.pos);
				world:makeSound(13,User.pos);
				return;
			end
		end
	end
end<commit_msg>Commented out some code that's not used for now<commit_after>--Ronagan's Ancient Temple
--Dyluck
--[[ Not used yet. Commented out for now. -Dyluck Dec 13, 2012

module("item.id_37_window", package.seeall)


--Window_ID37
--A window that the player can use to enter/exit the temple
--Part of Ronagan's Temple questid(n/a) and related NPCs/scripts...

function UseItem(User, SourceItem, TargetItem, Counter, Param, ltstate)

	local win = position(504, 215, 0); --location of the window; to be changed
	local inside = position(505, 215, 0); --location that entering window warps to; to be changed
	local outside = position(503, 215, 0); --location that exiting window warps to be changed
	--player must face window directly in order to climb through

	--quest progress; quest id to be changed
	--local queststatus = User:getQuestProgress(n/a); uncomment later
	local queststatus = 1; --remove later


	if SourceItem.pos == win then
		if queststatus >= 1 then
			if User.pos == outside then
				User:inform("You climb in through the window");
				world:gfx(41,User.pos); --probably no graphics needed, just testing
				world:makeSound(13,User.pos); --maybe some kind of jumping/landing sound
				User:warp(inside);
				world:gfx(41,User.pos);
				world:makeSound(13,User.pos);
				return;
			elseif User.pos == inside then
				User:inform("You climb out through the window");
				world:gfx(41,User.pos);
				world:makeSound(13,User.pos);
				User:warp(outside);
				world:gfx(41,User.pos);
				world:makeSound(13,User.pos);
				return;
			end
		end
	end
end

]]
{'fraction_non_alphanumeric': 0.11372679045092839, 'fraction_numerical': 0.033156498673740056, 'mean_word_length': 3.842696629213483, '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': '4917113', 'n_tokens_mistral': 1127, 'n_tokens_neox': 928, 'n_words': 328}