haoaeran_orders.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/TimorousDeep/haoaeran_orders.lua
  3. Script Purpose : Handles the quest, "Haoaeran Orders"
  4. Script Author : Scatman
  5. Script Date : 2009.02.27
  6. Zone : Timorous Deep
  7. Quest Giver: Arozik Sky'Ki
  8. Preceded by: Scout Scouting (scout_scouting.lua)
  9. Followed by: Decoder Glyph (decoder_glyph.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need Haoaeran orders from the spiroc to the south.", 1, 25, ".", 374, 2630074)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotOrders")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/arozik_sky_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/skyki/skyki013.mp3", "", "", 248677146, 615720280, Player)
  19. AddConversationOption(conversation, "You're welcome.")
  20. StartConversation(conversation, QuestGiver, Player, "Thank you.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_gotOrders(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have the Haoaeran orders.")
  26. AddQuestStepChat(Quest, 2, "I need to bring these orders back to Secondary Arozik Sky'Ki.", 1, ".", 374, 2630081)
  27. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  28. end
  29. function quest_complete(Quest, QuestGiver, Player)
  30. UpdateQuestDescription(Quest, "I obtained a set of Haoaeran orders and brought them to Secondary Sky'Ki.")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. step1_complete_gotOrders(Quest, QuestGiver, Player)
  36. end
  37. end