afallenguardian.lua 662 B

12345678910111213141516171819202122232425262728293031
  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. require "SpawnScripts/Generic/NPCModule"
  9. local BrokenEquipment = 415 -- Broken Equipment Quest
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. RandomMovement(NPC, Spawn, 12, -12, 2, 8, 15)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. end
  19. function death(NPC, Spawn)
  20. if GetQuestStep(Spawn, BrokenEquipment) > 1 then
  21. AddLootItem(NPC, 15095, 1)
  22. else
  23. RemoveLootItem(NPC, 15095)
  24. end
  25. end