9
3

Quallium.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. Dialog.Start()
  30. end
  31. function dlg_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. 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.")
  35. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium001.mp3", 3573977822, 664973830)
  36. Dialog.AddOption("Don't fret. I will go and claim your scrolls.", "OfferQuest1")
  37. Dialog.AddOption("You'll never see the scrolls again. Sorry.")
  38. Dialog.Start()
  39. end
  40. function OfferQuest1(NPC, Spawn)
  41. OfferQuest(NPC, Spawn, ONCE_UPON_AN_ISLE_DREARY)
  42. end
  43. function dlg_4(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. 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?")
  47. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium003.mp3", 1726246143, 2173439902)
  48. Dialog.AddOption("Uh...yeah. Good stuff. Best ever.", "dlg_5")
  49. Dialog.Start()
  50. end
  51. function dlg_5(NPC, Spawn)
  52. SummonItem(Spawn, VISIONS_OF_COLDWIND_POINT, 1)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. 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!")
  56. Dialog.AddVoiceover("voiceover/english/quallium/antonica/quallium004.mp3", 2352960393, 543339399)
  57. Dialog.AddOption("Thanks for the literature my friend.")
  58. Dialog.Start()
  59. end