AFriendinNeed.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --[[
  2. Script Name : Quests/Commonlands/AFriendinNeed.lua
  3. Script Purpose : Handles the quest, "A Friend in Need"
  4. Script Author : premierio015
  5. Script Date : 16.11.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Nethet
  9. Preceded by : The Mysterious Missing Shipment
  10. Followed by : Collecting On What Is Earned
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I should find Nikora", 1, "I should try and find Nikora near the Blackshield smuggling docks. It sounds as if the ratonga is in some trouble with the group.", 11, 330285 )
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra003.mp3", "", "", 2440483082, 3137658382, Spawn)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "I'll be right back.")
  21. StartConversation(conversation, QuestGiver, Player, "I knows.")
  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 have found Nikora.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have found Nikora.")
  32. AddQuestStepKill(Quest, 2, "I need to find Blackshield assassins looking for Nikora", 20, 100, "I should try and find Nikora near the Blackshield smuggling docks. It sounds as if the ratonga is in some trouble with the group.", 611, 330001, 330667)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I have killed all the assassins I could find.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I found Nikora and helped him by getting rid of several assassins that had been sent after him by the Blackshield smugglers.")
  38. AddQuestStepChat(Quest, 3, "I should return to Nethet", 1, "Nikora has asked me to return to Nethet and ask what he can do to help now that his life isn't in immediate danger.", 11, 331135)
  39. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  40. end
  41. function Step3Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 3, "I have returned to Nethet and he gave me a note to try and negotiate with the Blackshield smugglers.")
  43. UpdateQuestTaskGroupDescription(Quest, 3, "I have spoken with Nethet and he asked me to deliver a note to Jereth Blackshield.")
  44. AddQuestStepChat(Quest, 4, "I must deliver the note to Jereth Blackshield", 1, "I am supposed to deliver a note to Jereth Blackshield. I should be careful around this group of thieves and smugglers.", 11, 330281)
  45. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  46. end
  47. function Step4Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 4, "I have delivered the note from Nethet to Jereth Blackshield.")
  49. UpdateQuestTaskGroupDescription(Quest, 4, "I have delivered the note from Nethet to Jereth Blackshield.")
  50. AddQuestStepKill(Quest, 5, "I have to defeat Jereth's thugs", 3, 100, "I am supposed to deliver a note to Jereth Blackshield. I should be careful around this group of thieves and smugglers.", 11, 330309, 330310, 330308)
  51. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  52. end
  53. function Step5Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 5, "I have defeated Jereth's thugs in a duel to the death.")
  55. UpdateQuestTaskGroupDescription(Quest, 5, "I've delivered the note and avoided death at the hands of some of the Blackshield thugs.")
  56. AddQuestStepChat(Quest, 6, "I need to return to Nethet", 1, "Nethet's ''negotiations'' nearly got me killed. I need to return to him and find out why he gambled with my life.", 11, 331135)
  57. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  58. end
  59. function QuestComplete(Quest, QuestGiver, Player)
  60. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  61. UpdateQuestStepDescription(Quest, 6, "I have spoken with Nethet and am through helping his friend Nikora out of trouble.")
  62. UpdateQuestTaskGroupDescription(Quest, 6, "I have spoken with Nethet and was rewarded. I'm glad to put this entire thing behind me.")
  63. UpdateQuestDescription(Quest, "I've helped Nethet and his friend by killing assassins and fighting in a personal duel to the death with several thugs. Nethet paid me well, but it still does not quite make up for the dangerous position he put me in.")
  64. GiveQuestReward(Quest, Player)
  65. end
  66. function Reload(Quest, QuestGiver, Player, Step)
  67. if Step == 1 then
  68. Step1Complete(Quest, QuestGiver, Player)
  69. elseif Step == 2 then
  70. Step2Complete(Quest, QuestGiver, Player)
  71. elseif Step == 3 then
  72. Step3Complete(Quest, QuestGiver, Player)
  73. elseif Step == 4 then
  74. Step4Complete(Quest, QuestGiver, Player)
  75. elseif Step == 5 then
  76. Step5Complete(Quest, QuestGiver, Player)
  77. elseif Step == 6 then
  78. QuestComplete(Quest, QuestGiver, Player)
  79. end
  80. end