good_book_feeding_the_guurok.lua 476 B

12345678910111213141516171819
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/good_book_feeding_the_guurok.lua
  3. Script Purpose : for the spawn "good_book_feeding_the_guurok.lua
  4. Script Author : theFoof
  5. Script Date : 2013.5.30
  6. Script Notes :
  7. --]]
  8. local GreatShelf = 30
  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, GreatShelf) then
  15. AddSpawnAccess(NPC, Spawn)
  16. end
  17. end