cull_the_threat_to_the_pioneers.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Everfrost/cull_the_threat_to_the_pioneers.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2015.10.24 02:10:26
  5. Script Purpose :
  6. Zone : Everfrost
  7. Quest Giver: Brahnagan MacLahnan
  8. Preceded by: The Stories of Everfrost
  9. Followed by: Further Culling
  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 primal frostfins that inhabit the waters around Everfrost.", 15, 100, "Pioneers crossing the Bay have often been attacked by frostfin sharks that inhabit its waters. I should cull this threat and reduce the number of primal frostfins living within the Bay.", 611, 410003)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledSharks")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I can do that.")
  20. StartConversation(conversation, QuestGiver, Player, "Good, report to me when it's done. You'll be rewarded. Having fewer of the sharks will encourage more pioneers to come.")
  21. end
  22. function KilledSharks(Quest, QuestGiver, Player)
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have cleared the waters of primal 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