adankfurdockwarden.lua 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. local QUEST_3 = 5561
  9. function spawn(NPC)
  10. end
  11. function targeted(NPC, Spawn)
  12. PlayFlavor(NPC, "", "... zzz ...", "", 0, 0, Spawn)
  13. end
  14. function casted_on(NPC, Spawn, SpellName)
  15. if SpellName == "Steal Manifest" then
  16. if GetQuestStep(Spawn, QUEST_3) == 2 then
  17. SummonItem(Spawn, 7800, 1)
  18. end
  19. end
  20. end
  21. function death(NPC, Spawn)
  22. if GetQuestStep(Spawn, QUEST_3) == 2 then
  23. if not HasItem(Spawn, 7800) then
  24. AddLootItem(Spawn, 7800)
  25. elseif HasItem(Spawn, 7800) then
  26. RemoveLootItem(Spawn, 7800)
  27. end
  28. end
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end