elliasenkas_dagger_is_ready.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/StarcrestCommune/elliasenkas_dagger_is_ready.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.03 01:07:18
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Barrik
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to give Barrik's note to Elliasenka in this village's tavern.", 1, "I need to give Arms Dealer Barrik's note to Elliasenka Croosinaden. She should be in the tavern in Starcrest Commune.", 75,2340021)
  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("Can't we all? Take this note to Elliasenka Croosinaden. She may be in the tavern at the end of town. It's an odd request. Not too often an erudite orders a custom dagger!")
  20. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  21. Dialog.AddVoiceover("voiceover/english/armsdealer_barrik/qey_village02/armsdealerbarrik002.mp3", 138965399, 2089148039)
  22. Dialog.AddOption("I'll make sure she gets your note about her dagger.")
  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. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 1, " I gave Barrik's note to Elliasenka.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I gave the note to Elliasenka from Arms Dealer Barrik, letting her know her dagger is ready.")
  35. UpdateQuestZone(Quest,"Starcrest")
  36. AddQuestStepChat(Quest, 2, "I should return to Barrik in Starcrest.", 1, "Barrik should be informed that Elliasenka recieved notification of her order.", 11,2340010)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 2, "I returned to Barrik.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Barrik.")
  43. UpdateQuestDescription(Quest, "I gave Arms Dealer Barrik's note to Elliasenka and returned to him for my payment. I hope Elliasenka is only going to use it to cut fruit.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end