AundorSingingsword.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/AundorSingingsword.lua
  3. Script Purpose : Aundor Singingsword
  4. Script Author : Dorbin
  5. Script Date : 5.2.2022
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local BookDelivery = 5514
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. Dialog.New(NPC, Spawn)
  18. Dialog.AddDialog("The forest's blessing to you. It is a good day to practice sword play, is it not? ")
  19. Dialog.AddVoiceover("voiceover/english/aundor_singingsword/qey_adv01_oakmyst/aundorsingingsword000.mp3", 715745780, 1617277503)
  20. if GetQuestStep(Spawn,BookDelivery)==2 then
  21. Dialog.AddOption("Rune Starshimmer wanted me to deliver this book to you.","Delivery1")
  22. end
  23. Dialog.AddOption("I'll keep that in mind, thanks. ")
  24. Dialog.Start()
  25. end
  26. function Delivery1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. Dialog.New(NPC, Spawn)
  29. Dialog.AddDialog("And what book would this be, young one?")
  30. Dialog.AddVoiceover("voiceover/english/aundor_singingsword/qey_adv01_oakmyst/aundorsingingsword001.mp3", 209447750, 500268709)
  31. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  32. Dialog.AddOption("A copy of Pelle's Adventures.", "Deliver2")
  33. Dialog.Start()
  34. end
  35. function Deliver2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. Dialog.AddDialog("Adventures? Ha ha! Misdeeds is more like it! This should be quite amusing. Pelles embellishment of history is nothing short of bombastic. Those among us who were actually there know what really happened. For example, when we came across that small encampment of orcs...")
  39. Dialog.AddVoiceover("voiceover/english/aundor_singingsword/qey_adv01_oakmyst/aundorsingingsword002.mp3",2949325286, 1344537433)
  40. PlayFlavor(NPC, "", "", "chuckle", 0, 0, Spawn)
  41. Dialog.AddOption("I should really be getting back to Pelle...", "UpdateDeliveryFinal")
  42. Dialog.Start()
  43. end
  44. function UpdateDeliveryFinal(NPC, Spawn)
  45. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
  46. SetStepComplete(Spawn,BookDelivery,2)
  47. end