spindlecogs_new_job_.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest, "Thundering Steppes")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. FaceTarget(QuestGiver, Player)
  19. PlayFlavor(QuestGiver, "voiceover/english/tinkerer_spindlecog/qey_village06/tinkererspindlecog003.mp3", "", "no", 2508515239, 4260547544, Player)
  20. AddConversationOption(conversation, "I'll be back with these items.")
  21. AddConversationOption(conversation, "Try not to blow anything up.")
  22. StartConversation(conversation, QuestGiver, Player, "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!")
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, " I've gathered the sinews of ten fledgling antelopes.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered ten fledgling antelope sinews.")
  27. UpdateQuestZone(Quest, "Baubbleshire")
  28. 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)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I spoke with Tinkerer Spindlecog.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Tinkerer Spindlecog.")
  34. UpdateQuestZone(Quest, "Thundering Steppes")
  35. 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)
  36. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I have killed griffawns.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I've gathered the griffawn fatty tissue that Spindlecog needs.")
  41. UpdateQuestZone(Quest, "Baubbleshire")
  42. AddQuestStepChat(Quest, 4, "I need to speak with Tinkerer Spindlecog.", 1, "I must take this fatty tissue to Spindlecog in the Baubbleshire.", 88, 2380016)
  43. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  44. end
  45. function Step4Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I spoke with Tinkerer Spindlecog.")
  47. UpdateQuestTaskGroupDescription(Quest, 4, " I spoke with Tinkerer Spindlecog.")
  48. UpdateQuestZone(Quest, "Thundering Steppes")
  49. 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)
  50. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  51. end
  52. function Step5Complete(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 5, "I have killed ten octopi and gathered their ink.")
  54. UpdateQuestTaskGroupDescription(Quest, 5, "I've gathered the octopus ink that Spindlecog needs.")
  55. UpdateQuestZone(Quest, "Baubbleshire")
  56. 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)
  57. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  58. end
  59. function QuestComplete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 6, "I spoke with Tinkerer Spindlecog.")
  61. UpdateQuestTaskGroupDescription(Quest, 6, "I spoke with Tinkerer Spindlecog.")
  62. UpdateQuestDescription(Quest, "Sadly, Spindlecog's stamping device broke down again shortly after he tested it. Well, at least it worked for a little while.")
  63. GiveQuestReward(Quest, Player)
  64. end
  65. function Declined(Quest, QuestGiver, Player)
  66. end
  67. function Reload(Quest, QuestGiver, Player, Step)
  68. if Step == 1 then
  69. Step1Complete(Quest, QuestGiver, Player)
  70. elseif Step == 2 then
  71. Step2Complete(Quest, QuestGiver, Player)
  72. elseif Step == 3 then
  73. Step3Complete(Quest, QuestGiver, Player)
  74. elseif Step == 4 then
  75. Step4Complete(Quest, QuestGiver, Player)
  76. elseif Step == 5 then
  77. Step5Complete(Quest, QuestGiver, Player)
  78. elseif Step == 6 then
  79. Step6Complete(Quest, QuestGiver, Player)
  80. elseif Step == 7 then
  81. QuestComplete(Quest, QuestGiver, Player)
  82. end
  83. end