gnoll_extermination.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/NorthQeynos/gnoll_extermination.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 06:05:33
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Sir Laughlin
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to gather ten gnoll ears.", 10, 80, "Laughlin's task requires that I return him the ears of ten full grown gnolls from Antonica.", 94, 120013,121193,120013,120092,120123,121269,120419,121195,120355,120015,121436,120363,120362,121223,120065,120184, 120376,120196,121335,120290,120858,120291, 120212, 120203, 121342, 121351)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Antonica")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Such an eager recruit! Bring me back the ears of ten gnolls. That should be sufficient to bring their population down to a reasonable level for now. You'll find them around the gates of the city, roaming like the dogs they are!")
  21. Dialog.AddVoiceover("voiceover/english/optional1/knight-lieutenant_laughlin/qey_north/quests/sirlaughlin/grd_laughlin_x1_accept.mp3", 3661162022, 1661118827)
  22. Dialog.AddOption("Yessir! I'll have them running for their dens soon enough!")
  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 have retrieved the ears I needed.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I've acquired the ten gnoll ears Sir Laughlin asked me to.")
  34. UpdateQuestZone(Quest,"North Qeynos")
  35. AddQuestStepChat(Quest, 2, "Return to Sir Laughlin.", 1, "I need to return to Sir Laughlin in North Qeynos.", 94, 2220024)
  36. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I spoke with Sir Laughlin.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "Sir Laughlin was suitably impressed with my prowess in defeating the gnolls.")
  42. UpdateQuestDescription(Quest, "Sir Laughlin commended me on my battle prowess! I've taken my first steps into the greater world beyond the city. Today Qeynos, tomorrow the world!")
  43. GiveQuestReward(Quest, Player)
  44. end