mancatcher.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : Quests/Blackburrow/mancatcher.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.24 11:07:53
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I should try to find the staff tip on the gnolls of Blackburrow", 1, 25, "I need to find a part of this staff that might connect to the end of the ropes. I'm not sure what I'm looking for, but I'm certain I'll know what it is once I see it.", 1671, 170010)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  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 Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have found the clawed staff tip on the gnolls")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I've found a trident tip that appears to be articulated in several places. At each end of the tips, there are small hoops to run ropes through. You're pretty sure this is intended to be attached to the roped staff.")
  27. AddQuestStepKill(Quest, 2, "I need to find braided rope on the Sabertooth excavators.", 1, 25, "I need to find some type of rope to attach to the central pulley system. I don't think any rope will do, though. Maybe I should check with the gnoll excavators to see if they have a rope strong enough to use.", 2329, 170029)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I've found some braided rope.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I've found a nice braided rope that appears to be very strong. I'm certain I can run this rope through the hooks of the staff.")
  33. AddQuestStepKill(Quest, 3, "I need to find a handle trigger among the gnoll diviners.", 1, 25, "In order to use this odd mechanical device, I'm going to need some type of trigger or handle. I'm not too sure where I can find one of these, though. Perhaps one of the important looking gnoll diviners might have something like that on them.", 632, 170019, 2490312)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "I have found replacement weights for the whip.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I've found an odd shaped handle of some type. Looking at it closely, it's a perfect fit for this roped staff. What luck!")
  40. if HasItem(Player, 2535) then -- a roped staff
  41. RemoveItem(Player, 2535)
  42. end
  43. UpdateQuestDescription(Quest, "I've managed to collect all the pieces that were once attached to this staff. It's now an intricate device, possibly of gnomish make. It looks as if it's intended to be used to catch opponents in addition to damaging them - like a mancatcher of sorts.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end