catacomb_rat_rummaging.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : Quests/StarcrestCommune/catacomb_rat_rummaging.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.02 04:07:34
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Taggan Brookrich
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill and bring back four of any type of rat in the catacombs.", 4, 100, "I need to hunt down any four rats in the Down Below for a spectator at the King's Field game.", 127, 8340033, 8340034, 8340043, 8340041)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest, "Down Below")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("That's a great idea! And you could fetch'm! I need dead ones- not too damaged mind you. Not too damaged mind you. They have to pass for 'live' rats.")
  21. PlayFlavor(QuestGiver, "", "", "smile", 0, 0, Player)
  22. Dialog.AddVoiceover("voiceover/english/taggan_brookrich/qey_village02/tagganbrookrich001.mp3", 299669920, 1586732231)
  23. Dialog.AddOption("Alright... I'll be back with your dead rats. You'd best pay up for these when I get back!")
  24. Dialog.AddOption("Err.. What did I just agree to?")
  25. Dialog.Start()
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I've gathered all four corpses of the rats in good condition.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all four corpses of the rats in good condition.")
  36. UpdateQuestZone(Quest, "Starcrest Commune")
  37. AddQuestStepChat(Quest, 2, "I must return to Taggan Brookrich.", 1, "I need to deliver these dead rats to Staggan Brookrich in Starcrest Commune.", 127, 2340008)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 2, "I have returned to Taggan Brookrich.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered the dead rats to Taggan Brookrich.")
  44. UpdateQuestDescription(Quest, "I fetched the rats for the spectator, though I don't believe they will do him much good. Judging by how intent Vandis and his opponent are on their King's Field game, I don't think even a dragon standing behind them would interrupt play.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end