9
3

prison_break.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/TimorousDeep/prison_break.lua
  3. Script Purpose : Handles the quest, "Prison Break"
  4. Script Author : Scatman
  5. Script Date : 2009.02.27
  6. Zone : Timorous Deep
  7. Quest Giver: Bezok Myli'Ki
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Channeler's Loop
  13. -- Earthen Bracer
  14. -- Feathered Turf-hunter Cap
  15. -- Standard-issue Soldier's Ring
  16. AddQuestStepChat(Quest, 1, "I need to free some captives held in Pyrrin Roost.", 5, ".", 1010, 2630104, 2630096, 2630131, 2630094)
  17. AddQuestStepCompleteAction(Quest, 1, "step1_complete_freedSarnaks")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/bezok_myli_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/myliki/myliki001.mp3", "", "", 3631592040, 195858381, Player)
  23. AddConversationOption(conversation, "I will return quickly.")
  24. StartConversation(conversation, QuestGiver, Player, "Excellent.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_freedSarnaks(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have freed some captives in Pyrrin Roost.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Bezok Myli'Ki.", 1, ".", 0, 2630098)
  31. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  32. end
  33. function quest_complete(Quest, QuestGiver, Player)
  34. UpdateQuestDescription(Quest, "I have freed the sarnak held captive in Pyrrin Roost.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_freedSarnaks(Quest, QuestGiver, Player)
  40. end
  41. end