9
3

poaching_the_poachers.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/TimorousDeep/poaching_the_poachers.lua
  3. Script Purpose : Handles the quest, "Poaching the Poachers"
  4. Script Author : Scatman
  5. Script Date : 2009.02.06
  6. Zone : Timorous Deep
  7. Quest Giver: Tykor Gi'Lok
  8. Preceded by: None
  9. Followed by: Curious Ore (curious_ore.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Raptor-scaled Armguards
  13. -- Scaled Armguards
  14. -- Sunburnt Bracers
  15. -- Empowered Earring
  16. -- Geo-Parser's Sleeves
  17. AddQuestStepKill(Quest, 1, "I need to kill four Haoaeran poachers.", 4, 100, ".", 611, 2630017)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedPoachers")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/tykor_gi_lok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/gilok/gilok001.mp3", "", "", 611409560, 797692345, Player)
  24. AddConversationOption(conversation, "As good as done.")
  25. StartConversation(conversation, QuestGiver, Player, "No hesitation, I like it. You will kill the poachers, and they will know Gi'Lok knows how to delegate.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function step1_complete_killedPoachers(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have slain the Haoaeran poachers.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Tykor Gi'Lok.", 1, ".", 0, 2630018)
  32. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "I have slain the Haoaeran poachers for Tykor Gi'Lok.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_killedPoachers(Quest, QuestGiver, Player)
  41. end
  42. end