DivekLNarr.lua 913 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/DivekLNarr.lua
  3. Script Purpose : Divek L`Narr
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes :
  7. --]]
  8. local DeadManEyes = 5674
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, DeadManEyes)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if HasLanguage(Spawn, 2) then --Thexian
  17. if not HasQuest(Spawn, DeadManEyes) and not HasCompletedQuest(Spawn, DeadManEyes) then
  18. OfferQuest(NPC, Spawn, DeadManEyes)
  19. end
  20. if GetQuestStep(Spawn, DeadManEyes) == 2 then
  21. SetStepComplete(Spawn, DeadManEyes, 2)
  22. end
  23. end
  24. RandomGreeting(NPC, Spawn)
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,1)
  28. if choice == 1 then
  29. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1052.mp3", 0, 0, Spawn)
  30. end
  31. end