9
3

VibiasWailingCaveIngridients.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : vibias_wailing_cave_ingredients.lua
  3. Script Purpose : Handles the quest, "Vibia's Wailing Cave Ingredients"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 10.07.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Freeport
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must collect two samples of primordial seep bile within the Wailing Caves.", 2, 100, "I must collect two samples of primordial seep bile and one venom sac from a spider called Soulspike within the Wailing Caves.", 178, 2580010)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, " voiceover/english/optional1/merchant_vibia_valens/fprt_north/quests/vibiavalens/vibiavalens_x1_accept.mp3", "", "", 135454425, 3886964070, Player)
  19. AddConversationOption(conversation, "I understand.")
  20. StartConversation(conversation, QuestGiver, Player, "Excellent! You've put all my worries to rest. Make sure that you gather two samples of primordial seep bile, and we only need one venom sac from Soulspike.")
  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 Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have collected two samples of primordial seep bile.")
  30. AddQuestStepKill(Quest, 2, "I must hunt down and slay the elusive spider named Soulspike.", 1, 100, "I must collect two samples of primordial seep bile and one venom sac from a spider called Soulspike within the Wailing Caves.", 146, 2580037)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have slain Soulspike and collected the venom sac.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the primordial seep bile samples and the venom sac from Soulspike.")
  36. AddQuestStepChat(Quest, 3, "I should return to Vibia Valens.", 1, "I should return to Vibia Valens.", 11, 1440065, 5590320)
  37. AddQuestStepCompleteAction(Quest, 3, "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, 3, "I have returned to Vibia Valens.")
  42. -- UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to Vibia Valens.")
  43. UpdateQuestDescription(Quest, "I have successfully collected two primordial seep bile samples and the venom sac from Soulspike the spider queen of the Wailing Caves. Vibia rewarded me with a dagger and some coin for a job well done. ")
  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. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end