new_etching_tool_for_froptubs_smithy.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/new_etching_tool_for_froptubs_smithy.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.26 02:01:42
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Armsdealer Froptub
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to find Apprentice Boggi.", 1, "I need to search Castleview for Armsdealer Froptub's apprentice, Boggi, and see if he has the new etching tool.", 0, 2360038)
  14. AddQuestStepCompleteAction(Quest, 1, "FoundBoggi")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("Grammarcy! I shall be able to finish up these orders and get the grumbling elves off mine doorstep.")
  20. Dialog.AddVoiceover("voiceover/english/armsdealer_froptub/qey_village04/armsdealerfroptub001.mp3",2191302103, 1711619713)
  21. PlayFlavor(QuestGiver, "", "", "bow", 0,0 , Player)
  22. Dialog.AddOption("Your apprentice shouldn't be too hard to find, I'll be back 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 FoundBoggi(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 received the new etching tool from Boggi.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I was able to get the new etching tool from Boggi. Apparently he 'injured' himself.")
  35. AddQuestStepChat(Quest, 2, "I need to return to Froptub.", 1, "I need to return the etching tool to Froptub and inform him about his apprentice.", 710, 2360018)
  36. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I returned to Froptub.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Froptub his new etching tool and told him about Boggi's 'injury'.")
  41. UpdateQuestDescription(Quest, "I was able to help Arms Dealer Froptub get back to work by finding his apprentice Boggi and returning the new etching tool. I really doubt Boggi's leg injury story...")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. FoundBoggi(Quest, QuestGiver, Player)
  47. end
  48. if Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end