9
3

finding_bait.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 is use as bait.", 10, 100, "I must kill ten centipedes in the Forest Ruins and gather their remains for use as bait.", 1, 1960026)
  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. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_completed_killedCentipedes(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I've killed ten centipedes for Moyna.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed ten centipedes and gathered their remains for Moyna's bait.")
  27. UpdateQuestZone(Quest, "Graystone Yard")
  28. 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)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've spoken with tacklemaster Moyna.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to tacklemaster Moyna in the Graystone Yard.")
  34. 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.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if step == 1 then
  39. step1_completed_killedCentipedes(Quest, QuestGiver, Player)
  40. end
  41. end