ZipiffClamorclang.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11)<0 then
  17. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  18. else
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. 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...")
  22. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang000.mp3", 2450977341, 1936083009)
  23. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  24. Dialog.AddOption("I'm checking on Lolla Cotgrove's kegs.", "TheOrder")
  25. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, Delivery , 1)
  26. Dialog.AddOption("I think I'll move back. It sounds like I really don't want to crimp a cog. ")
  27. Dialog.Start()
  28. end
  29. end
  30. function TheOrder(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. 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.")
  34. Dialog.AddVoiceover("voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang001.mp3",776820733, 1890824744)
  35. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  36. Dialog.AddOption("I will let her know. Thank you.", "UpdateDelivery")
  37. Dialog.Start()
  38. end
  39. function Sorcery1(NPC, Spawn) --For Mage Class Quest
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang002.mp3", "", "no", 2356722587, 1174004626, Spawn)
  43. AddConversationOption(conversation, "A Freeze-or...what?", "Sorcery2")
  44. StartConversation(conversation, NPC, Spawn, "Sorcery? I stopped that silliness a long time ago. Though it had a solid foundation, sorcery isn't as effective as clockworks! Take my Freezorator for example.")
  45. end
  46. function Sorcery2(NPC, Spawn)--For Mage Class Quest
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/zipiff_clamorclang/qey_village06/zipiffclamorclang003.mp3", "", "", 260712735, 3045244120, Spawn)
  50. AddConversationOption(conversation, "Interesting use of elemental magic! Thank you for the lesson")
  51. StartConversation(conversation, NPC, Spawn, "A Freezor-ator! 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... Oh, well it's just better! Alright?! Is there anything else?")
  52. end
  53. function UpdateDelivery(NPC, Spawn)
  54. SetStepComplete(Spawn, Delivery, 1)
  55. end