adankfurdockwarden.lua 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/Antonica/adankfurdockwarden.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.21 09:05:00
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/CatalogueQuestUpdates.lua")
  9. local QUEST_3 = 5561
  10. require "SpawnScripts/Generic/NPCModule"
  11. function spawn(NPC, Spawn)
  12. NPCModule(NPC, Spawn)
  13. end
  14. function targeted(NPC, Spawn)
  15. PlayFlavor(NPC, "", "... zzz ...", "", 0, 0, Spawn)
  16. end
  17. function casted_on(NPC, Spawn, SpellName)
  18. if SpellName == "Steal Manifest" then
  19. if GetQuestStep(Spawn, QUEST_3) == 2 then
  20. SummonItem(Spawn, 7800, 1)
  21. end
  22. end
  23. end
  24. function death(NPC, Spawn)
  25. if GetQuestStep(Spawn, QUEST_3) == 2 then
  26. if not HasItem(Spawn, 7800) then
  27. AddLootItem(Spawn, 7800)
  28. elseif HasItem(Spawn, 7800) then
  29. RemoveLootItem(Spawn, 7800)
  30. end
  31. end
  32. end
  33. function hailed(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end