infestation.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : Quests/GreaterFaydark/infestation.lua
  3. Script Purpose : Handles the quest "Infestation"
  4. Script Author : Scatman
  5. Script Date : 2013.07.31
  6. Zone : Greater Faydark
  7. Quest Giver : Matron of the Nursery
  8. Preceded by : none
  9. Followed by : Running Off the Grobin Scouts
  10. --]]
  11. function Init(Quest)
  12. -- Steadfast Bracelet
  13. -- Sand-Etched Bracers
  14. -- Shrumbler Grips
  15. -- Matron's Sleeve
  16. -- Harmonic Band
  17. AddQuestRewardCoin(Quest, 47, 2)
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. AddQuestStepKill(Quest, 1, "Kill shrumbler hatchlings.", 4, 100, ".", 98, 1140210, 1140235)
  21. AddQuestStepCompleteAction(Quest, 1, "KilledAllShrumblers")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Deleted(Quest, Player)
  26. end
  27. function Reload(Quest, QuestGiver, Player, Step)
  28. end
  29. --[[
  30. function Accepted(Quest, QuestGiver, Player)
  31. if QuestGiver ~= nil then
  32. if GetDistance(Player, QuestGiver) < 30 then
  33. conversation = CreateConversation()
  34. FaceTarget(QuestGiver, Player)
  35. AddConversationOption(conversation, "I will return")
  36. StartConversation(conversation, QuestGiver, Player, "I hope so. You are still quite young and those creatures can be very dangerous!")
  37. end
  38. end
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. end
  42. function KilledAllShrumblers(Quest, QuestGiver, Player)
  43. UpdateQuestTaskGroupDescription(Quest, 1, "I got rid of the shrumblers that were threatening the spirit blooms.")
  44. AddQuestStepChat(Quest, 2, "I should let the Matron of the Nursery know I took care of the shrumbler infestation.", 1, ".", 0, 1140004)
  45. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  46. end
  47. function QuestComplete(Quest, QuestGiver, Player)
  48. UpdateQuestDescription(Quest, "I got rid of the shrumbler worms that were eating the spirit blooms in the nursery.")
  49. GiveQuestReward(Quest, Player)
  50. end
  51. function Reload(Quest, QuestGiver, Player, Step)
  52. if Step == 1 then
  53. KilledAllShrumblers(Quest, QuestGiver, Player)
  54. end
  55. end
  56. --]]