TheMotherLode.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Darklight/TheMotherLode.lua
  3. Script Purpose : Handles the quest, "The Mother Lode"
  4. Script Author : Cynnar
  5. Script Date : 8/30/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Ilmtar D'Viervs
  9. Preceded by : A Snake Made Serum
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Use the pheromone spray while on the bridge over Innoruuk's Scar", 1, 100, "I need to summon the wurm mother, kill her, and bring it back to Ilmtar.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have sprayed the pheromone to summon the wurm mother")
  18. AddQuestStepKill(Quest, 2, "Kill the wurm mother", 1, 100, "I need to summon the wurm mother, kill her, and bring it back to Ilmtar.", 133, 341051)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I have the slain the wurm mother")
  23. AddQuestStepChat(Quest, 3, "Bring the wurm mother back to Ilmtar", 1, "I need to summon the wurm mother, kill her, and bring it back to Ilmtar.", 133, 340076)
  24. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. UpdateQuestDescription(Quest, "I have given Ilmtar the corpse of the wurm mother.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. Step1Complete(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. Step2Complete(Quest, QuestGiver, Player)
  35. elseif Step == 3 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end
  39. function Accepted(Quest, QuestGiver, Player)
  40. SummonItem(Player, 47949)
  41. FaceTarget(QuestGiver, Player)
  42. local con = CreateConversation()
  43. AddConversationOption(con, "That's reassuring.")
  44. StartConversation(con, QuestGiver, Player, "Good luck, Sygman. Be sure you don't spray any of that stuff on yourself, ha!")
  45. end
  46. function Declined(Quest, QuestGiver, Player)
  47. -- Add dialog here for when the quest is declined
  48. end
  49. function Deleted(Quest, QuestGiver, Player)
  50. end