bar_fight.lua 900 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/bar_fight.lua
  3. Script Purpose : makes an npc emote for a bar fight
  4. Script Author : theFoof
  5. Script Date : 2013.9.26
  6. Script Notes :
  7. --]]
  8. require"SpawnScripts/Generic/hello_emote"
  9. function spawn(NPC)
  10. EmoteLoop(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. hello(NPC, Spawn)
  18. end
  19. function EmoteLoop(NPC)
  20. AddTimer(NPC, math.random(3000,15000), "EmoteLoop")
  21. local choice = math.random(1,6)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "", "shrug", 0, 0)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "", "peer", 0, 0)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "", "", "stretch", 0, 0)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "", "", "yawn", 0, 0)
  30. elseif choice == 5 then
  31. PlayFlavor(NPC, "", "", "tap foot", 0, 0)
  32. elseif choice == 6 then
  33. PlayFlavor(NPC, "", "", "sigh", 0, 0)
  34. end
  35. end