taking_back_from_the_blackshields.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/SunkenCity/taking_back_from_the_blackshields.lua
  3. Script Purpose : Handles the quest, "Taking Back from the Blackshields"
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Zone : Sunken City
  7. Quest Giver: Investigator Curfield
  8. Preceded by: Finding the Investigator (finding_the_investigator)
  9. Followed by: Finding the Shrine (finding_the_shrine.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I should examine the barrels I see near the Blackshield pirates.", 1, 100, "I need to search barrels near the Blackshields to find the stolen research for Curfeld.", 2285)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_FoundBarrel")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/investigator_curfeld/fprt_adv01_sunken/investigator_curfeld008.mp3", "", "", 2335171554, 1884234984, Player)
  19. AddConversationOption(conversation, "I will watch my back.")
  20. StartConversation(conversation, QuestGiver, Player, "My observers tell me that the Blackshields are concealing stolen goods in the old wooden barrels scattered about to the north. Be careful, though. They're an unruly bunch that won't hesitate to attack someone they think might be after their ill-gotten gain.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_FoundBarrel(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I found the research notes inside a barrel.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found the stolen research materials inside a barrel.")
  27. AddQuestStepChat(Quest, 2, "I must return to Investigator Curfeld.", 1, "I should take the stolen research back to Investigator Curfeld.", 0, 1240083)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have returned to Investigator Curfeld.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned the research to Investigator Curfeld.")
  33. GiveQuestReward(Quest, Player)
  34. UpdateQuestDescription(Quest, "I found Investigator Curfeld's stolen research inside one of the Blackshields' barrels and have returned the papers to Curfeld. Maybe now he won't be so curt with me.")
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1_Complete_FoundBarrel(Quest, QuestGiver, Player)
  39. end
  40. end