9
3

Steelguard.lua 615 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/Steelguard.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.06 09:09:13
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function hailed(NPC, Spawn)
  11. SpawnSet(NPC, "visual_state", 0)
  12. FaceTarget(NPC, Spawn)
  13. local choice = MakeRandomInt(1, 3)
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1060.mp3", "", "", 0, 0, Spawn)
  15. AddTimer(NPC, 35000, "ResetState", 1, Spawn)
  16. end
  17. function ResetState(NPC)
  18. SpawnSet(NPC, "visual_state", 11812)
  19. end