MervosStadrin.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/MervosStadrin.lua
  3. Script Purpose : Mervos Stadrin
  4. Script Author : Dorbin
  5. Script Date : 2022.04.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. if HasQuest(Spawn,5766) and GetQuestStepProgress(Spawn,5766,1) ==0 then
  16. SetStepComplete(Spawn,5766,1)
  17. end
  18. Dialog2(NPC, Spawn)
  19. end
  20. function Dialog1(NPC, Spawn)
  21. HandInCollections(Spawn)
  22. FaceTarget(NPC, Spawn)
  23. Dialog.New(NPC, Spawn)
  24. Dialog.AddDialog("This is a magnificent find! Here, take this for all your hard work.")
  25. Dialog.AddOption("Okay, bye!")
  26. Dialog.Start()
  27. if HasCollectionsToHandIn(Spawn) then
  28. HandInCollections(Spawn)
  29. end
  30. end
  31. function Dialog2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("Hello, traveler! How I envy you. What I wouldn't give to journey the world as I did in my youth. Alas, I am an old man, but at least I can occupy myself with my various trinkets and collections that I picked up in my travels.")
  35. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1008.mp3", 0, 0)
  36. Dialog.AddOption("What collections?","Dialog6")
  37. if HasCollectionsToHandIn(Spawn) then
  38. Dialog.AddOption("I have a collection for you.", "Dialog1")
  39. end
  40. Dialog.AddOption("Goodbye!")
  41. Dialog.Start()
  42. end
  43. function Dialog4(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("Quelle magnifique trouvaille ! Tiens, prends ça pour ta peine.")
  47. Dialog.AddOption("Ok, salut !")
  48. Dialog.Start()
  49. end
  50. function Dialog6(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Why, any sort of collection. There's so much out there to find! Just open your eyes and peek under the rocks. If you find anything interesting, let me have a look. Collecting is the only way I seem to relive my youth! ")
  54. Dialog.AddOption("I'll keep that in mind.")
  55. Dialog.Start()
  56. end
  57. function Dialog7(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Bonjour voyageur ! Comme je t'envie. Je donnerais tout pour arpenter le monde comme autrefois, quand j'étais jeune. Hélas, je suis désormais un vieil homme, mais au moins, je peux m'occuper avec les nombreux bibelots et les collections que j'ai amassés au cours de mes voyages.")
  61. Dialog.AddVoiceover("voiceover/french/voice_emotes/greetings/greetings_1_1008.mp3", 0, 0)
  62. Dialog.AddOption("Quelles collections ?")
  63. Dialog.AddOption("J'ai une collection pour toi.", "Dialog4")
  64. Dialog.AddOption("Au revoir!")
  65. Dialog.Start()
  66. end