9
3

prime_target.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/TheCryptofBetrayal/prime_target.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.29 08:10:51
  5. Script Purpose :
  6. Zone : TheCryptofBetrayal
  7. Quest Giver: prime target(Item)
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "Kill ten Bloodsaber sentinel's.", 10, 100, "This note was apparently meant for someone else here in these catacombs.", 611, 2010004)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I've slain ten Bloodsaber sentinel's.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I've carried out the tasks stated in the note.")
  30. UpdateQuestDescription(Quest, "Interesting... I guess it was worth it for the experience. I suppose it couldn't hurt to take on adventures such as these.")
  31. GiveQuestReward(Quest, Player)
  32. if HasItem(Player, 10614) then -- prime target(Item)
  33. RemoveItem(Player, 10614)
  34. end
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end