<commit_before>--[[
Illarion Server

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.
]]
-- INSERT INTO triggerfields VALUES (826, 643, 2,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (821, 661, 1,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (657, 701, -3,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (822, 622, -3,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (668, 658, -6,'triggerfield.spelunker_1');

-- Quest: Spelunker (510)/(511)
local common = require("base.common")

local M = {}

local waypoint = {} --a list with positions
waypoint[1] = position(826, 643, 2) --1: second level of volcano
waypoint[2] = position(821, 661, 1) --2: first level of volcano
waypoint[3] = position(657, 701, -3) --3: west entrance of level -3 underground
waypoint[4] = position(822, 622, -3) --4: east entrance of level -3 underground
waypoint[5] = position(668, 658, -6) --5: entrance of the lowest level of dragon cave

local messageG = {}
messageG[1] = "[Queststatus] Du hast die hchste Ebene des Vulkans erreicht."
messageG[2] = "[Queststatus] Du hast die mittlere Ebene des Vulkans erreicht."
messageG[3] = "[Queststatus] Du hast den westlichen Eingang zur unteren Ebene entdeckt."
messageG[4] = "[Queststatus] Du hast den stlichen Eingang zur unteren Ebene entdeckt."
messageG[5] = "[Queststatus] Du hast die unterste Ebene der Drachenhöhle gefunden."
local messageE = {}
messageE[1] = "[Quest status] You have reached the uppermost level of the volcano."
messageE[2] = "[Quest status] You have reached the middle level of the volcano."
messageE[3] = "[Quest status] You have discovered the west entrance to the lower level."
messageE[4] = "[Quest status] You have discovered the east entrance to the lower level."
messageE[5] = "[Quest status] You have found the lowest level of the dragon cave."

function M.MoveToField(User)
    if (User:getQuestProgress(510) == 10) then --OK, the player does the quest
        local queststatus = User:getQuestProgress(511) --here, we save which fields were visited
        local queststatuslist = {}
        queststatuslist = common.Split_number(queststatus, 5) --reading the digits of the queststatus as table
<commit_msg>adjust quest triggerfield<commit_after>--[[
Illarion Server

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.
]]
-- INSERT INTO triggerfields VALUES (826, 643, 2,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (821, 661, 1,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (657, 701, -3,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (822, 662, -3,'triggerfield.spelunker_1');
-- INSERT INTO triggerfields VALUES (668, 658, -6,'triggerfield.spelunker_1');

-- Quest: Spelunker (510)/(511)
local common = require("base.common")

local M = {}

local waypoint = {} --a list with positions
waypoint[1] = position(826, 643, 2) --1: second level of volcano
waypoint[2] = position(821, 661, 1) --2: first level of volcano
waypoint[3] = position(657, 701, -3) --3: west entrance of level -3 underground
waypoint[4] = position(822, 662, -3) --4: east entrance of level -3 underground
waypoint[5] = position(668, 658, -6) --5: entrance of the lowest level of dragon cave

local messageG = {}
messageG[1] = "[Queststatus] Du hast die hchste Ebene des Vulkans erreicht."
messageG[2] = "[Queststatus] Du hast die mittlere Ebene des Vulkans erreicht."
messageG[3] = "[Queststatus] Du hast den westlichen Eingang zur unteren Ebene entdeckt."
messageG[4] = "[Queststatus] Du hast den stlichen Eingang zur unteren Ebene entdeckt."
messageG[5] = "[Queststatus] Du hast die unterste Ebene der Drachenhöhle gefunden."
local messageE = {}
messageE[1] = "[Quest status] You have reached the uppermost level of the volcano."
messageE[2] = "[Quest status] You have reached the middle level of the volcano."
messageE[3] = "[Quest status] You have discovered the west entrance to the lower level."
messageE[4] = "[Quest status] You have discovered the east entrance to the lower level."
messageE[5] = "[Quest status] You have found the lowest level of the dragon cave."

function M.MoveToField(User)
    if (User:getQuestProgress(510) == 10) then --OK, the player does the quest
        local queststatus = User:getQuestProgress(511) --here, we save which fields were visited
        local queststatuslist = {}
        queststatuslist = common.Split_number(queststatus, 5) --reading the digits of the queststatus as table

{'fraction_non_alphanumeric': 0.10021246458923513, 'fraction_numerical': 0.04001416430594901, 'mean_word_length': 4.56551724137931, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '789759', 'n_tokens_mistral': 1826, 'n_tokens_neox': 1651, 'n_words': 724}