kestrel_pot_pie.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : Quests/FrostfangSea/kestrel_pot_pie.lua
  3. Script Purpose : the quest Kestrel Pot Pie
  4. Script Author : theFoof
  5. Script Date : 2013.9.3
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Alice Swamprunner
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I must collect ice shrooms for Alice's pie.", 5, 100, "I must collect ice shrooms for Alice. I can find the ice shrooms in the cave leading to the Erollis Dock.", 811)
  14. AddQuestStepCompleteAction(Quest, 1, "GotShrooms")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "alice_swamprunner/halas/new_halas/alice_swamprunner/alice_swamprunner_006.mp3", "", "", 2612887763, 84831884, Player)
  20. AddConversationOption(conversation, "I shall return to you Alice with the meat and shrooms.")
  21. StartConversation(conversation, QuestGiver, Player, "Great! Return the ingredients to me at your convenience.")
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function GotShrooms(Quest, QuestGiver, Player)
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the ice shrooms for Alice.")
  29. AddQuestStepKill(Quest, 2, "I must kill downy kestrels for Alice's pie.", 3, 100, "I must kill downy kestrels for Alice. The kestrels are at the south entrance to New Halas.", 80, 4700122)
  30. AddQuestStepCompleteAction(Quest, 2, "KilledBirds")
  31. end
  32. function KilledBirds(Quest, QuestGiver, Player)
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have killed and collected the downy kestrel meat for Alice.")
  34. AddQuestStepChat(Quest, 3, "I must speak with Alice Swamprunner in Ravens' Roost.", 1, "I must return the ice shrooms and downy kestrel meat to Alice Swamprunner. Alice is at the restaurant in Ravens' Roost in New Halas.", 0, 4700230)
  35. AddQuestStepCompleteAction(Quest, 3, "TalkedAlice")
  36. end
  37. function TalkedAlice(Quest, QuestGiver, Player)
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I have given the ingredients to Alice.")
  39. AddQuestStep(Quest, 4, "I must try some of Alice's kestrel pot pie.", 1, 100, "Alice has taken the ingredients I collected and prepared her recipe for kestrel pot pie.", 2558)
  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. GotShrooms(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. KilledBirds(Quest, QuestGiver, Player)
  50. elseif Step == 3 then
  51. TalkedAlice(Quest, QuestGiver, Player)
  52. end
  53. end