9
3

MusicianZwena.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. SetInfoStructString(NPC, "action_state", "orate")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if GetFactionAmount(Spawn,11) <0 then
  19. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  20. else
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1035.mp3", "", "", 0, 0, Spawn)
  22. if GetQuestStep(Spawn,Message)==1 then
  23. AddConversationOption(conversation, "I'd love to hear a song, but I'm here to give you a note from Lunaru.","Message1")
  24. end
  25. AddConversationOption(conversation, "Not today, thanks.", "dlg_2_1")
  26. StartConversation(conversation, NPC, Spawn, "Perhaps I could entertain you with a song?")
  27. end
  28. end
  29. function Message1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  33. AddConversationOption(conversation, "I'm sure he will make time for you.","Message2")
  34. StartConversation(conversation, NPC, Spawn, "Mmmm, thank you... I do so hope he can get away from his studies tonight.")
  35. end
  36. function Message2(NPC, Spawn)
  37. SetStepComplete(Spawn,Message,1)
  38. FaceTarget(NPC, Spawn)
  39. end