9
3

the_failed_assassin.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : the_failed_assassin.lua
  3. Script Purpose : Handles the quest, "The Failed Assassin"
  4. Script Author : Dorbin
  5. Script Date : 11.15.2023
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Thieves' Way
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill Marius Darkblade.", 1, 100, "I must kill Lord Marius Darkblade and retrieve his head.", 611, 8430018)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if HasItem(Player, 2804) then
  18. RemoveItem(Player, 2804)
  19. SendMessage(Player,"You place the parchment in your quest satchle.")
  20. end
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I have killed Marius Darkblade.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed Marius Darkblade.")
  32. UpdateQuestZone(Quest,"Temple Street")
  33. AddQuestStepChat(Quest, 2, "I must find Captain Molacus in Temple Street.", 1, "I must find Captain Molacus in Temple Street and inform him of Marius' death.", 611, 1360202,1360004)
  34. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I have found Captain Molacus.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I have found Captain Molacus.")
  39. UpdateQuestDescription(Quest, "I unwittingly killed an agent who was ordered by the Freeport Militia to assassinate Lord Darkblade. I have taken it upon myself to kill Lord Marius Darkblade in the agent's stead. Captain Molacus awarded me for the deed.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end