sentry_trillis_report.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/GreaterFaydark/sentry_trillis_report.lua
  3. Script Purpose : Handles the quest "Sentry Trillis Report"
  4. Script Author : Zcoretri
  5. Script Date : 2009.03.01
  6. Zone : Greater Faydark
  7. Quest Giver: Matron of the Nursery
  8. Preceded by: none
  9. Followed by: Running Off the Grobin Scouts
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I should deliver Sentry Trillis' status report to Captain Steelforge. He should be outside Drippy Cave to the west.", 1, ".", 1223, 1140067)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if QuestGiver ~= nil then
  17. if GetDistance(Player, QuestGiver) < 30 then
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/exp03_questvo2/sentry_trillis/_exp03/exp03_rgn_greater_faydark/sentry_trillis/sentry_trillis003.mp3", "", "", 2868295834, 1763259549, Player)
  21. AddConversationOption(conversation, "So long, Sentry Trillis.")
  22. StartConversation(conversation, QuestGiver, Player, "Thanks. The report is a simple 'All Clear' for now, but I thought he would like to know. So long, " .. GetName(Player) .. ".")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. end