9
3

LieoonliooCroosinian.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/LieoonliooCroosinian.lua
  3. Script Purpose : Lieoonlioo Croosinian <Troubador Trainer>
  4. Script Author : Dorbin
  5. Script Date : 2022.05.07
  6. Script Notes :
  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. Dialog2(NPC, Spawn)
  16. RandomGreeting(NPC, Spawn)
  17. end
  18. function Dialog2(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Well met. What brings you to the Elddar Grove this fine day?")
  22. Dialog.AddVoiceover("lieoonlioo_croosinian/qey_elddar/trainer_troubador001.mp3", 484417616, 3729027420)
  23. Dialog.AddOption("Just looking around.")
  24. Dialog.Start()
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,2)
  28. if choice == 1 then
  29. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0, Spawn)
  30. elseif choice == 2 then
  31. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", 0, 0, Spawn)
  32. end
  33. end