scalies_for_shinies.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Nettleville/scalies_for_shinies.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.24 03:06:22
  5. Script Purpose :
  6. Zone : Nettleville
  7. Quest Giver: Dirk Vargin
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill some albino snakes for their skins. The locals often call these snakes 'cave serpents'.", 10, 100, "I need to collect ten Albino Snake Skins for Dirk Vagrin in the Caves.", 98, 1970008,1970009,1970012,8260003,8260024,8260030,8260074,8260082)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Caves")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver, "", "", "smile", 0, 0, Player)
  21. Dialog.AddDialog("In the caves, they are! The scalies live in the caves. Bring me ten albino snakeskins and get your reward! Go too!")
  22. Dialog.AddVoiceover("voiceover/english/devon_varin/qey_village01/dirkvagrin002.mp3", 2533226550, 1889262998)
  23. Dialog.AddOption("Alright. I'm off.")
  24. Dialog.AddOption("... did I just accept a job... err. I'll be back.")
  25. Dialog.Start()
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 1, "I have collected the snake skins.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered ten Albino Snake Skins for Dirk Vagrin.")
  37. UpdateQuestZone(Quest,"Nettleville")
  38. AddQuestStepChat(Quest, 2, "I must deliver these albino snakes for their skins. The locals often call these snakes 'cave serpents'.", 1, "I need to deliver these Albino Snake Skins to Dirk Vagrin in Nettleville.", 98, 2330020)
  39. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 2, "I have returned to Dirk Vargin.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered ten Albino Snake Skins for Dirk Vagrin.")
  44. UpdateQuestDescription(Quest, "Sure enough, Dirk Vagrin gave me money and an albino snakeskin wristband for giving him the ten Albino Snake Skins. I felt kind of bad taking his money but we were both happy with the end results.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end