CrackPot.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/Commonlands/CrackPot.lua
  3. Script Purpose : Handles the quest, "Crack Pot"
  4. Script Author : premierio015
  5. Script Date : 16.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "Okay. I'll be right back.")
  20. StartConversation(conversation, QuestGiver, Player, "Okay! You go harvest the iron clusters for Mooshga and then can fix pot!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have collected five iron clusters.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected five irons clusters.")
  31. AddQuestStepChat(Quest, 2, "I should return to Mooshga", 1, "I should return to Mooshga outside of Freeport.", 11, 331133)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I gave Mooshga the iron clusters.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to Mooshga.")
  38. UpdateQuestDescription(Quest, "I gave the five iron clusters to Mooshga.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end