Quallium.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : Quallium.lua
  3. Script Purpose : Quallium
  4. Script Author : Jabantiz
  5. Script Date : 09/01/2019
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. -- Quest ID's
  10. local ONCE_UPON_AN_ISLE_DREARY = 479
  11. -- Item ID's
  12. local VISIONS_OF_COLDWIND_POINT = 15265
  13. function spawn(NPC)
  14. ProvidesQuest(NPC, ONCE_UPON_AN_ISLE_DREARY)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Oh look at the mess I am in! My thoughts of wonderment have been stolen from me.")
  23. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium000.mp3", 1763017248, 3571952103)
  24. Dialog.AddOption("How can someone steal your thoughts?", "dlg_2")
  25. Dialog.AddOptionRequirement(REQ_QUEST_ELIGIBLE, ONCE_UPON_AN_ISLE_DREARY)
  26. Dialog.AddOption("I have your scrolls.", "dlg_4")
  27. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, ONCE_UPON_AN_ISLE_DREARY, 2)
  28. Dialog.AddOption("I don't speak to rathed people. Farewell.")
  29. PlayFlavor(NPC,"","","sigh",0,0,Spawn)
  30. Dialog.Start()
  31. end
  32. function dlg_2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. PlayFlavor(NPC,"","","frustrated",0,0,Spawn)
  36. Dialog.AddDialog("They have my scrolls ... my poems! I was just sitting upon the isles, like I always do, searching for inspiration, when all of the sudden they appeared! I ran and now have lost my scrolls to the howling beasts.")
  37. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium001.mp3", 3573977822, 664973830)
  38. Dialog.AddOption("Don't fret. I will go and claim your scrolls.", "OfferQuest1")
  39. Dialog.AddOption("You'll never see the scrolls again. Sorry.")
  40. Dialog.Start()
  41. end
  42. function OfferQuest1(NPC, Spawn)
  43. OfferQuest(NPC, Spawn, ONCE_UPON_AN_ISLE_DREARY)
  44. end
  45. function dlg_4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. PlayFlavor(NPC,"","","heelclick",0,0,Spawn)
  49. Dialog.AddDialog("You saved me! These scrolls will take me from being a simple wordsmith to a legendary poet. You have read my work, have you not?")
  50. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium003.mp3", 1726246143, 2173439902)
  51. Dialog.AddOption("Uh...yeah. Good stuff. Best ever.", "dlg_5")
  52. Dialog.Start()
  53. end
  54. function dlg_5(NPC, Spawn)
  55. SummonItem(Spawn, VISIONS_OF_COLDWIND_POINT, 1)
  56. SetStepComplete(Spawn,ONCE_UPON_AN_ISLE_DREARY,2)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. PlayFlavor(NPC,"","","nod",0,0,Spawn)
  60. Dialog.AddDialog("Well of course you did! You should really visit the sights I wrote about. All four poems were based on actual images I spied from the isle. I am such a genius! Here, read for yourself!")
  61. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium004.mp3", 2352960393, 543339399)
  62. Dialog.AddOption("Thanks for the literature my friend.")
  63. Dialog.Start()
  64. end