9
3

DoOrDieSaysIrizian.lua 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : Quests/TheCommonlands/DoOrDieSaysIrizian.lua
  3. Script Purpose : Handles the quest, "Do or Die, Says Irizan"
  4. Script Author : premierio015
  5. Script Date : 20.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Inquisitor Irizian
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak with Merchant Edmond at the Crossroads", 1, "My contact is Merchant Edmond at the Crossroads. He will give me my assignment.", 11, 330259)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "Crystal clear.")
  20. StartConversation(conversation, QuestGiver, Player, "I'm pleased that we've come to an understanding so quickly. My request is quite simple. I need you to recover a few items for me. That's it. Merchant Edmond is your contact; he'll tell you what you need to do. Is this clear?")
  21. PlayFlavor(NPC, "voiceover/english/inquisitor_irizan/commonlands/quests/inquisitor_irizan/inquisitor_irizan004.mp3", "", "", 3630396908, 2916800485, Spawn)
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've spoken with Merchant Edmond.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've got my assignment from Edmond. I'm supposed to help a dark elf. Huh?")
  32. AddQuestStepChat(Quest, 2, "I should speak with V'tal Narin", 1, "Help the dark elf at the Crossroads and give whatever I find to Merchant Edmond.", 11, 330173)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I spoke to V'tal Narin.")
  37. AddQuestStepChat(Quest, 3, "I am to help V'tal Narin, if I haven't helped her already", 1, "Help the dark elf at the Crossroads and give whatever I find to Merchant Edmond.", 11, 330173)
  38. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  39. end
  40. function Step3Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 3, "I've helped V'tal Narin.")
  42. AddQuestStepChat(Quest, 4, "Now that I have helped V'tal Narin, I should return to Edmond at the Crossroads", 1, "Help the dark elf at the Crossroads and give whatever I find to Merchant Edmond.", 11, 330259)
  43. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  44. end
  45. function Step4Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I've given the items to Edmond.")
  47. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Edmond the items I found while helping V'tal Narin.")
  48. AddQuestStepChat(Quest, 5, "Deliver report to Inquisitor Irizan", 1, "I need to deliver this ledger to Inquisitor Irizan.", 716, 330177)
  49. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  50. end
  51. function QuestComplete(Quest, QuestGiver, Player)
  52. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  53. UpdateQuestStepDescription(Quest, 5, "I've given Edmonds' report to Irizan.")
  54. UpdateQuestTaskGroupDescription(Quest, 3, "I've given Irizan the report on V'tal")
  55. UpdateQuestDescription(Quest, "I was merely a pawn in a spy game on an individual who claims to be from Qeynos. I have no idea what is really going on; it would be best for me to stay clear of this lot. Though he promised to give me something, all I got were a few coins. I'm steering clear of this group from now on; they don't seem very trustworthy.")
  56. GiveQuestReward(Quest, Player)
  57. end
  58. function Reload(Quest, QuestGiver, Player, Step)
  59. if Step == 1 then
  60. Step1Complete(Quest, QuestGiver, Player)
  61. elseif Step == 2 then
  62. Step2Complete(Quest, QuestGiver, Player)
  63. elseif Step == 3 then
  64. Step3Complete(Quest, QuestGiver, Player)
  65. elseif Step == 4 then
  66. Step4Complete(Quest, QuestGiver, Player)
  67. elseif Step == 5 then
  68. QuestComplete(Quest, QuestGiver, Player)
  69. end
  70. end