helping_a_friend.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/Baubbleshire/helping_a_friend.lua
  3. Script Purpose : Handles the quest, "Helping a Friend"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : The Baubbleshire
  7. Quest Giver: Rondo "The Belly" Roundstew
  8. Preceded by: None
  9. Followed by: Helping a Friend, Again (helping_a_friend_again.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Maela Meadows near the waterfall in southeastern Baubbleshire.", 1, "I need to see if I can help Maela deal with any problems she may have.", 0, 2380035)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToMaela")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I'm on my way.")
  19. StartConversation(conversation, QuestGiver, Player, "Thank you. She should be by the waterfall, find her and get her to share her feelings, please.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_talkedToMaela(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have spoken with Maela, she didn't have much to say.")
  27. AddQuestStepChat(Quest, 2, "I should return to Rondo.", 1, "I need to see if I can help Maela deal with any problems she may have.", 0, 2380039)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have spoken with Rondo.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I was unable to help Maela, but Rondo has another plan.")
  33. UpdateQuestDescription(Quest, "Maela wasn't very forthcoming, but Rondo has another plan to help her out.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. step1_complete_talkedToMaela(Quest, QuestGiver, Player)
  39. end
  40. end