further_culling.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/Everfrost/further_culling.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2015.11.29 12:11:13
  5. Script Purpose :
  6. Zone : Everfrost
  7. Quest Giver: Brahnagan MacLahnan
  8. Preceded by: Cull the Threat to the Pioneers
  9. Followed by: Supplies for the Pioneers
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(60,97), math.random(50,80), 1, 0)
  13. AddQuestStepKill(Quest, 1, "I need to kill the ancient frostfins that live in the waters around Everfrost.", 10, 100, "I need to clear the waters of ancient frostfins to make the area safer for travelers.", 611, 410001)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledSharks")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "Um, I hope not.")
  20. StartConversation(conversation, QuestGiver, Player, "I am sure you won't lose too many fingers dealing with them.")
  21. end
  22. function KilledSharks(Quest, QuestGiver, Player)
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have cleared the waters of ancient frostfins.")
  24. SetCompleteFlag(Quest)
  25. AddQuestStepChat(Quest, 2, "I should speak with Brahnagan MacLahgan.", 1, "I need to return to MacLahnan and tell him I've done as he asked.", 0, 410006)
  26. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I have reported my success to MacLahnan.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. end