Blub,Blub-SomethingSmellsFishy.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Blub,Blub-SomethingSmellsFishy.lua
  3. Script Purpose : Handles the quest, "Blub, Blub - Something Smells Fishy"
  4. Script Author : geordie0511
  5. Script Date : 14.03.2019
  6. Script Notes :
  7. Zone : Antonica
  8. Quest Giver :
  9. Preceded by : Achoo! Antonican Pepper
  10. Followed by : Killing With Kindness, One Barbarian at a Time
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to rustle up some Coldwind fish for Matsy's Chowder.", 10, 100, "Matsy needs the special Coldwind fish for her soup. They can be found in the ocean or in the rivers.", 2547, 121237, 120079, 121249, 120094, 121250, 120096, 121252, 120093)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I managed to get enough Coldwind fish for Matsy's Chowder.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have caught all the Coldwind fish I can carry.")
  19. AddQuestStepChat(Quest, 2, "I should return to Matsy.", 1, "I need to return these fish to Matsy.", 2547, 120280)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "Matsy now has enough Coldwind fish to make extra chowder.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I have brought Matsy the Coldwind fish.")
  26. UpdateQuestDescription(Quest, "I have returned the Coldwind fish to Matsy.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is accepted
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end