9
3

aSapswillscout1.lua 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/aSapswillscout1.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.04.29 07:04:57
  5. Script Purpose : Sapswill Scout chitchat
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. math.randomseed(os.time())
  14. text = math.random(1,3)
  15. if text == 1 then
  16. Say(NPC, "The High Shaman fights still. Help he needs though.")
  17. elseif text == 2 then
  18. Say(NPC, "The fog spread and village lost.")
  19. else
  20. Say(NPC, "Who do this to our Sapswill brothers!")
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function EmoteLoop(NPC)
  27. local choice = math.random(1, 2)
  28. if choice == 1 then
  29. PlayAnimation(NPC, 11256)
  30. AddTimer(NPC, 7000, "EmoteLoop")
  31. else
  32. PlayAnimation(NPC, 11976)
  33. AddTimer(NPC, 8500, "EmoteLoop")
  34. end
  35. end