9
3

stealing_their_steel.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/TimorousDeep/stealing_their_steel.lua
  3. Script Purpose : Handles the quest, "Stealing Their Steel"
  4. Script Author : Scatman
  5. Script Date : 2009.03.10
  6. Zone : Timorous Deep
  7. Quest Giver: Tanzikla Hir'Ki
  8. Preceded by: A Reverse Supply Run (a_reverse_supply_run.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Earthen Loop
  13. -- Layered Scale Stompers
  14. -- Woven Trythec Earring
  15. AddQuestStepKill(Quest, 1, "I need some weapons from the Haoaeran lightfoot attackers.", 5, 100, ".", 287, 2630105)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledAttackers")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki005.mp3", "", "", 2732146022, 3045462699, Player)
  22. AddConversationOption(conversation, "I will.")
  23. StartConversation(conversation, QuestGiver, Player, "Though we hope the Haoaerans are not receiving outside help, it would be something of a relief to know that they were -- for them to be capable of making weapons of such quality would be a concern. Be swift, " .. GetName(Player) .. ". We must know what we are up against.")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function Step1_Complete_KilledAttackers(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have the Haoaeran lightfoot weapons.")
  29. AddQuestStepChat(Quest, 2, "I need to return to Tanzikla Hir'Ki.", 1, ".", 0, 2630611)
  30. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  31. end
  32. function Quest_Complete(Quest, QuestGiver, Player)
  33. RemoveItem(Spawn, 2931)
  34. UpdateQuestDescription(Quest, "I have brought the Haoaeran weapons back to Tanzikla Hir'Ki.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QusetGiver, Player, Step)
  38. if Step == 1 then
  39. Step1_Complete_KilledAttackers(Quest, QuestGiver, Player)
  40. end
  41. end