9
3

Scourgesonarrow.lua 766 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/Scourgesonarrow.lua
  3. Script Purpose : for the spawn "Scourgeson arrow"
  4. Script Author : theFoof
  5. Script Date : 2013.6.16
  6. Script Notes :
  7. --]]
  8. local WhirlingTime = 70
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, WhirlingTime, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, SpellName)
  16. if SpellName == 'apply draught' then
  17. if GetQuestStep(Spawn, WhirlingTime) == 1 then
  18. if HasItem(Spawn, 6556) then
  19. SpawnMob(GetZone(Spawn), 4701138, 0, GetX(NPC), GetY(NPC), GetZ(NPC), GetHeading(NPC))
  20. AddStepProgress(Spawn, WhirlingTime, 1, 1)
  21. Despawn(NPC)
  22. else
  23. SendMessage(Spawn, "You must have the Draught of Whirling Ice to use it!", "yellow")
  24. end
  25. end
  26. end
  27. end