BasicMiningGuidePartTwo.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : ItemScripts/BasicMiningGuidePartTwo.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.27 05:07:56
  5. Script Purpose :
  6. :
  7. --]]
  8. local SabertoothMinersGuidePartTwo = 5706
  9. function examined(Item, Player)
  10. if not HasQuest(Player, SabertoothMinersGuidePartTwo) and not HasCompletedQuest(Player, SabertoothMinersGuidePartTwo) then
  11. OfferQuest(nil, Player, SabertoothMinersGuidePartTwo)
  12. conversation = CreateConversation()
  13. AddConversationOption(conversation, "Entry One", "EntryOne")
  14. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  15. StartDialogConversation(conversation, 2, Item, Player, "This is the second part of the Sabertooth gnoll's mining history, covering their history after Blackburrow was invaded by the Horde.")
  16. end
  17. end
  18. function EntryOne(Item, Player)
  19. conversation = CreateConversation()
  20. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 1) then
  21. AddConversationOption(conversation, "Entry Two", "EntryTwo")
  22. end
  23. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  24. StartDialogConversation(conversation, 2, Item, Player, "The Great Sage had said, \"Dark times mean there's not enough light.\" He was right. They came up from beneath us, surprising us within our own mines. We fled to deeper tunnels only to find them overrun by the furless as well. They attacked our young pups. They ate our stores of food. We howled with rage and our voices echoed, but still the furless came.")
  25. end
  26. function EntryTwo(Item, Player)
  27. SetStepComplete(Player, BasicMinersGuidePartTwo, 2)
  28. conversation = CreateConversation()
  29. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 3) then
  30. AddConversationOption(conversation, "Entry Three", "EntryThree")
  31. end
  32. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  33. StartDialogConversation(conversation, 2, Item, Player, "They said at first they were just passing through. Most of them did, going on to battle the furless of the walled cities. But many more came and stayed. There were many of them. They offered to remove us from our mines and we refused. First, they started attacking our miners. Later, we decided to let them stay if we had our pickings from the battlefields. They agreed.")
  34. end
  35. function EntryThree(Item, Player)
  36. SetStepComplete(Player, BasicMinersGuidePartTwo, 4)
  37. conversation = CreateConversation()
  38. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 5) then
  39. AddConversationOption(conversation, "Entry Four", "EntryFour")
  40. end
  41. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  42. StartDialogConversation(conversation, 2, Item, Player, "Around this time, we picked up some of their words. Not many, only a few. Handy for knowing their secrets. They had already taken the furless north. They were going to take the furless south, too. Our tunnels and mines would be famous! We wished it were famous because of us. Then we remembered the words of the Great Sage, \"Famous is as famous does.\" We have no idea what that means. It comforted us.")
  43. end
  44. function EntryFour(Item, Player)
  45. SetStepComplete(Player, BasicMinersGuidePartTwo, 6)
  46. conversation = CreateConversation()
  47. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 7) then
  48. AddConversationOption(conversation, "Entry Five", "EntryFive")
  49. end
  50. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  51. StartDialogConversation(conversation, 2, Item, Player, "For many years the furless trooped through the Blackburrow. They ate all our stores. They stole what ore we had produced. Then, suddenly as they appeared, they retreated. Some of our best scouts reported that something bad had happened on the battlefield. The bodies of furless were piled high. Their faces were twisted in pain. Maybe it was something they ate.")
  52. end
  53. function EntryFive(Item, Player)
  54. SetStepComplete(Player, BasicMinersGuidePartTwo, 8)
  55. conversation = CreateConversation()
  56. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 9) then
  57. AddConversationOption(conversation, "Entry Six", "EntrySix")
  58. end
  59. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  60. StartDialogConversation(conversation, 2, Item, Player, "After that time, the Clan rebuilt some of the deepest tunnels. We closed off some of our secret entrances. They weren't as secret as we'd thought. Some of the tunnels were so wide across it took years to close them off. We could have saved the effort if we'd known what would be coming within a generation or so.")
  61. end
  62. function EntrySix(Item, Player)
  63. SetStepComplete(Player, BasicMinersGuidePartTwo, 10)
  64. conversation = CreateConversation()
  65. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 11) then
  66. AddConversationOption(conversation, "Entry Seven", "EntrySeven")
  67. end
  68. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  69. StartDialogConversation(conversation, 2, Item, Player, "The shaking woke everyone up. Big stones fell in the mines. Some miners were killed. Some lost their tails. We left the lowest tunnels. Many tunnels filled with water. When the water would drain away, the walls fell in. Many of the excavators grumbled about the wasted work below. Sometimes, whole tunnels collapsed on themselves. It was an uneasy time.")
  70. end
  71. function EntrySeven(Item, Player)
  72. SetStepComplete(Player, BasicMinersGuidePartTwo, 12)
  73. conversation = CreateConversation()
  74. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 13) then
  75. AddConversationOption(conversation, "Entry Eight", "EntryEight")
  76. end
  77. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  78. StartDialogConversation(conversation, 2, Item, Player, "The furless called this time \"the Rending,\" and were afraid. The Clan wasn't afraid. We were disappointed. All our work to close off the lowest tunnels was already done. The Clan is clever. If we'd known, we'd have saved our strength for other things. Since we no longer needed to block old entries, we cleaned up the upper levels. The furless came to us, begging for shelter. We put them in the storerooms till we needed them.")
  79. end
  80. function EntryEight(Item, Player)
  81. SetStepComplete(Player, BasicMinersGuidePartTwo, 14)
  82. conversation = CreateConversation()
  83. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 15) then
  84. AddConversationOption(conversation, "Entry Nine", "EntryNine")
  85. end
  86. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  87. StartDialogConversation(conversation, 2, Item, Player, "Things were quiet for generations. Then the moon, the new one, broke up in the sky. The furless fell to the ground, begging for help from their gods. The Clan was not afraid. We have the words of the Great Sage to guide us. He had said, \"Dig deep,\" so we did. Some of the Clan had forgot that the lowest tunnels were gone. We never saw them again.")
  88. end
  89. function EntryNine(Item, Player)
  90. SetStepComplete(Player, BasicMinersGuidePartTwo, 16)
  91. conversation = CreateConversation()
  92. if QuestStepIsComplete(Player, BasicMinersGuidePartTwo, 17) then
  93. AddConversationOption(conversation, "Entry Ten", "EntryTen")
  94. end
  95. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  96. StartDialogConversation(conversation, 2, Item, Player, "Lucky for us, we have an underground home. The surface was hit by big rocks. A lot of things died. We were safe in the Blackburrow. Some of the old tunnels are filled with spiders. Big spiders. We mine the other levels. Some went down to clear out the spiders. They got stuck in the webs. These are big spiders.")
  97. end
  98. function EntryTen(Item, Player)
  99. SetStepComplete(Player, BasicMinersGuidePartTwo, 18)
  100. end