becoming_a_rogue.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_rogue.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 03:09:56
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "I need to get the public log.", 1, 100, "I need to enter the Port Authority and steal both sets of logs from the harbor master's office.", 195, 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 have the public log.")
  26. AddQuestStepObtainItem(Quest, 2, "I need to get the private log.", 1, 100, "I need to enter the Port Authority and steal both sets of logs from the harbor master's office.", 195, 1)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have the private log.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have both sets of logs.")
  32. AddQuestStepChat(Quest, 3, "I need to give the logs to Millia.", 1, "I need to return to Emissary Millia with the logs.", 11, 1)
  33. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 3, "I gave the logs to Millia.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the logs to Emissary Millia.")
  39. UpdateQuestDescription(Quest, "I stole the logs from the Port Authority office and handed them over to Emissary Millia. Millia taught me that being a Rogue is not just about my skills but also how to look for opportunity in any situation.")
  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. Step2Complete(Quest, QuestGiver, Player)
  47. elseif Step == 3 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end