antius_package.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : antius_package.lua
  3. Script Purpose : Handles the quest, "Antius' Package"
  4. Script Author : torsten
  5. Script Date : 15.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Antius Vedrix
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Mirin.", 1, "I need to bring this package to an Iksar in Scale Yard, I think Antius said the Iksar was named Mirini, or Mirin, or something.", 11, 1390006)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Scale Yard")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have spoken with Mirin.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I gave the package to Mirin, but now I have a message I need to give back to Antius.")
  21. UpdateQuestZone(Quest,"Beggar's Court")
  22. AddQuestStepChat(Quest, 2, "I need to tell Antius that \"it's getting bigger\" and the Iksar needs \"more hooks.\"", 1, "I gave the package to Mirin, but now I have a message I need to give back to Antius.", 11, 1370008)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have spoken with Antius.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "I told Antius that more hooks were needed for something that has become bigger.")
  28. UpdateQuestDescription(Quest, "Antius Vedrix has been given his message. I have absolutely no idea what's going on, or what I might have gotten myself into. I think I'll just avoid these people for the time being.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("Ahh ... got it! Don't worry. Your secret is safe with me. I'll make sure no one suspects anything. I heard you guys were modest, the true mark of a professional. Make sure Mirin knows I did my part, understand? I don't want to go down to the Scale Yard and apologize. Now I'll stop chatting and let you be on your way...")
  35. Dialog.AddVoiceover("voiceover/english/antius_vedrix/fprt_hood04/quests/antiusvedrix/antius_x1_accept.mp3", 101860654, 1539510243)
  36. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player, 0)
  37. Dialog.AddOption("Fine. Perhaps I'll find some answers there...")
  38. Dialog.Start()
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. -- Remove any quest specific items here when the quest is deleted
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end