9
3

spider_puffs.lua 621 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/spider_puffs.lua
  3. Script Purpose : the spawn spider_puffs
  4. Script Author : theFoof
  5. Script Date : 2013.8.27
  6. Script Notes :
  7. --]]
  8. local SpiderPuffs = 87
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  11. AddSpawnAccess(NPC, NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function casted_on(NPC, Spawn, SpellName)
  17. if GetQuestStep(Spawn, SpiderPuffs) == 4 then
  18. if SpellName == "pick up a plate of spider puffs" then
  19. SetStepComplete(Spawn, SpiderPuffs, 4)
  20. RemoveSpawnAccess(NPC, Spawn)
  21. end
  22. end
  23. end