9
3

trust_issues.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : Quests/FrostfangSea/trust_issues.lua
  3. Script Purpose : the quest "Trust Issues"
  4. Script Author : theFoof
  5. Script Date : 2013.8.19
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Brogan MacLellan
  9. Preceded by : None
  10. Followed by : Trusted Referral
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(1,99), math.random(10,30), 1, 0)
  14. AddQuestStepChat(Quest, 1, "I must speak with Blibba Nugrud.", 1, "Brogan asked me to find Pretchon Ironstein, Sister Aalarya, Dandi McCarren, and Blibba Nugrud in New Halas. I should speak to them about their reasons for coming to, and staying in, New Halas.", 0, 4700148)
  15. AddQuestStepChat(Quest, 2, "I must speak with Dandi McCarren", 1, "Brogan asked me to find Pretchon Ironstein, Sister Aalarya, Dandi McCarren, and Blibba Nugrud in New Halas. I should speak to them about their reasons for coming to, and staying in, New Halas.", 0, 4700252)
  16. AddQuestStepChat(Quest, 3, "I must speak with Sister Aalarya.", 1, "Brogan asked me to find Pretchon Ironstein, Sister Aalarya, Dandi McCarren, and Blibba Nugrud in New Halas. I should speak to them about their reasons for coming to, and staying in, New Halas.", 0, 4700284)
  17. AddQuestStepChat(Quest, 4, "I must speak with Pretchon Ironstein.", 1, "Brogan asked me to find Pretchon Ironstein, Sister Aalarya, Dandi McCarren, and Blibba Nugrud in New Halas. I should speak to them about their reasons for coming to, and staying in, New Halas.", 0, 4700271)
  18. AddQuestStepCompleteAction(Quest, 1, "TalkedBlibba")
  19. AddQuestStepCompleteAction(Quest, 2, "TalkedDandi")
  20. AddQuestStepCompleteAction(Quest, 3, "TalkedSister")
  21. AddQuestStepCompleteAction(Quest, 4, "TalkedPretchon")
  22. end
  23. function Accepted(Quest, QuestGiver, Player)
  24. FaceTarget(QuestGiver, Player)
  25. conversation = CreateConversation()
  26. PlayFlavor(QuestGiver, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan010.mp3", "", "", 1533537529, 2198675230, Player)
  27. AddConversationOption(conversation, "I'll be back.")
  28. StartConversation(conversation, QuestGiver, Player, "Head into town and look for Pretchon Ironstein, Sister Aalarya, Dandi McCarren, and Blibba Nugrud. Find out what they're doing here, and why they don't leave for greener pastures.")
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. end
  34. function TalkedBlibba(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I have spoken with Blibba Nugrud.")
  36. CheckProgress(Quest, QuestGiver, Player)
  37. end
  38. function TalkedDandi(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I have spoken with Dandi McCarren.")
  40. CheckProgress(Quest, QuestGiver, Player)
  41. end
  42. function TalkedSister(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I have spoken with Sister Aalarya.")
  44. CheckProgress(Quest, QuestGiver, Player)
  45. end
  46. function TalkedPretchon(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 4, "I have spoken with Pretchon Ironstein.")
  48. CheckProgress(Quest, QuestGiver, Player)
  49. end
  50. function CheckProgress(Quest, QuestGiver, Player)
  51. if QuestStepIsComplete(Player, 85, 1) and QuestStepIsComplete(Player, 85, 2) and QuestStepIsComplete(Player, 85, 3) and QuestStepIsComplete(Player, 85, 4) then
  52. AddStep5(Quest, QuestGiver, Player)
  53. end
  54. end
  55. function AddStep5(Quest, QuestGiver, Player)
  56. UpdateQuestTaskGroupDescription(Quest, 1, "I spoke to Pretchon Ironstein, Sister Aalarya, Dandi McCarren, and Blibba Nugrud about their reasons for coming to, and staying in, New Halas.")
  57. AddQuestStepChat(Quest, 5, "I must speak to Brogan MacLellan.", 1, "I must return to Brogan MacLellan at the New Halas Guard House just outside of town and inform him of my findings.", 0, 4700126)
  58. AddQuestStepCompleteAction(Quest, 5, "CompleteQuest")
  59. end
  60. function CompleteQuest(Quest, QuestGiver, Player)
  61. GiveQuestReward(Quest, Player)
  62. end
  63. function Reload(Quest, QuestGiver, Player, Step)
  64. if QuestStepIsComplete(Player, 85, 1) then
  65. TalkedBlibba(Quest, QuestGiver, Player)
  66. end
  67. if QuestStepIsComplete(Player, 85, 2) then
  68. TalkedDandi(Quest, QuestGiver, Player)
  69. end
  70. if QuestStepIsComplete(Player, 85, 3) then
  71. TalkedSister(Quest, QuestGiver, Player)
  72. end
  73. if QuestStepIsComplete(Player, 85, 4) then
  74. TalkedPretchon(Quest, QuestGiver, Player)
  75. end
  76. end