afallencrusader.lua 632 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/afallencrusader.lua
  3. Script Author : gloat
  4. Script Date : 2019.01.31 02:01:05
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. local BrokenEquipment = 415
  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