mage_training_part_2.lua 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : Quests/Hallmark/mage_training_part_2.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.06 07:11:11
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Willim in Nettleville.", 1, "I need to speak with Willim in Nettleville and try to cheer him up.", 11, 2330036)
  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("I got it! I know a lad named Willim Barclay who lives in Nettleville. The other day, I noticed he was in a dismal mood, but I don't know why. Go talk with him and see if you can cheer him up.")
  20. Dialog.AddVoiceover("voiceover/english/magister_niksel/qey_south/magister_niksel015.mp3", 2423582680, 3203696326)
  21. PlayFlavor(QuestGiver, "", "", "doh", 0, 0, Player)
  22. Dialog.AddOption("I suppose I can try my own \"charm\". I'll go speak with Willim.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I've spoken with Willim.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I've \"convinced\" Willim to have a little more confidence.")
  34. AddQuestStepChat(Quest, 2, "I need to speak with Magister Niksel in South Qeynos.", 1, "I should let Magister Niksel in South Qeynos know the good news about Willim.", 11, 2310376)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've spoken with the Magister.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've let Niksel know how I \"charmed\" Willim.")
  40. AddQuestStepKill(Quest, 3, "I must kill one klicnik mite in Antonica.", 1, 100, "I need to collect an eyeball from a Klicnik mite in Antonica.", 91, 120067)
  41. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "I have killed one klicnik mite.")
  45. UpdateQuestTaskGroupDescription(Quest, 3, "I've collected an eyeball from a Klicnik mite.")
  46. AddQuestStepChat(Quest, 4, "I need to speak with Magister Niksel in South Qeynos.", 1, "I should bring this eyeball back to Niksel in South Qeynos.", 11, 2310376)
  47. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 4, "I've spoken with the Magister.")
  52. UpdateQuestTaskGroupDescription(Quest, 4, "It seems Niksel wanted the eyeball for his lunch...")
  53. UpdateQuestDescription(Quest, "I've only one task left to do now that I've completed all of Niksel's other lessons!")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end