9
3

seaside_stew.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --[[
  2. Script Name : Quests/OutpostOverlord/seaside_stew.lua
  3. Script Purpose : Handles the quest, "Seaside Stew"
  4. Script Author : Scatman (Updted by Cynnar 2018.09.16 10:09:24)
  5. Script Date : 2008.09.07
  6. Zone : Outpost of the Overlord
  7. Quest Giver: Tayil N'Velex
  8. Preceded by: The Art of Combat (the_art_of_combat_evil.lua)
  9. Followed by: Preventative Maintenance (preventative_maintenance.lua)
  10. --]]
  11. local ChefGorga = 2780057
  12. local TayilNVelex = 2780038
  13. local WorkerBees = 2780064
  14. local SoldierBees = 2780078
  15. local QueenBee = 2780076
  16. local CowElk = 2780066
  17. local ElkCalf = 2780065
  18. local BullElk = 2780068
  19. function Init(Quest)
  20. -- Freeportian Cloth Cuffs
  21. -- Freeportian Leather Sleeves
  22. -- Freeportian Plated Bracers
  23. -- Freeportian Studded Wristguards
  24. AddQuestStepChat(Quest, 1, "Seek out Chef Gorga outside the west gate.", 1, "I need to seek out Chef Gorga outside the west gate. She should have some tasks for me to test out my combat skills.", 0, ChefGorga)
  25. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToGorga")
  26. end
  27. function Accepted(Quest, QuestGiver, Player)
  28. if QuestGiver ~= nil then
  29. if GetDistance(Player, QuestGiver) < 30 then
  30. FaceTarget(QuestGiver, Player)
  31. conversation = CreateConversation
  32. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/tayil_n_velex/tutorial_island02_evil_revamp/quests/citizenship/tayilnvelex/tayilnvelex036.mp3", "", "", 3316986332, 3271769196, Player)
  33. AddConversationOption(conversation, "I will.")
  34. StartConversation(conversation, QuestGiver, Player, "Report back to me when your duties with Chef Gorga are done.")
  35. end
  36. end
  37. end
  38. function Declined(Quest, QuestGiver, Player)
  39. end
  40. function step1_complete_talkedToGorga(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 1, "I reported to Chef Gorga and have been given my first task.")
  42. UpdateQuestTaskGroupDescription(Quest, 1, "I reported to Chef Gorga and have been given my first task.")
  43. AddQuestStepKill(Quest, 2, "Kill the nearby bees to add to Gorga's stew.", 3, 100, "The first ingredient for the Seaside Stew is the nearby bees. I need to kill some for Gorga.", 611, WorkerBees, SoldierBees, QueenBee)
  44. AddQuestStepCompleteAction(Quest, 2, "step2_complete_killedBees")
  45. end
  46. function step2_complete_killedBees(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 2, "I killed enough bees for the first ingredient of Gorgia's Seaside Stew.")
  48. UpdateQuestTaskGroupDescription(Quest, 2, "I killed enough bees for the first ingredient of Gorgia's Seaside Stew.")
  49. AddQuestStepChat(Quest, 3, "Return to Chef Gorga.", 1, "I killed the bees that Gorga wants for her stew. I should return to her now.", 0, ChefGorga)
  50. AddQuestStepCompleteAction(Quest, 3, "step3_complete_talkedToGorga")
  51. end
  52. function step3_complete_talkedToGorga(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 3, "I returned to Chef Gorga.")
  54. UpdateQuestTaskGroupDescription(Quest, 3, "I returned to Chef Gorga.")
  55. AddQuestStepKill(Quest, 4, "Kill the elk for their livers.", 4, 100, "The second ingredient is elk livers. The elk roam throughout the Seaside Glade, out past the barricades.", 611, CowElk, ElkCalf, BullElk)
  56. AddQuestStepCompleteAction(Quest, 4, "step4_complete_killedElk")
  57. end
  58. function step4_complete_killedElk(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 4, "I gathered enough elk livers for Gorga's Seaside Stew.")
  60. UpdateQuestTaskGroupDescription(Quest, 4, "I gathered enough elk livers for Gorga's Seaside Stew.")
  61. AddQuestStepChat(Quest, 5, "Return the livers to Chef Gorga.", 1, "I've gathered the elk livers and need to return to Chef Gorga.", 0, ChefGorga)
  62. AddQuestStepCompleteAction(Quest, 5, "step5_complete_talkedToGorga")
  63. end
  64. function step5_complete_talkedToGorga(Quest, QuestGiver, Player)
  65. UpdateQuestStepDescription(Quest, 5, "I returned to Chef Gorga with the elk livers for her stew.")
  66. UpdateQuestTaskGroupDescription(Quest, 5, "I returned to Chef Gorga with the elk livers for her stew.")
  67. AddQuestStepChat(Quest, 6, "Return to Tayil N'Velex.", 1, "I should return to Tayil N'Velex and let her know that I've finished helping Gorga.", 0, TayilNVelex)
  68. AddQuestStepCompleteAction(Quest, 6, "step6_complete_talkedToTayil")
  69. end
  70. function step6_complete_talkedToTayil(Quest, QuestGiver, Player)
  71. UpdateQuestDescription(Quest, "I reported to Chef Gorga and gathered some ingredients for her Seaside Stew. Livers! Upon returning to Tayil, I was rewarded for my efforts.")
  72. GiveQuestReward(Quest, Player)
  73. end
  74. function Reload(Quest, QuestGiver, Player, Step)
  75. if Step == 1 then
  76. step1_complete_talkedToGorga(Quest, QuestGiver, Player)
  77. elseif Step == 2 then
  78. step2_complete_killedBees(Quest, QuestGiver, Player)
  79. elseif Step == 3 then
  80. step3_complete_talkedToGorga(Quest, QuestGiver, Player)
  81. elseif Step == 4 then
  82. step4_complete_killedElk(Quest, QuestGiver, Player)
  83. elseif Step == 5 then
  84. step5_complete_talkedToGorga(Quest, QuestGiver, Player)
  85. end
  86. end