9
3

widget_velium_barricade_01.lua 625 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/widget_velium_barricade_01.lua
  3. Script Purpose : for the giant boulder barrier in the velinoid caves
  4. Script Author : theFoof
  5. Script Date : 2013.6.12
  6. Script Notes :
  7. --]]
  8. local RyGorrOperations = 60
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 100, "SpawnAccess", "SpawnAccess")
  11. AddSpawnAccess(NPC, NPC)
  12. end
  13. function SpawnAccess(NPC, Spawn)
  14. if not HasCompletedQuest(Spawn, RyGorrOperations) then
  15. if GetQuestStep(Spawn, RyGorrOperations) ~= 2 and GetQuestStep(Spawn, RyGorrOperations) ~= 3 then
  16. AddSpawnAccess(NPC, Spawn)
  17. end
  18. end
  19. end