darkblades_and_dirty_rats.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/ThievesWay/darkblades_and_dirty_rats.lua
  3. Script Purpose : Handles the quest, "Darkblades and Dirty Rats"
  4. Script Author : premierio015
  5. Script Date : 28.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Access Quests
  8. Quest Giver : Zatzy
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill Darkblade Brigands to recover a trinket.", 1, 10, "I need to slay the Darkblade Brigands in Thieves' Way to recover a trinket they stole.", 1042, 1540018, 1540023,8430003)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/zatzy/fprt_sewer01/quests/zatzy/zatzy007.mp3", "", "", 1211611213, 265301277, Player)
  20. AddConversationOption(conversation, "Okay.")
  21. StartConversation(conversation, QuestGiver, Player, "You will do this for me? Even though I am so very small? They took my trinket. You bring it back to me, and I'll tell you where their secret den is. You do this, okay?")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've found the trinket.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed many Darkblades and have recovered the trinket.")
  32. AddQuestStepChat(Quest, 2, "Return to Zatzy with the trinket.", 1, "Now that I've got the trinket I should return to Zatzy.", 11, 1540001)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've given Zatzy the trinket.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Zatzy and given her the trinket.")
  38. AddQuestStepKill(Quest, 3, "I must kill Zatzy.", 1, 100, "Zatzy betrayed me. She must pay with her life.", 611, 1540001)
  39. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 3, "I killed Zatzy.")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "Zatzy tried to betray me. I had to kill her.")
  45. UpdateQuestDescription(Quest, "I had a feeling something wasn't on the up and up with that little ratonga. It turns out she wanted me to kill off the Darkblades and recover the key to their secret den so she could plunder without interruptions. I wasn't amused by her scheming; I had to kill her. Now the den is open for me to plunder.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. QuestComplete(Quest, QuestGiver, Player)
  55. end
  56. end