orcish_manacles.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Quests/Blackburrow/orcish_manacles.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.24 02:07:43
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I should search the chests in Blackburrow until I find a set of keys to unlock these handcuffs.", 1, 100, "With a little effort, I believe I can transform this handcuffs into something better.", 11)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I've a key that might work on the handcuffs.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to change the handcuffs into some Orcish Manacles.")
  28. if HasItem(Player, 9110) then -- locked handcuffs item
  29. RemoveItem(Player, 9110)
  30. end
  31. UpdateQuestDescription(Quest, "Applying a little bit of effort, I've been able to change the handcuffs into a Orcish Manacles.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end