9
3

supplies_for_the_pioneers.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Everfrost/supplies_for_the_pioneers.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2015.11.29 01:11:25
  5. Script Purpose :
  6. Zone : Everfrost
  7. Quest Giver: Brahnagan MacLahnan
  8. Preceded by: Further Culling
  9. Followed by: Scouting the Jagged Plains
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(20,60), math.random(30,90), math.random(3,5), 0)
  13. AddQuestStepChat(Quest, 1, "I need to deliver the supplies to the pioneers in the Bitterwind Trench.", 1, "I have been given a box of supplies to deliver to the Bitterwind Trench Pioneer Encampment from Brahnagan MacLahnan.", 0, 410068)
  14. AddQuestStepCompleteAction(Quest, 1, "Quest_Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. SummonItem(Player, 5642, 1)
  18. SetCompleteFlag(Quest)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "Thank you to you.")
  22. StartConversation(conversation, QuestGiver, Player, "Many thanks and best of luck to you in your journeys.")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function Reload(Quest, QuestGiver, Player, Step)
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. while HasItem(Player, 5642, 1) do
  30. RemoveItem(Player, 5642)
  31. end
  32. end
  33. function Quest_Complete(Quest, QuestGiver, Player)
  34. UpdateQuestDescription(Quest, "I have delivered the supplies to the pioneers.")
  35. while HasItem(Player, 5642, 1) do
  36. RemoveItem(Player, 5642)
  37. end
  38. GiveQuestReward(Quest, Player)
  39. end