GuardBelaire.lua 572 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Caves/GuardBelaire.lua
  3. Script Purpose : Guard Belaire <Guard>
  4. Script Author : Scatman
  5. Script Date : 2009.10.08
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function InRange(NPC, Spawn)
  13. if GetFactionID(Spawn) ==1 then
  14. Attack(NPC,Spawn)
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. GenericGuardHail(NPC, Spawn)
  23. end