new_etching_tool_for_froptubs_smithy.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "FoundBoggi")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/armsdealer_froptub/qey_village04/armsdealerfroptub001.mp3", "", "bow", 2191302103, 1711619713, Player)
  19. AddConversationOption(conversation, "I'll go look for him now.")
  20. StartConversation(conversation, QuestGiver, Player, "Gramercy! I shall be able to finish up these orders and get these grumbling elves off my doorstep!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function FoundBoggi(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I received the new etching tool from Boggi.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I was able to get the new etching tool from Boggi. Apparently he 'injured' himself.")
  32. 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)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I returned to Froptub.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Froptub his new etching tool and told him about Boggi's 'injury'.")
  38. 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...")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. FoundBoggi(Quest, QuestGiver, Player)
  44. end
  45. if Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end