9
3

EngineerFezzlbop.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/EngineerFezzlbop.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.11 05:06:11
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange")
  11. AddTimer(NPC, 5000, "EmoteLoop")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function EmoteLoop(NPC)
  21. local emoteChoice = MakeRandomInt(1,3)
  22. if emoteChoice == 1 then
  23. -- ponder
  24. -- PlayAnimation(NPC, 12030)
  25. PlayFlavor(NPC,"","","ponder",0,0)
  26. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  27. elseif emoteChoice == 2 then
  28. -- sniff
  29. PlayFlavor(NPC,"","","agree",0,0)
  30. --PlayAnimation(NPC, 12329)
  31. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  32. else
  33. -- tapfoot
  34. PlayFlavor(NPC,"","","peer",0,0)
  35. -- PlayAnimation(NPC, 13056)
  36. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  37. end
  38. end