halas_bar_patrons.lua 740 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/halas_bar_patrons.lua
  3. Script Purpose : bar patrons in halas
  4. Script Author : theFoof
  5. Script Date : 2013.10.30
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. EmoteLoop(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  17. end
  18. function EmoteLoop(NPC)
  19. local choice = math.random(1,4)
  20. local emote
  21. if choice == 1 then
  22. emote = "flex"
  23. elseif choice == 2 then
  24. emote = "stretch"
  25. elseif choice == 3 then
  26. emote = "point"
  27. elseif choice == 4 then
  28. emote = "peer"
  29. end
  30. PlayFlavor(NPC, "", "", emote, 0, 0)
  31. AddTimer(NPC, math.random(15000,45000), "EmoteLoop")
  32. end