9
3

spindlecogs_new_job_.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --[[
  2. Script Name : Quests/Baubbleshire/spindlecogs_new_job_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.21 02:01:31
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Tinkerer Spindlecog
  8. Preceded by: None
  9. Followed by: Reconstructed manually
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must get ten fledgling antelope sinews in the Thundering Steppes.", 10, 100, "Tinkerer Spindlecog needs ten fledgling antelope sinews from the Thundering Steppes.", 99, 2490056)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest, "Thundering Steppes")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Of course not! That's horribly inefficient! Why would I ever do something by hand when I can build a machine to do it for me? If I could only connect these two ... Ah! Brilliant! Brilliant! Let me jot this down for you, and once you get this stuff, bring it back straightaway! It's a bit of a trek, but I'm sure you are up to the challenge!")
  21. Dialog.AddVoiceover("voiceover/english/tinkerer_spindlecog/qey_village06/tinkererspindlecog003.mp3", 2508515239, 4260547544)
  22. Dialog.AddLanguage(6)
  23. Dialog.AddOption("I'll see what I can do.", "Dialog1")
  24. Dialog.Start()
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, " I've gathered the sinews of ten fledgling antelopes.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered ten fledgling antelope sinews.")
  29. UpdateQuestZone(Quest, "Baubbleshire")
  30. AddQuestStepChat(Quest, 2, "I need to speak with Tinkerer Spindlecog.", 1, "I need to get these sinews to Tinkerer Spindlecog in the Baubbleshire.", 99, 2380016)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I spoke with Tinkerer Spindlecog.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Tinkerer Spindlecog.")
  36. UpdateQuestZone(Quest, "Thundering Steppes")
  37. AddQuestStepKill(Quest, 3, "I must get fatty tissue from five griffawns.", 5, 70, "I need to kill five griffawns in the Thundering Steppes and take their fatty tissue back to Tinkerer Spindlecog.", 88, 2490054)
  38. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  39. end
  40. function Step3Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 3, "I have killed griffawns.")
  42. UpdateQuestTaskGroupDescription(Quest, 3, "I've gathered the griffawn fatty tissue that Spindlecog needs.")
  43. UpdateQuestZone(Quest, "Baubbleshire")
  44. AddQuestStepChat(Quest, 4, "I need to speak with Tinkerer Spindlecog.", 1, "I must take this fatty tissue to Spindlecog in the Baubbleshire.", 88, 2380016)
  45. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  46. end
  47. function Step4Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 4, "I spoke with Tinkerer Spindlecog.")
  49. UpdateQuestTaskGroupDescription(Quest, 4, " I spoke with Tinkerer Spindlecog.")
  50. UpdateQuestZone(Quest, "Thundering Steppes")
  51. AddQuestStepKill(Quest, 5, "I need to kill ten tide octopi in the waters of the Thundering Steppes.", 5, 75, "I must get the ink from ten tide octopi in the Thundering Steppes.", 168, 2490019)
  52. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  53. end
  54. function Step5Complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 5, "I have killed ten octopi and gathered their ink.")
  56. UpdateQuestTaskGroupDescription(Quest, 5, "I've gathered the octopus ink that Spindlecog needs.")
  57. UpdateQuestZone(Quest, "Baubbleshire")
  58. AddQuestStepChat(Quest, 6, "I must return to Tinkerer Spindlecog in the Baubbleshire.", 1, "I need to give this ink to Tinkerer Spindlecog in the Baubbleshire.", 168, 2380016)
  59. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  60. end
  61. function QuestComplete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 6, "I spoke with Tinkerer Spindlecog.")
  63. UpdateQuestTaskGroupDescription(Quest, 6, "I spoke with Tinkerer Spindlecog.")
  64. UpdateQuestDescription(Quest, "Sadly, Spindlecog's stamping device broke down again shortly after he tested it. Well, at least it worked for a little while.")
  65. GiveQuestReward(Quest, Player)
  66. end
  67. function Declined(Quest, QuestGiver, Player)
  68. end
  69. function Reload(Quest, QuestGiver, Player, Step)
  70. if Step == 1 then
  71. Step1Complete(Quest, QuestGiver, Player)
  72. elseif Step == 2 then
  73. Step2Complete(Quest, QuestGiver, Player)
  74. elseif Step == 3 then
  75. Step3Complete(Quest, QuestGiver, Player)
  76. elseif Step == 4 then
  77. Step4Complete(Quest, QuestGiver, Player)
  78. elseif Step == 5 then
  79. Step5Complete(Quest, QuestGiver, Player)
  80. elseif Step == 6 then
  81. Step6Complete(Quest, QuestGiver, Player)
  82. elseif Step == 7 then
  83. QuestComplete(Quest, QuestGiver, Player)
  84. end
  85. end