12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- --[[
- Script Name : Quests/Commonlands/CrackPot.lua
- Script Purpose : Handles the quest, "Crack Pot"
- Script Author : premierio015
- Script Date : 16.05.2021
- Script Notes : Auto generated with QuestParser.
- Zone : Commonlands
- Quest Giver :
- Preceded by : None
- Followed by : None
- --]]
- function Init(Quest)
- AddQuestStepHarvest(Quest, 1, "Collect iron clusters from cloven ore", 5, 100, "I need to collect iron clusters here in the Commonlands so Mooshga can repair her cracked pot.", 1085, 8395)
- AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
- end
- function Accepted(Quest, QuestGiver, Player)
- FaceTarget(QuestGiver, Player)
- conversation = CreateConversation()
- AddConversationOption(conversation, "Okay. I'll be right back.")
- StartConversation(conversation, QuestGiver, Player, "Okay! You go harvest the iron clusters for Mooshga and then can fix pot!")
- 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 Step1Complete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I have collected five iron clusters.")
- UpdateQuestTaskGroupDescription(Quest, 1, "I have collected five irons clusters.")
- AddQuestStepChat(Quest, 2, "I should return to Mooshga", 1, "I should return to Mooshga outside of Freeport.", 11, 331133)
- AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
- 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, 2, "I gave Mooshga the iron clusters.")
- UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to Mooshga.")
- UpdateQuestDescription(Quest, "I gave the five iron clusters to Mooshga.")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- Step1Complete(Quest, QuestGiver, Player)
- elseif Step == 2 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|