a_reverse_supply_run.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/TimorousDeep/a_reverse_supply_run.lua
  3. Script Purpose : Handles the quest, "A Reverse Supply Run"
  4. Script Author : Scatman
  5. Script Date : 2009.03.10
  6. Zone : Timorous Deep
  7. Quest Giver: Tanzikla Hir'Ki
  8. Preceded by: None
  9. Followed by: Stealing Their Steel (stealing_their_steel.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepSpell(Quest, 1, "I need to destroy the Haoaeran supplies.", 5, 100, ".", 611, 5019)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_DestroyedSupplies")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki002.mp3", "", "", 610788422, 391234971, Player)
  19. AddConversationOption(conversation, "Ok.")
  20. StartConversation(conversation, QuestGiver, Player, "Return to me when this is done.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_DestroyedSupplies(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have destroyed the Haoaeran supplies.")
  26. AddQuestStepChat(Quest, 2, "I need to return to Tanzikla Hir'Ki.", 1, ".", 0, 2630611)
  27. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  28. end
  29. function Quest_Complete(Quest, QuestGiver, Player)
  30. RemoveItem(Spawn, 2931)
  31. UpdateQuestDescription(Quest, "I've destroyed the Haoaeran caches.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QusetGiver, Player, Step)
  35. if Step == 1 then
  36. Step1_Complete_DestroyedSupplies(Quest, QuestGiver, Player)
  37. end
  38. end