LucillaQuietus.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/SouthFreeport/LucillaQuietus.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.25 07:06:19
  5. Script Purpose :
  6. Script Notes : New to add missing dialog for quest "Reward For A Missing Music Box".
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local RewardForAMissingMusicBox = 5261
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. Dialog1(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Either buy something or get out of the way!")
  22. Dialog.AddVoiceover("voiceover/english/optional1/weaponsmith_lucilla_quietus/fprt_south/100_questlucillaquietus_callout1_3d9a231a.mp3", 3790442270, 2463491720)
  23. PlayFlavor(NPC,"","","sniff",0,0,Spawn)
  24. if GetQuestStep(Spawn,RewardForAMissingMusicBox)==1 then
  25. Dialog.AddOption("Actually, I found a note with your name on it. Give me a few coins and you can have it.It looks like I've come across something with your name on it. You may be interested in this music box.","Dialog2")
  26. end
  27. Dialog.AddOption("Well, show me your wares then!")
  28. Dialog.Start()
  29. end
  30. function Dialog2(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("The ratonga thieves took that music box from me! I demand you give it to me this instant! ")
  34. PlayFlavor(NPC,"","","boggle",0,0,Spawn)
  35. Dialog.AddOption("For the right price, its yours.","Dialog3")
  36. Dialog.Start()
  37. end
  38. function Dialog3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Are you always this infuriating?! Here. Take these few coins I have and give me the box!")
  42. PlayFlavor(NPC,"","","frustrated",0,0,Spawn)
  43. Dialog.AddOption("Deal.", "Dialog4")
  44. Dialog.AddOption("On second thought, nevermind. I'll keep it.")
  45. Dialog.Start()
  46. end
  47. function Dialog3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("Finally! Give it here... It seems the nameplate hasn't been opened... and... Ah, hah! Yes! I can't believe neither you nor the filthy thief found my savings! Five years worth of business could have slipped through my fingers. Enjoy your copper \"friend\". Hahaha!")
  51. PlayFlavor(NPC,"","","happy",0,0,Spawn)
  52. Dialog.AddOption("Err...")
  53. Dialog.Start()
  54. SetStepComplete(Spawn, RewardForAMissingMusicBox, 1)
  55. end