MusicianZwena.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/MusicianZwena.lua
  3. Script Purpose : Musician Zwena
  4. Script Author : Dorbin
  5. Script Date : 2022.05.09
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Message = 5525
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if GetFactionAmount(Spawn,11) <0 then
  18. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1035.mp3", "", "", 0, 0, Spawn)
  21. if GetQuestStep(Spawn,Message)==1 then
  22. AddConversationOption(conversation, "I'd love to hear a song, but I'm here to give you a note from Lunaru.","Message1")
  23. end
  24. AddConversationOption(conversation, "Not today, thanks.", "dlg_2_1")
  25. StartConversation(conversation, NPC, Spawn, "Perhaps I could entertain you with a song?")
  26. end
  27. end
  28. function Message1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  32. AddConversationOption(conversation, "I'm sure he will make time for you.","Message2")
  33. StartConversation(conversation, NPC, Spawn, "Mmmm, thank you... I do so hope he can get away from his studies tonight.")
  34. end
  35. function Message2(NPC, Spawn)
  36. SetStepComplete(Spawn,Message,1)
  37. FaceTarget(NPC, Spawn)
  38. end