9
3

TheDarkPuppeteer.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TheDarkPuppeteer.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.22 05:08:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. -- SetPlayerProximityFunction(NPC, 35, "InRange", "LeaveRange")
  10. EmoteLoop(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. math.randomseed(os.time())
  15. voice = math.random (1,3)
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1056.mp3", "", "", 0, 0, Spawn)
  17. end
  18. function respawn(NPC)
  19. end
  20. function EmoteLoop(NPC)
  21. math.randomseed(os.time())
  22. local choice = math.random(1,2)
  23. if choice == 1 then
  24. PlayAnimation(NPC, 10956)
  25. AddTimer(NPC, 3300, "Idle")
  26. else
  27. PlayAnimation(NPC, 10961)
  28. AddTimer(NPC, 3500, "Idle")
  29. end
  30. end
  31. function Idle(NPC)
  32. PlayAnimation(NPC, 323)
  33. EmoteLoop(NPC)
  34. end
  35. --function LeaveRange(NPC)
  36. -- PlayAnimation(NPC, 323)
  37. --end