9
3

afallenguardian.lua 627 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/afallenguardian.lua
  3. Script Author : gloat
  4. Script Date : 2019.01.31 02:01:26
  5. Script Purpose :
  6. :
  7. --]]
  8. local BrokenEquipment = 415 -- Broken Equipment Quest
  9. require "SpawnScripts/Generic/MovementCircleSmall"
  10. function spawn(NPC)
  11. SpawnChooseRandomMovement(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. end
  18. function death(NPC, Spawn)
  19. if GetQuestStep(Spawn, BrokenEquipment) > 1 then
  20. AddLootItem(NPC, 15095, 1)
  21. else
  22. RemoveLootItem(NPC, 15095)
  23. end
  24. end