9
3

finding_bait.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Graystone/finding_bait.lua
  3. Script Purpose : Handles the quest, "Finding Bait"
  4. Script Author : Scatman
  5. Script Date : 2008.09.18
  6. Zone : Graystone Yard
  7. Quest Giver: Tacklemaster Moyna
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill centipedes, or crawlers, for Moyna to use as bait.", 10, 100, "I must kill ten centipedes in the Forest Ruins and gather their remains for use as bait.", 0, 1960026,8270006)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_completed_killedCentipedes")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. --[[ FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tacklemaster_moyna/qey_village03/100_tacklemaster_barbarian_female_moyna_multhail3_629de1e4.mp3", "", "", 1963777615, 3216865707, Player)
  19. AddConversationOption(conversation, "Calm down! I haven't left yet!")
  20. StartConversation(conversation, QuestGiver, Player, "What's taking you so long, friend? I don't have all day! Fetch me my centipedes!")]]--
  21. --Applied this VO to an InRange callout after accepted. - Dorbin 2022.03.09
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_completed_killedCentipedes(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've killed ten centipedes for Moyna.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed ten centipedes and gathered their remains for Moyna's bait.")
  28. UpdateQuestZone(Quest, "Graystone Yard")
  29. AddQuestStepChat(Quest, 2, "I must speak with tacklemaster Moyna.", 1, "I must return to tacklemaster Moyna in the Graystone Yard for my payment", 0, 2350020)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've spoken with tacklemaster Moyna.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to tacklemaster Moyna in the Graystone Yard.")
  35. UpdateQuestDescription(Quest, "Moyna praised me for a job well done after gathering up the centipedes she needed. She's certain that the bait will last for at least a couple days, even with the amount of fishing Brice and Ubani do.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_completed_killedCentipedes(Quest, QuestGiver, Player)
  41. end
  42. end