DondlFuzzlecutter.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/DondlFuzzlecutter.lua
  3. Script Purpose : Dondl Fuzzlecutter <Provisioner>
  4. Script Author : Dorbin
  5. Script Date : 2022.01.20
  6. Script Notes : Updated Dialog Module - 2022.08.21 Dorbin
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Delivery = 5445
  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, "", "", "heckno", 0, 0, Spawn)
  18. else
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("...The tract-o-fizzle attaches to the wizgiggler. Or is it the other way around? What do you think my friend?")
  22. Dialog.AddVoiceover("voiceover/english/dondl_fuzzlecutter/qey_village06/dondlfuzzlecutter000.mp3", 605011151, 3443405792)
  23. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  24. Dialog.AddOption("Sorry to interrupt, but Jodi from Graystone sent...", "PotionPickup")
  25. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, Delivery , 1)
  26. Dialog.AddOption("I am not a tinkerer. I don't know. ")
  27. Dialog.Start()
  28. end
  29. end
  30. function PotionPickup(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("Ah! It's not the tract-o-fizzle, but the re-giggulator! What a fool I am. Oh, did you say Jodi of Graystone? Do you know her? If so, could you reminder her I have her potions?")
  34. Dialog.AddVoiceover("voiceover/english/dondl_fuzzlecutter/qey_village06/dondlfuzzlecutter001.mp3", 142866066, 1005520721)
  35. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  36. Dialog.AddOption("Actually, I am here to pick them up for her.", "PotionPickup2")
  37. Dialog.AddOption("I'm not sure. I must be going.")
  38. Dialog.AddOption("I am not a tinkerer. I don't know. ")
  39. Dialog.Start()
  40. end
  41. function PotionPickup2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Excellent! I was afraid she would not make it back in time. I do have to close shop, you know. I cannot stay open all hours of the day! Even though there are twenty-four hours in a Norrathian day, ten days in a Norrathian week, and fourteen weeks in a Norrathian month, and ...")
  45. Dialog.AddVoiceover("voiceover/english/dondl_fuzzlecutter/qey_village06/dondlfuzzlecutter002.mp3", 2452336060, 2578339558)
  46. PlayFlavor(NPC, "", "", "happy", 0, 0, Spawn)
  47. Dialog.AddOption("Alright already! I'll take them now!", "UpdateDelivery")
  48. Dialog.Start()
  49. end
  50. function UpdateDelivery(NPC, Spawn)
  51. SetStepComplete(Spawn, Delivery, 1)
  52. end