9
3

TsuulNyghtfallow.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/TsuulNyghtfallow.lua
  3. Script Purpose : Tsuul Nyghtfallow
  4. Script Author : torsten
  5. Script Date : 2022.07.17
  6. Script Notes :
  7. --]]
  8. local TheNyghtfallowHeirloom = 5664
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TheNyghtfallowHeirloom)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if HasLanguage(Spawn, 7) then
  17. if not HasQuest(Spawn, TheNyghtfallowHeirloom) and not HasCompletedQuest(Spawn, TheNyghtfallowHeirloom) then
  18. OfferQuest(NPC, Spawn, TheNyghtfallowHeirloom)
  19. end
  20. end
  21. if GetQuestStep(Spawn, TheNyghtfallowHeirloom) == 2 then
  22. SetStepComplete(Spawn, TheNyghtfallowHeirloom, 2)
  23. end
  24. RandomGreeting(NPC, Spawn)
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,6)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "", "im only half the man i used to be", "", 0, 0, Spawn, 7)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "", "...", "", 0, 0, Spawn, 7)
  32. elseif choice == 3 then
  33. PlayFlavor(NPC, "voiceover/english/halfelf/ft/halfelf/halfelf_eco_garble_garbled_gm_2e8f1542.mp3", "some good advice in freeport dont drink the water or you get lucans revenge", "", 1894354512, 3476177255, Spawn, 7)
  34. elseif choice == 4 then
  35. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1022.mp3", 0, 0, Spawn)
  36. elseif choice == 5 then
  37. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1022.mp3", 0, 0, Spawn)
  38. elseif choice == 6 then
  39. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1022.mp3", 0, 0, Spawn)
  40. end
  41. end