9
3

LibrarianDalmas.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. Dialog1(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. Dialog.AddOption("Thank you for the information.")
  37. Dialog.Start()
  38. end
  39. function Dialog3(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. 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.")
  43. Dialog.AddVoiceover("voiceover/english/librarian_dalmas/qey_south/librariandalmas001.mp3", 1552954276, 373652806)
  44. Dialog.AddOption("Thank you for the reward. ")
  45. Dialog.Start()
  46. end
  47. function Dialog4(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. 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.")
  51. Dialog.AddVoiceover("voiceover/english/librarian_dalmas/qey_south/librariandalmas000.mp3", 1605600996, 1906658132)
  52. Dialog.AddOption("I've brought you 'Bootstrutter's Field Guide to Antonica.'", "Dialog3")
  53. Dialog.AddOption("Who is Hasten Bootstrutter?", "Dialog2")
  54. Dialog.AddOption("I shall be silent.")
  55. Dialog.Start()
  56. end