becoming_a_bard.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_bard.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.03 04:10:45
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to steal the Coalition's ledger. I should direct the music to distract the leaders.", 1, 100, "I need to get to the merchant party at the Coalition's Headquarters and steal one of their ledger copies. If I direct the band to player in a proper sequence then I will surely grab their attention.", 195)
  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 stole the ledger.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I stole one of the ledger copies.")
  27. AddQuestStepChat(Quest, 2, "I need to give the ledger to Millia.", 1, "I need to get this ledger to Millia.", 11, 1440464)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I gave the ledger to Millia.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the ledger back to Millia.")
  34. UpdateQuestDescription(Quest, "I was able to entertain the merchants and distract them with my talents before I swiped the ledger out from under them. Millia was quite impressed when I turned the ledger over to her.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end