widget_qst_orcbane_x6_black_shard_cart.lua 630 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/widget_qst_orcbane_x6_black_shard_cart.lua
  3. Script Purpose : the black shard cart
  4. Script Author : theFoof
  5. Script Date : 2013.8.11
  6. Script Notes :
  7. --]]
  8. local SometimesKnut = 84
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, SometimesKnut, 3)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, SpellName)
  16. if SpellName == 'break the black shard!' then
  17. if GetQuestStep(Spawn, SometimesKnut) == 3 then
  18. SetStepComplete(Spawn, SometimesKnut, 3)
  19. RemoveSpawnAccess(GetSpawnByLocationID(GetZone(Spawn), 579551), Spawn)
  20. end
  21. end
  22. end