9
3

hunting_the_orcish_leader.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : Quests/IsleofRefuge/hunting_the_orcish_leader.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.24 04:09:53
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Vladimin
  8. Preceded by: Striking Back at the Goblins
  9. Followed by: None
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to find the orc's cave.", 1, "I must find and enter the cave of the orc leader on the northeastern part of the island.", 11, -13.77, 0.00, -3.00, 324)
  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("The other leaders and I are sending out an alliance to destroy this beastly leader. You will join this force and destroy the orc. Be warned, this is a treacherous journey that you alone cannot complete. Go now and find comrades who will help you on this mission to destroy the grisly beast.")
  20. Dialog.AddVoiceover("voiceover/english/vladiminn/tutorial_island02/vladiminn012.mp3", 2472668333, 3361828940)
  21. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  22. Dialog.AddOption("I will be on my way. Be prepared to hear back from me soon.")
  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 found the orc's cave.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I found and entered the orc's cave.")
  34. AddQuestStepKill(Quest, 2, "I must defeat the orc responsible for the goblin attacks.", 1, 100, "I need to defeat Grimgash the Black, the leader of the goblins who has sequestered himself in a cave on the island.", 11, 3240000)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've defeated Grimgash the Black.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've defeated Grimgash the Black, the orc behind the attacks.")
  40. AddQuestStepChat(Quest, 3, "I must return to speak with Vladiminn.", 1, "I need to return to Vladiminn and tell him of my victory.", 11, 3250016)
  41. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 3, "I've spoken with Vladiminn.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I've spoken with Vladiminn and let him know of my victory.")
  47. UpdateQuestDescription(Quest, "As unbelievable as it sounds, I gathered a group of others up and we managed to defeat Grimgash the Black, the leader of the goblins here on the island. I'm amazed we did so well, really. Vladiminn has given me a final parting gift, and bids me off to see the rest of the world now.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end