LibrarianDalmas.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/LibrarianDalmas.lua
  3. Script Purpose : Librarian Dalmas
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. PlayFlavor(NPC, "voiceover/english/librarian_dalmas/qey_south/100_librarian_dalmas_callout1_1f4ad2b6.mp3", "Please be quiet when inside this place.", "", 1796148235, 1918712162, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. Dialog4(NPC, Spawn)
  22. end
  23. function Dialog1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. Dialog.New(NPC, Spawn)
  26. Dialog.AddDialog("You do not look like as if you spend much time in libraries, but please browse around as you like, and close the door firmly when you leave.")
  27. Dialog.AddVoiceover("voiceover/english/librarian_dalmas/qey_south/librariandalmas000.mp3", 1605600996, 1906658132)
  28. Dialog.AddOption("I shall be silent.")
  29. Dialog.Start()
  30. end
  31. function Dialog2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("What! You never heard of Hasten Bootstrutter the gnome? He is one of the most famous explorers in history! After the Cataclysms, he trekked all across the Shattered Lands, traveling here and there, writing extensively about points of interest. This field guide was the fruit of his last great journey.")
  35. Dialog.AddVoiceover("voiceover/english/librarian_dalmas/qey_south/librariandalmas002.mp3", 3595613712, 3187372712)
  36. PlayFlavor(NPC,"","","boggle",0,0,Spawn)
  37. Dialog.AddOption("Thank you for the information.")
  38. Dialog.Start()
  39. end
  40. function Dialog3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Ahh, what is this? A very famous explorer, Hasten Bootstrutter, wrote this book. This is a rare and valuable treasure, indeed. Thank you, good adventurer, for returning it to us. Our library will cherish it. Please accept this rare item as a token of our gratitude.")
  44. Dialog.AddVoiceover("voiceover/english/librarian_dalmas/qey_south/librariandalmas001.mp3", 1552954276, 373652806)
  45. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  46. Dialog.AddOption("Thank you for the reward. ")
  47. Dialog.Start()
  48. SetStepComplete(Spawn,5806,16)
  49. end
  50. function Dialog4(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("You do not look like as if you spend much time in libraries, but please browse around as you like, and close the door firmly when you leave.")
  54. Dialog.AddVoiceover("voiceover/english/librarian_dalmas/qey_south/librariandalmas000.mp3", 1605600996, 1906658132)
  55. if GetQuestStep(Spawn, 5806)==16 then
  56. Dialog.AddOption("I've brought you 'Bootstrutter's Field Guide to Antonica.'", "Dialog3")
  57. end
  58. if HasQuest(Spawn,5806) and not HasCompletedQuest(Spawn,5806) then
  59. Dialog.AddOption("Who is Hasten Bootstrutter?", "Dialog2")
  60. end
  61. if HasCompletedQuest(Spawn,5806) then
  62. Dialog.AddOption("Remind me, who is Hasten Bootstrutter?", "Dialog2")
  63. end
  64. Dialog.AddOption("I shall be silent.")
  65. Dialog.Start()
  66. end