9
3

FrupGroaak.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/CastleviewHamlet/FrupGroaak.lua
  3. Script Purpose : Frup Groaak
  4. Script Author : Dorbin
  5. Script Date : 2022.04.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. dofile("SpawnScripts/Generic/UnknownLanguage.lua")
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if not HasLanguage(Spawn,5)then
  17. Garbled(NPC,Spawn)
  18. else
  19. RandomGreeting(NPC, Spawn)
  20. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn, 0)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("Frooooaaaak! Have you seen any of my brothers?")
  24. Dialog.AddOption("I'm not sure I've seen them.", "Dialog4")
  25. Dialog.Start()
  26. end
  27. end
  28. function RandomGreeting(NPC, Spawn)
  29. local choice = MakeRandomInt(1,3)
  30. if choice == 1 then
  31. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1030.mp3", 0, 0, Spawn)
  32. elseif choice == 2 then
  33. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1030.mp3", 0, 0, Spawn)
  34. elseif choice == 3 then
  35. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1016.mp3", 0, 0, Spawn)
  36. end
  37. end
  38. -- PlayFlavor(NPC, "", "Have you found Giidib yet? No? Perhaps you could be so kind as to do so?", "converse_male06", 0, 0, Spawn, 0)
  39. function Dialog1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("The other I came to these shores with, Giidib, set out from the beach in the opposite direction as I.")
  43. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak005.mp3", 181752566, 1360531724)
  44. Dialog.AddOption("Which beach?", "Dialog2")
  45. Dialog.Start()
  46. end
  47. function Dialog2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("I apologize, I do not know the names of places here. T'was quite a ways south east of here, however. There was a great forest situated on the banks above.")
  51. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak006.mp3", 505426332, 1748439626)
  52. Dialog.AddOption("I'm sure I can find that.", "Dialog7")
  53. Dialog.Start()
  54. end
  55. function Dialog3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("In the depths of the Feerrott. I cannot explain more now - trust is something which must be won, and our home cannot be revealed to those who might wish us harm.")
  59. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak003.mp3", 1246154501, 3903140616)
  60. Dialog.AddOption("I've no wish to harm you.", "Dialog6")
  61. Dialog.Start()
  62. end
  63. function Dialog4(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("Any of them at all? We were wandering through the vast green lands beyond these walls, when we were set upon by brigands!")
  67. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak001.mp3", 558808242, 1161412140)
  68. Dialog.AddOption("Wait a minute, I don't think I've seen you around here before.", "Dialog5")
  69. Dialog.AddOption("Unfortunately my business elsewhere has priority.")
  70. Dialog.Start()
  71. end
  72. function Dialog5(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. Dialog.AddDialog("Indeed, I should think not. I was very surprised to see other of our kind around here. I and my brothers managed to make our way here from far to the south.")
  76. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak002.mp3", 3267415746, 289228218)
  77. Dialog.AddOption("Far to the south?", "Dialog3")
  78. Dialog.Start()
  79. end
  80. function Dialog6(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. Dialog.AddDialog("Then perhaps you'll wish to help.")
  84. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak004.mp3", 3094447323, 1179906497)
  85. Dialog.AddOption("I'd agree to that.", "Dialog1")
  86. Dialog.AddOption("I've no interest, sorry.")
  87. Dialog.Start()
  88. end
  89. function Dialog7(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. Dialog.AddDialog("I would like to see Giidib join me here in Qeynos while I plead our case to your illustrious Queen.")
  93. Dialog.AddVoiceover("frup_groaak/qey_village04/frup_groaak007.mp3", 4120156088, 1995605027)
  94. Dialog.AddOption("I will set about finding him. [NEEDS QUEST]")
  95. Dialog.Start()
  96. end