GranvillesRestaurantAntonica.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : GranvillesRestaurantAntonica.lua
  3. Script Purpose : Handles the quest, "Granville's Restaurant, Antonica"
  4. Script Author : Jabantiz
  5. Script Date : 6/14/2016
  6. Script Notes :
  7. Zone : Thundering Steppes
  8. Quest Giver : Tobias Granville (2490178)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must bring back large shore crab shells for Tobias' crab bisque.", 15, 100, "I will need to obtain what Tobias needs in and around the Thundering Steppes.", 77, 2490280)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I've collected several large shore crab shells.")
  18. AddQuestStepChat(Quest, 2, "I should take these shells back to Tobias Granville in the Village of Thundermist.", 1, "I will need to obtain what Tobias needs in and around the Thundering Steppes.", 2545, 2490178)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I've spoken with Tobias.")
  23. AddQuestStepHarvest(Quest, 3, "I need to obtain a variety of high quality seafood for Tobias' seafood bisque, thicket crayfish should suffice.", 20, 100, "I will need to obtain what Tobias needs in and around the Thundering Steppes.", 2545, 14395)
  24. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  25. end
  26. function Step3Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 3, "I've obtained several thicket crayfish for Tobia's bisque.")
  28. AddQuestStepChat(Quest, 4, "I need to take these ingredients to Tobias Granville in the Village of Thundermist.", 1, "I will need to obtain what Tobias needs in and around the Thundering Steppes.", 11, 2490178)
  29. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  30. end
  31. function Step4Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 4, "I've spoken with Tobias.")
  33. AddQuestStepLocation(Quest, 5, "I need to check on what might be keeping the creature population low near the shore.", 30, "I will need to obtain what Tobias needs in and around the Thundering Steppes.", 11, 1481, -20, 239 )
  34. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  35. end
  36. function Step5Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 5, "I've seen a siren's temple; they might be keeping the populations low.")
  38. AddQuestStepChat(Quest, 6, "I need to report back to Tobias Granville in the Village of Thundermist.", 1, "I will need to obtain what Tobias needs in and around the Thundering Steppes.", 11, 2490178)
  39. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 6, "I've spoken with Tobias.")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I've provided everything Tobias requested.")
  45. UpdateQuestDescription(Quest, "I've procured the basic ingredients Tobias requested. He paid part of what he owes me, but told me that his sister Tanny Granville has the rest of their funds. I will have to look Miss Granville up when I pass through Nektulos Forest to collect what's owed me...or I can forget the whole thing. Hmm...decisions, decisions.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. Step3Complete(Quest, QuestGiver, Player)
  55. elseif Step == 4 then
  56. Step4Complete(Quest, QuestGiver, Player)
  57. elseif Step == 5 then
  58. Step5Complete(Quest, QuestGiver, Player)
  59. elseif Step == 6 then
  60. QuestComplete(Quest, QuestGiver, Player)
  61. end
  62. end
  63. function Accepted(Quest, QuestGiver, Player)
  64. FaceTarget(QuestGiver, Player)
  65. local conversation = CreateConversation()
  66. AddConversationOption(conversation, "All right, I'll be back.")
  67. StartConversation(conversation, QuestGiver, Player, "We start by taking the shells of large shore crabs and seasoning them, then we cook them over low heat in just the right amount of liquid. The flavor intensifies over time into something completely sublime. We'll see how you handle this task before entrusting you with something a bit more delicate, eh?", "voiceover/english/tobias_granville/steppes/quests/quest_tobias_granville/tobias_granville003.mp3", 11212970, 2895684237)
  68. end
  69. function Declined(Quest, QuestGiver, Player)
  70. -- Add dialog here for when the quest is declined
  71. end