ZipiffClamorclang.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. SetInfoStructString(NPC, "action_state", "artificing_idle")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if GetFactionAmount(Spawn,11)<0 then
  19. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  20. else
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. 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...")
  24. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang000.mp3", 2450977341, 1936083009)
  25. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  26. Dialog.AddOption("I'm checking on Lolla Cotgrove's kegs.", "TheOrder")
  27. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, Delivery , 1)
  28. if GetQuestStep(Spawn,Mage1) >=3 and GetQuestStep(Spawn,Mage1) <=5 then
  29. Dialog.AddOption("The Magister suggested I asked you about what you use your sorcery for.", "Sorcery1")
  30. end
  31. Dialog.AddOption("I think I'll move back. It sounds like I really don't want to crimp a cog. ")
  32. Dialog.Start()
  33. end
  34. end
  35. function TheOrder(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. 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.")
  39. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang001.mp3",776820733, 1890824744)
  40. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  41. Dialog.AddOption("I will let her know. Thank you.", "UpdateDelivery")
  42. Dialog.Start()
  43. end
  44. function Sorcery1(NPC, Spawn) --For Mage Class Quest
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. 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... ")
  48. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang002.mp3",2356722587, 1174004626)
  49. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  50. Dialog.AddOption("Excuse me, but what are you talking about? A freezer...", "Sorcery2")
  51. Dialog.Start()
  52. end
  53. function Sorcery2(NPC, Spawn)--For Mage Class Quest
  54. SetStepComplete(Spawn,Mage1,4)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. 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?")
  58. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang003.mp3",260712735, 3045244120)
  59. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  60. Dialog.AddOption("Most interesting! Thank you. I'll leave you to your work.")
  61. Dialog.Start()
  62. end
  63. --
  64. function UpdateDelivery(NPC, Spawn)
  65. SetStepComplete(Spawn, Delivery, 1)
  66. end