9
3

decoder_glyph.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/TimorousDeep/decoder_glyph.lua
  3. Script Purpose : Handles the quest, "Decoder Glyph"
  4. Script Author : Scatman
  5. Script Date : 2009.02.27
  6. Zone : Timorous Deep
  7. Quest Giver: Arozik Sky'Ki
  8. Preceded by: Haoaeran Orders (haoaeran_orders.lua)
  9. Followed by: War (war.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Channeler's Belt
  13. -- Pyrrin Amulet
  14. -- Ritualist's Mantle
  15. -- Raptor-scaled Cowl
  16. AddQuestStepKill(Quest, 1, "I need a decoder glyph from a Haoaeran turf-hunter.", 1, 100, ".", 373, 2630077)
  17. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotGlyph")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki017.mp3", "", "", 709686282, 1141832013, Player)
  23. AddConversationOption(conversation, "I will be swift.")
  24. StartConversation(conversation, QuestGiver, Player, "I await your return.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_gotGlyph(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have the decoder glyph.")
  30. AddQuestStepChat(Quest, 2, "I need to bring the glyph to Secondary Arozik Sky'Ki.", 1, ".", 373, 2630081)
  31. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  32. end
  33. function quest_complete(Quest, QuestGiver, Player)
  34. UpdateQuestDescription(Quest, "I obtained a Haoaeran decoder glyph and brought it back to Secondary Arozik Sky'Ki.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_gotGlyph(Quest, QuestGiver, Player)
  40. end
  41. end