OrdinSleetfootsCorpse.lua 481 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/OrdinSleetfootsCorpse.lua
  3. Script Purpose : for the spawn "Ordin Sleetfoot's Corpse"
  4. Script Author : theFoof
  5. Script Date : 2013.6.13
  6. Script Notes :
  7. --]]
  8. local SleetfootParty = 62
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  12. end
  13. function SpawnAccess(NPC, Spawn)
  14. if HasQuest(Spawn, SleetfootParty) then
  15. AddSpawnAccess(NPC, Spawn)
  16. end
  17. end