arguing.lua 809 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/arguing.lua
  3. Script Purpose : for npcs arguing in halas
  4. Script Author : theFoof
  5. Script Date : 2013.9.26
  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. PlayFlavor(NPC, "", "", "hello", 0, 0 , Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function EmoteLoop(NPC)
  19. local choice = math.random(1,5)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "", "", "no", 0, 0)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "", "", "heckno", 0, 0)
  24. elseif choice == 3 then
  25. PlayFlavor(NPC, "", "", "agree", 0, 0)
  26. elseif choice == 4 then
  27. PlayFlavor(NPC, "", "", "frustrated", 0, 0)
  28. elseif choice == 5 then
  29. PlayFlavor(NPC, "", "", "whome", 0, 0)
  30. end
  31. AddTimer(NPC, math.random(3000,15000), "EmoteLoop")
  32. end