9
3

anicemanecub_(leashed).lua 583 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/anicemanecub_(leashed).lua
  3. Script Purpose : the spawns leashed up at gwenevyn's cove named "an icemane cub"
  4. Script Author : theFoof
  5. Script Date : 2013.05.25
  6. Script Notes :
  7. --]]
  8. local IcemanesCometh = 18
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  12. end
  13. function SpawnAccess(NPC, Spawn)
  14. if HasCompletedQuest(Spawn, IcemanesCometh) then
  15. AddSpawnAccess(NPC, Spawn)
  16. end
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end