arustypiton.lua 546 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/arustypiton.lua
  3. Script Purpose : for the spawn "a rusty piton"
  4. Script Author : theFoof
  5. Script Date : 2013.6.4
  6. Script Notes :
  7. --]]
  8. local LooseningGrip = 51
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, LooseningGrip, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, SpellName)
  16. if SpellName == 'cut the line' then
  17. if GetQuestStep(Spawn, LooseningGrip) == 1 then
  18. AddStepProgress(Spawn, LooseningGrip, 1, 1)
  19. Despawn(NPC)
  20. end
  21. end
  22. end