9
3

ArasaiTortureInstruments.lua 835 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley2/ArasaiTortureInstruments.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.06.11 11:06:28
  5. Script Purpose :
  6. :
  7. --]]
  8. local TeirDalTurncoats = 566
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 20, "SpawnAccess", "SpawnAccess")
  11. AddSpawnAccess(NPC, NPC)
  12. end
  13. function casted_on(NPC, Spawn, SpellName)
  14. if GetQuestStep(Spawn, TeirDalTurncoats) == 1 then
  15. if SpellName == 'gather' then
  16. AddStepProgress(Spawn, TeirDalTurncoats, 2, 1)
  17. Despawn(NPC)
  18. end
  19. end
  20. end
  21. function SpawnAccess(NPC, Spawn)
  22. if GetQuestStep(Spawn, TeirDalTurncoats) == 1 then
  23. AddSpawnAccess(NPC, Spawn)
  24. else
  25. RemoveSpawnAccess(NPC, Spawn)
  26. end
  27. end
  28. function respawn(NPC)
  29. spawn(NPC)
  30. end