9
3

visiting_a_friend.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Quests/Graystone/visiting_a_friend.lua
  3. Script Purpose : Handles the quest, "Visiting a Friend"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : Graystone Yard
  7. Quest Giver: Burk Stoneshatter
  8. Preceded by: In the Drink (in_the_drink.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Jorn Sorefoot in Oakmyst Forest near the gate to Graystone Yard.", 1, "I need to travel to the Oakmyst Forest and find Jorn Sorefoot.", 0, 1950012)
  13. AddQuestStepCompleteAction(Quest, 1, "quest_complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/burk_stoneshatter/qey_village03/quests/burk_stoneshatter/burk_stoneshatter027a.mp3", "", "", 3983218071, 1048289693, Player)
  19. AddConversationOption(conversation, "Thank you.")
  20. StartConversation(conversation, QuestGiver, Player, "You deserve the best in this world, " .. GetName(Player) .. ". Please be well.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function quest_complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have spoken with Jorn Sorefoot.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have found and spoke to Jorn Sorefoot.")
  27. UpdateQuestDescription(Quest, "I have spoken with Jorn Sorefoot.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. end