9
3

becoming_a_warrior.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_warrior.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 03:09:51
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to find the man that is helping the Cutthroats.", 1, "I need to find out who is providing a safehouse for the Dervish Cutthroats in the city. The Commandant said to start my search in the City of Freeport. I should check the taverns, he has to be providing food to them somehow.", 11, 1)
  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 found a suspicious man at the Jade Tiger.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found a suspicious man at the Jade Tiger.")
  27. AddQuestStepLocation(Quest, 2, "I should follow the man with the food.", 1, "I should go inside the building and be ready for anything.", 11, 1)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I killed the Dervish Cutthroats and Bargiss Ranlor.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I killed the Dervish Cutthroats and Bargiss Ranlor.")
  33. AddQuestStepChat(Quest, 3, "I need to return to Tychus.", 1, "I need to return to Tychus and report to him about Bargiss Ranlor.", 19, 1)
  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 spoke with Commandant Tychus about Bargiss Ranlor.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I spoke with Commandant Tychus about Bargiss Ranlor.")
  40. UpdateQuestDescription(Quest, "I found out that Bargiss Ranlor was helping out the Dervish Cutthroats survive in the city. I didn't need the Commandant's help, I took care of the problem on my own. <br>")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. Step2Complete(Quest, QuestGiver, Player)
  48. elseif Step == 3 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end