reporting_to_the_ruins.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Quest Template
  3. Script Name : reporting_to_the_ruins.lua
  4. Script Purpose : Handles the quest, "Reporting to the Ruins"
  5. Script Author : Scatman
  6. Script Date : 2009.07.12
  7. Zone : The Graveyard
  8. Quest Giver : Custodian Zaddar Sullissia
  9. Preceded by : Repairing the Ward (repairing_the_ward.lua)
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I should make my way to the Freeport Ruins and speak to Captain Arellius. I should return to the docks of my home district and use the bell to summon transport outside of Freeport proper.", 1, "I should make my way to the Ruins and speak to to Captain Arellius.", 0, 1270003)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/custodian_zaddar_sullissia/fprt_adv02_graveyard/custodian_zaddar114.mp3", "", "", 463438268, 1793214191, Player)
  20. AddConversationOption(conversation, "I'm on my way.")
  21. StartConversation(conversation, QuestGiver, Player, "Your help in the Ruins is desperately needed. Do not delay too long, for our great city of Freeport is in peril!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I made my way to the Ruins and have spoken to Captain Arellius.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have made my way to the Ruins and reported to Captain Arellius.")
  28. GiveQuestReward(Quest, Player)
  29. UpdateQuestDescription(Quest, "I found the Ruins and have reported to Captain Arellius. I will now assist in the defense of Freeport.")
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. end