9
3

FarnsbysNewAxe.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : Quests/StarcrestCommune/FarnsbysNewAxe.lua
  3. Script Author : Dorbin
  4. Script Date : 07.03.2022
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Farnsby Dunworth
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to pick up an axe from Armsdealer Barrik in Starcrest Commune.", 1, "I am to deliver payment and pick up an axe from Arms Dealer Barrik on the south side of Starcrest.", 401, 2340010)
  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("Perfect! Here. Take this bag of coins over to Armsdealer Barrik and tell him Farnsby sent you. He's got the axe set aside for me. When you've got it, be sure to bring it back to me!")
  20. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  21. Dialog.AddVoiceover("voiceover/english/farnsby_dunworth/qey_village02/farnsbydunworth002.mp3", 810120577, 2174592567)
  22. Dialog.AddOption("Sounds easy enough. I'll be back shortly.")
  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've picked up Farnsby's axe from Armsdealer Barrik.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I've retrieved the axe from Arms Dealer Barrik for Farnsby Dunworth.")
  35. UpdateQuestZone(Quest,"Starcrest")
  36. AddQuestStepChat(Quest, 2, "I should return to Farnsby Dunworth in Starcrest.", 1, "Farnsby is expecting this axe. I last saw him at the tavern in Starcrest.", 642,2340022)
  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've delivered Farnsby's axe.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I've delivered Farnsby's axe.")
  43. UpdateQuestDescription(Quest, "Farnsby Dunworth was quite pleased that I returned with his axe from the smith so quickly. I'm still a bit curious about that scroll the two erudites were pursuing though.")
  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