12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- --[[
- Script Name : Quests/TheDownBelow/a_crumpled_note.lua
- Script Purpose : Handles the quest, "A Crumpled Note"
- Script Author : premierio015
- Script Date : 28.10.2021
- Script Notes : Auto generated with QuestParser.
- Zone : Down Below
- Quest Giver : a crumped scroll(Item)
- Preceded by : None
- Followed by : None
- --]]
- function Init(Quest)
- AddQuestStepChat(Quest, 1, "I need to find a mage at the Concordium interested in the note.", 1, "I need to take this note to a mage at the Concordium.", 185, 2310071, 5890309)
- AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
- end
- function Accepted(Quest, QuestGiver, Player)
- if HasItem(Player, 1471) then
- RemoveItem(Player, 1471)
- end
- SendMessage(Player, "The crumpled scroll has been placed in your quest satchel.")
- end
- function Declined(Quest, QuestGiver, Player)
- -- Add dialog here for when the quest is declined
- end
- function Deleted(Quest, QuestGiver, Player)
- -- Remove any quest specific items here when the quest is deleted
- end
- function QuestComplete(Quest, QuestGiver, Player)
- -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
- UpdateQuestStepDescription(Quest, 1, "I've found a mage at the Concordium interested in the note.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I brought the note to the Concordium and found a mage interested in it.")
- UpdateQuestDescription(Quest, "I gave the note to Amren Talbot at the Concordium. He seemed less impressed with the find. He believes we are secure, though he did say he would bring it to his superiors. ")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|