ZipiffClamorclang.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/ZipiffClamorclang.lua
  3. Script Purpose : Zipiff Clamorclang
  4. Script Author : Dorbin
  5. Script Date : 2022.01.21
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Delivery = 5446
  10. local Mage1 = 5767
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11)<0 then
  18. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  19. else
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Careful where you walk! I don't want you bending a sprocket or tweaking a spring, and you mustn't crimp a cog! If I have to uncrimp just one more cog...")
  23. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang000.mp3", 2450977341, 1936083009)
  24. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  25. Dialog.AddOption("I'm checking on Lolla Cotgrove's kegs.", "TheOrder")
  26. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, Delivery , 1)
  27. Dialog.AddOption("The Magister suggested I asked you about what you use your sorcery for.", "TheOrder")
  28. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, Mage1 , 4)
  29. Dialog.AddOption("I think I'll move back. It sounds like I really don't want to crimp a cog. ")
  30. Dialog.Start()
  31. end
  32. end
  33. function TheOrder(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("Ah, yes! Wonderful things. I am finishing the kegs right now. I've got the Freezorators working, or at least to the point where they don't cover the kegs in ice. Let Lolla know the kegs are on schedule and will be ready soon.")
  37. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang001.mp3",776820733, 1890824744)
  38. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  39. Dialog.AddOption("I will let her know. Thank you.", "UpdateDelivery")
  40. Dialog.Start()
  41. end
  42. function Sorcery1(NPC, Spawn) --For Mage Class Quest
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("Sorcery? I stopped that silliness a long time ago. Though it had a solid foundation, sorcery isn't as effective as clockworks. Take my Freezerator for example... ")
  46. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang002.mp3",2356722587, 1174004626)
  47. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  48. Dialog.AddOption("Excuse me, but what are you talking about? A freezer...", "Sorcery2")
  49. Dialog.Start()
  50. end
  51. function Sorcery2(NPC, Spawn)--For Mage Class Quest
  52. SetStepComplete(Spawn,Mage1,4)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. Dialog.AddDialog("A Freezerator! Rather than using ice spells to keep something cold, my device works all day! Yes, yes, I know it's not as good as a sub-arctic ice storm spell or as effective as lobbing shards of ice at hungry gnolls, or even freezing the skin off of a ... well it's just better, all right! Is there anything else?")
  56. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang003.mp3",260712735, 3045244120)
  57. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  58. Dialog.AddOption("Most interesting! Thank you. I'll leave you to your work.")
  59. Dialog.Start()
  60. end
  61. --
  62. function UpdateDelivery(NPC, Spawn)
  63. SetStepComplete(Spawn, Delivery, 1)
  64. end