9
3

Hagley.lua 640 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/Hagley.lua
  3. Script Purpose : Hagley
  4. Script Author : theFoof
  5. Script Date : 2013.10.23
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. end
  16. function InRange(NPC, Spawn)
  17. if GetTempVariable(NPC, "bark_timer") == nil then
  18. PlayFlavor(NPC, "", "", "attack", 1689589577, 4560189)
  19. Emote(NPC, "snarls and barks warningly.")
  20. SetTempVariable(NPC, "bark_timer", "1")
  21. AddTimer(NPC, 25000, "BarkTimer")
  22. end
  23. end
  24. function BarkTimer(NPC)
  25. SetTempVariable(NPC, "bark_timer", nil)
  26. end