frozen_pincer_chowder.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/FrostfangSea/frozen_pincer_chowder.lua
  3. Script Purpose : the quest "Frozen Pincer Chowder"
  4. Script Author : theFoof
  5. Script Date : 2013.9.1
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Olga Macleod
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I must collect a sprig of halasian reeds for Olga.", 1, 100, "I must collect a sprig of halasian reeds for Olga. I can find the halasian reed plant down near the water's edge at the Erollis Dock, east of New Halas.", 822)
  14. AddQuestStepCompleteAction(Quest, 1, "GotSprig")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "olga_macleod/halas/new_halas/olga_macleod/olga_macleod_006.mp3", "", "", 1415155134, 885074882, Player)
  20. AddConversationOption(conversation, "I shall be back with the parsley and pincers!")
  21. StartConversation(conversation, QuestGiver, Player, "How nice of you! If you do so, you can have a bowl of the chowder for yourself. What I need is frozen pincers and halasian reeds. The halasian reeds and the frozen pincers are down near the water's edge at the Erollis Dock, east of New Halas.")
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function GotSprig(Quest, QuestGiver, Player)
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the halasian reeds for Olga.")
  29. AddQuestStepKill(Quest, 2, "I must kill frozen pincers for Olga's chowder.", 4, 100, "I must kill frozen pincers for Olga. The pincers are at the Erollis Dock in New Halas.", 77, 4700215)
  30. AddQuestStepCompleteAction(Quest, 2, "KilledCrabs")
  31. end
  32. function KilledCrabs(Quest, QuestGiver, Player)
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have killed and collected the frozen pincer meat for Olga.")
  34. AddQuestStepChat(Quest, 3, "I must speak with Olga Macleod near The Stone Hammer.", 1, "I must return the halasian parsley and frozen pincer meat to Olga Macleod. Olga is at the fire next to the mender's workshop, The Stone Hammer, in New Halas.", 0, 4700258)
  35. AddQuestStepCompleteAction(Quest, 3, "TalkedOlga")
  36. end
  37. function TalkedOlga(Quest, QuestGiver, Player)
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I have given the ingredients to Olga.")
  39. AddQuestStep(Quest, 4, "I must try some of Olga's frozen pincer chowder.", 1, 100, "Olga has taken the ingredients I collected and prepared her recipe for frozen pincer chowder.", 294)
  40. AddQuestStepCompleteAction(Quest, 4, "CompleteQuest")
  41. end
  42. function CompleteQuest(Quest, QuestGiver, Player)
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. GotSprig(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. KilledCrabs(Quest, QuestGiver, Player)
  50. elseif Step == 3 then
  51. TalkedOlga(Quest, QuestGiver, Player)
  52. end
  53. end