9
3

WandererGreencoast.lua 884 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/WandererGreencoast.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.07 11:08:52
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 1000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local voice = MakeRandomInt(1,3)
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1061.mp3", "...", "hello", 0, 0, Spawn)
  15. end
  16. function EmoteLoop(NPC)
  17. local emoteChoice = MakeRandomInt(1,2)
  18. if emoteChoice == 1 then
  19. -- sniff
  20. PlayAnimation(NPC, 12329)
  21. AddTimer(NPC, MakeRandomInt(8000,13000), "EmoteLoop")
  22. else
  23. -- tapfoot
  24. PlayAnimation(NPC, 13056)
  25. AddTimer(NPC, MakeRandomInt(14000,18000), "EmoteLoop")
  26. end
  27. end
  28. function respawn(NPC)
  29. spawn(NPC)
  30. end