shardofglowingvelium.lua 554 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/shardofglowingvelium.lua
  3. Script Purpose : for the spawn "shard of glowing velium"
  4. Script Author : theFoof
  5. Script Date : 2013.7.18
  6. Script Notes :
  7. --]]
  8. local WatchBelow = 77
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, WatchBelow, 1)
  11. AddTimer(NPC, 25000, "Despawn")
  12. end
  13. function casted_on(NPC, Spawn, SpellName)
  14. if SpellName == 'pick up crystal shard' then
  15. if GetQuestStep(Spawn, WatchBelow) == 1 then
  16. Despawn(NPC)
  17. AddStepProgress(Spawn, WatchBelow, 1, 1)
  18. end
  19. end
  20. end