<commit_before>--Checks if the playable faction leaders is logged in and thus the NPC needs to be out of player sight

require("base.common")

module("scheduled.factionLeader", package.seeall)

local informationTable = {}
--informationTable = {"<NAME>" = {usualPosition=position(122, 521, 0), newPosition=position(237, 104, 0)}, "<NAME>" = {usualPosition=position(337, 215, 0), newPosition=position(238, 104, 0)}, "<NAME>" = {usualPosition=position(898, 775, 2), newPosition=position(239, 104, 0)}}
table.insert(informationTable, "<NAME>" = {usualPosition=position(122, 521, 0), newPosition=position(237, 104, 0)})

function checkFactionLeader()
	for name, npcPositions in pairs(informationTable) do
		if base.common.CheckIfOnline(informationTable.name)[1] ~= nil then
			updatePosition(informationTable.npcPositions)
		end
	end
end

function updatePosition(npcPositions)<commit_msg>added table for basic information<commit_after>--Checks if the playable faction leaders is logged in and thus the NPC needs to be out of player sight

require("base.common")

module("scheduled.factionLeader", package.seeall)


function checkFactionLeader()
	local informationTable = {}
	informationTable = {"<NAME>" = {usualPosition=position(122, 521, 0), newPosition=position(237, 104, 0)}, "<NAME>" = {usualPosition=position(337, 215, 0), newPosition=position(238, 104, 0)}, "<NAME>" = {usualPosition=position(898, 775, 2), newPosition=position(239, 104, 0)}}

	--table.insert(informationTable, "<NAME>" = {usualPosition=position(122, 521, 0), newPosition=position(237, 104, 0)})

	for name, npcPositions in pairs(informationTable) do
		if base.common.CheckIfOnline(informationTable.name)[1] ~= nil then
			updatePosition(informationTable.npcPositions)
		end
	end
end

function updatePosition(npcPositions)
{'fraction_non_alphanumeric': 0.13623673925181462, 'fraction_numerical': 0.06365159128978225, 'mean_word_length': 7.072072072072072, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '489544', 'n_tokens_mistral': 656, 'n_tokens_neox': 535, 'n_words': 149}