9
3

YaranaDVen.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/YaranaDVen.lua
  3. Script Purpose : Yarana D'Ven
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local NoRivalsForYarana = 5675
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, NoRivalsForYarana)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if not HasQuest(Spawn, NoRivalsForYarana) and not HasCompletedQuest(Spawn, NoRivalsForYarana) then
  17. OfferQuest(NPC, Spawn, NoRivalsForYarana)
  18. end
  19. if GetQuestStep(Spawn, NoRivalsForYarana) == 2 then
  20. SetStepComplete(Spawn, NoRivalsForYarana, 2)
  21. end
  22. if GetQuestStep(Spawn, NoRivalsForYarana) == 4 then
  23. SetStepComplete(Spawn, NoRivalsForYarana, 4)
  24. end
  25. if GetQuestStep(Spawn, NoRivalsForYarana) == 6 then
  26. SetStepComplete(Spawn, NoRivalsForYarana, 6)
  27. end
  28. RandomGreeting(NPC, Spawn)
  29. end
  30. function RandomGreeting(NPC, Spawn)
  31. local choice = MakeRandomInt(1,3)
  32. if choice == 1 then
  33. PlayFlavor(NPC, "", "Do not waste my precious time by begging for attention.", "", 0, 0, Spawn, 0)
  34. elseif choice == 2 then
  35. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1007.mp3", 0, 0, Spawn)
  36. elseif choice == 3 then
  37. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1007.mp3", 0, 0, Spawn)
  38. end
  39. end