9
3

thaen_sevellos.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/BeggarsCourt/thaen_sevellos.lua
  3. Script Purpose : Handles the quest, "Thaen Sevellos"
  4. Script Author : Scatman (updated by Cynnar 2018.06.14 11:06:19)
  5. Script Date : 2009.04.07
  6. Zone : Beggar's Court
  7. Quest Giver: Thavian Destrus
  8. Preceded by: Reel Him In (reel_him_in.lua)
  9. Followed by: One Last Request (one_last_request.lua)
  10. --]]
  11. local DELCAIRN_SEBASTIAN = 1370038
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to rescue Thaen Sevellos. He is being held in a room in the northwestern end of the northern half of Beggar's Court.", 1, 100, "I need to rescue Thaen Sevellos.", 0)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_FreedThaen")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/delcairn_sebastian/fprt_hood04/quests/delcairn/delcairn012.mp3", "", "", 2118872421, 1842762930, Player)
  20. AddConversationOption(conversation, "All right.")
  21. StartConversation(conversation, QuestGiver, Player, "It won't be. Once you free him return to me.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Step1_Complete_FreedThaen(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have rescued Thaen Sevellos.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have rescued Thaen Sevellos.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Delcairn Sebastian. He is upstairs in the western half of the northern half of Beggar's Court.", 1, "I need to return to Delcairn.", 0, DELCAIRN_SEBASTIAN)
  29. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  30. end
  31. function Quest_Complete(Quest, QuestGiver, Player)
  32. UpdateQuestDescription(Quest, "I have freed Thaen Sevellos.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1_Complete_FreedThaen(Quest, QuestGiver, Player)
  38. end
  39. end
  40. function Deleted(Quest, QuestGiver, Player)
  41. end