illarion-content/quest/druid_tutorial_692.lua
2026-05-12 12:23:10 +02:00

120 lines
8.2 KiB
Lua

--[[
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 "quests" ("qst_id", "qst_script") VALUES (691, 'quest.druid_tutorial_691');
local common = require("base.common")
local M = {}
local GERMAN = Player.german
local ENGLISH = Player.english
-- Insert the quest title here, in both languages
local Title = {}
Title[GERMAN] = "Naturmagie: Der natur Pfad"
Title[ENGLISH] = "Nature Magic: The nature path"
-- Insert an extensive description of each status here, in both languages
-- Make sure that the player knows exactly where to go and what to do
local Description = {}
Description[GERMAN] = {}
Description[ENGLISH] = {}
Description[GERMAN][1] = "Fianna hat dir die Aufgabe gegeben, die Zwillingsinseln zu finden, die Teil der Runewick-Halbinsel sind. Dort angekommen sollst du meditieren, um deine Antworten zu finden."
Description[ENGLISH][1] = "Fianna has set you on the task to find the Twin Islands, part of the Runewick Peninsula. Once there, you are to meditate to seek your answers."
Description[GERMAN][2] = "Du hast die Zwillingsinseln gefunden und meditiert, wobei du die Worte \"Cor Valis\" von der umgebenden Natur zu dir rufen gehört hast. Du solltest zu Fianna zurückkehren und sie danach fragen."
Description[ENGLISH][2] = "You found the Twin Islands and you meditated, hearing the phrase \"Cor Valis\" called out to you by the surrounding nature. You should return to Fianna to ask her about it."
Description[GERMAN][3] = "Du hast die Aufgabe erhalten, ein leeres hölzernes Sigil zu beschaffen, das für den nächsten Teil deiner Reise in die Naturmagie benötigt wird. Du kannst eines als Zimmermann herstellen, eines von Fianna kaufen oder es von anderen Spielern erhalten."
Description[ENGLISH][3] = "You've been tasked with obtaining a blank wooden sigil, required for the next part of your journey into nature magic. You can craft one as a carpenter, buy one from Fianna or obtain one from other players."
Description[GERMAN][4] = "Nachdem du ein leeres hölzernes Siegel erhalten hast, ist Fianna bereit, dir mehr über die verschiedenen Geflechte zu erzählen. Frage nach den Geflechten Welken, Blühen, Wildnis, Stein und Tiefe. Wenn du über jedes von ihnen gelernt hast, sage: \"Cor Valis Sindeim.\", um fortzufahren."
Description[ENGLISH][4] = "Having obtained a blank wooden sigil, Fianna is ready to tell you more about the different weaves. Ask about the Wither, Bloom, Wild, Stone, and Deep Weaves. When you have learned about each, say: \"Cor Valis Sindeim.\" to continue."
Description[GERMAN][5] = "Du hast über jedes Geflecht gelernt und hast dein Siegel zur Hand. Nun ist die Zeit gekommen zu wählen, in welches Geflecht du tiefer eintauchen möchtest, und Fianna danach zu fragen."
Description[ENGLISH][5] = "You've learned about each weave and have you sigil at hand. Now is the time to choose which weave you wish to delve deeper into and ask Fianna about it."
Description[GERMAN][6] = "Du bist weit genug auf dem Pfad eines Geflechts vorangeschritten, um den Punkt zu erreichen, an dem sich die Wege wieder vereinen. Sprich mit Fianna über den Seherkessel vor ihr, um fortzufahren."
Description[ENGLISH][6] = "You've embarked far enough on the path of a weave to reach where the paths once more convene. Ask Fianna about the Seer's Cauldron she has in front of her to continue."
Description[GERMAN][7] = "Blicke in den Kessel der Seherin vor Fianna, um deine Reise in die Naturmagie und ihre Verflechtungen fortzusetzen."
Description[ENGLISH][7] = "Look into the seer's cauldron in front of Fianna to continue on your journey into nature magic and its weaves."
Description[GERMAN][8] = "Sprich mit Fianna in Trollhafen, um fortzufahren."
Description[ENGLISH][8] = "Talk to Fianna in Troll's Haven to continue."
Description[GERMAN][9] = "Besorge dir einen Weberbeutel. Ein Schneider kann ihn herstellen, oder du kannst ihn von Fianna kaufen. Halte ihn dann in den Händen und doppelklicke auf ein nicht leeres Siegel, um ihn aufzuladen."
Description[ENGLISH][9] = "Obtain a weaver's pouch. A tailor can make them, or you can buy it from Fianna. Then hold it in your hands and double click a non-empty sigil to charge it."
Description[GERMAN][10] = "Sprich mit Fianna in Trollhafen, um fortzufahren."
Description[ENGLISH][10] = "Talk to Fianna in Troll's Haven to continue."
Description[GERMAN][11] = "Mit dem Weberbeutel an deinem Gürtel und einem Cor-Stab in deinen Händen kannst du nun deinen ersten Zauber wirken. Du kannst dies tun, indem du ihn laut aussprichst (Groß- und Kleinschreibung beachten), auf deinen Cor-Stab doppelklickst oder deinen Cor-Stab auf einen bestimmten Zauber einstimmst und dann doppelklickst."
Description[ENGLISH][11] = "With the weaver's pouch on your belt and a cor staff in your hands, you can now cast your first spell. You can do so by speaking it aloud (case-sensitive), double click your cor-staff or attuning your cor-staff to a specific spell then double clicking it."
Description[GERMAN][12] = "Sprich mit Fianna in Trollhafen, um fortzufahren."
Description[ENGLISH][12] = "Talk to Fianna in Troll's Haven to continue."
Description[GERMAN][13] = "Du hast das Tutorial über Naturmagie und ihre Verflechtungen abgeschlossen. Du kannst Fianna jederzeit nach dem Tutorial über Alchemie oder Transmutation fragen oder den Kessel der Seherin in Trollhafen aufsuchen, um weitere Zauber zu erlernen. In diesem Tutorial hast du etwas über die Verflechtungen, Meditation, Siegel sowie die Verwendung von Siegeln, Weberbeuteln und einem Cor-Stab gelernt, um Zauber zu wirken, die du über den Kessel der Seherin erlernst."
Description[ENGLISH][13] = "You've completed the tutorial on nature magic and its weaves. You can always ask Fianna about the tutorial on Alchemy or Transmutation, or seek out the Seer's Cauldron in Troll's Haven to learn more spells. In this tutorial you learned about the weaves, meditation, sigils and how to use sigils, weavers pouches and a cor staff to cast spells you learn via the Seer's Cauldron."
--TODO: Add quest log texts for 7-13 once the tutorial TODO texts have been filled in in the fianna_squall.npc script
-- Insert the position of the quest start here (probably the position of an NPC or item)
local Start = {661, 301, 0}
-- For each status insert a list of positions where the quest will continue, i.e. a new status can be reached there
local QuestTarget = {}
-- Insert the quest status which is reached at the end of the quest
local FINAL_QUEST_STATUS = 13
function M.QuestTitle(user)
return common.GetNLS(user, Title[GERMAN], Title[ENGLISH])
end
function M.QuestDescription(user, status)
local german = Description[GERMAN][status] or ""
local english = Description[ENGLISH][status] or ""
return common.GetNLS(user, german, english)
end
function M.QuestStart()
return Start
end
function M.QuestTargets(user, status)
if ((user:increaseAttrib("perception",0) + user:increaseAttrib("essence",0) + user:increaseAttrib("intelligence",0) ) < 30) or user:getQuestProgress(691) < 5 then
return {}
else
QuestTarget[1] = {position(914, 933, 0)}
for i = 2, 13 do
QuestTarget[i] = {position(661, 301, 0)}
end
end
return QuestTarget[status]
end
function M.QuestFinalStatus()
return FINAL_QUEST_STATUS
end
function M.QuestAvailability(user, status)
if user:getQuestProgress(691) >= 5 and status == 0 and (user:increaseAttrib("perception",0) + user:increaseAttrib("essence",0) + user:increaseAttrib("intelligence",0) ) > 29 then
return Player.questAvailable
else
return Player.questNotAvailable
end
end
return M