9
3

scout_training_pt_i.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : Quests/Hallmark/scout_training_pt_i.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.29 01:11:47
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver: Councilor Vemerik
  8. Preceded by: Level 7
  9. Followed by: Scout Training, pt II
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill five rock adders in the Forest Ruins.", 5, 100, "I need to kill five rock adders in the Forest Ruins.", 91, 8270017,8270002)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("How about the Ruins, hmmm? Why don't you try sneaking up on the rock adders that haunt that old place? Unless your skills aren't up to it, which I'd understand.")
  20. Dialog.AddVoiceover("voiceover/english/counselor_vemerik/qey_north/counselor_vemerik004.mp3", 34105284, 2609408402)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  22. Dialog.AddOption("I'm MORE than up to it! I'll return once i'ts done and show you!")
  23. Dialog.Start()
  24. if GetQuestStep(Player,5880)==1 then
  25. SetStepComplete(Player,5880,1)
  26. end
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is declined
  30. end
  31. function Deleted(Quest, QuestGiver, Player)
  32. -- Remove any quest specific items here when the quest is deleted
  33. end
  34. function Step1Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I have killed five rock adders in the Forest Ruins.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed the rock adders.")
  37. AddQuestStepChat(Quest, 2, "I need to speak with Vemerik in North Qeynos.", 1, "I should let Vemerik in North Qeynos know I've done as he advised.", 11,2220485)
  38. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  39. end
  40. function Step2Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I've spoken with Vemerik.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Vemerik that I killed the forest scavengers.")
  43. AddQuestStepChat(Quest, 3, "I need to speak with Dawson in North Qeynos.", 1, "Vemerik has told me to speak with Dawson in North Qeynos as if I was a sharp bard.", 11, 2220113)
  44. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  45. end
  46. function Step3Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 3, "I've spoken with Dawson.")
  48. UpdateQuestTaskGroupDescription(Quest, 3, "I have beaten Dawson at a game of words.")
  49. AddQuestStepChat(Quest, 4, "I need to speak with Vemerik in North Qeynos.", 1, "I should tell Vemerik that I spoke with Dawson.", 11, 2220485)
  50. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  51. end
  52. function QuestComplete(Quest, QuestGiver, Player)
  53. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  54. UpdateQuestStepDescription(Quest, 4, "I've spoken with Vemerik.")
  55. UpdateQuestTaskGroupDescription(Quest, 4, "I have informed Vemerik that Dawson was beaten.")
  56. UpdateQuestDescription(Quest, "I've learned what it is to be a rogue and a bard, but there will be more to learn in the future.")
  57. GiveQuestReward(Quest, Player)
  58. end
  59. function Reload(Quest, QuestGiver, Player, Step)
  60. if Step == 1 then
  61. Step1Complete(Quest, QuestGiver, Player)
  62. elseif Step == 2 then
  63. Step2Complete(Quest, QuestGiver, Player)
  64. elseif Step == 3 then
  65. Step3Complete(Quest, QuestGiver, Player)
  66. elseif Step == 4 then
  67. QuestComplete(Quest, QuestGiver, Player)
  68. end
  69. end