some_nice_bear_hides.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/NorthQeynos/some_nice_bear_hides.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 03:05:03
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Danielle Clothspinner
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Skin four bears in Antonica for the Clothspinner shop.", 4, 60, "I must try and obtain four preserved bear hides in Antonica for Danielle. Some of the great bears there may have the right quality of coats.", 93, 121370,120257,120011)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Antonica")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/danielle_clothspinner/qey_north/danielleclothspinner004.mp3", "", "happy", 237301026, 160623065, Player)
  20. AddConversationOption(conversation, "That sounds great! I'll be back with the pelts.")
  21. StartConversation(conversation, QuestGiver, Player, "Perfect, once I am done with all the sewing and dying for this job I can get started on some top notch pelt work.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have the skins of four bears.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered the four preserved bear hides for Danielle.")
  32. UpdateQuestZone(Quest,"North Qeynos")
  33. AddQuestStepChat(Quest, 2, "I should speak with Danielle Clothspinner.", 1, "I must make sure I get these bear hides to Danielle in North Qeynos.", 93, 2220061)
  34. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 2, "I have spoken with Danielle Clothspinner.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I have given the preserved bear hide to Danielle.")
  40. UpdateQuestDescription(Quest, "I have helped Danielle get four preserved bear hides. So when she is done with her normal sewing and dying she can make some really high quality products to sell.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end