BasicMiningGuidePartOne.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : ItemScripts/BasicMiningGuidePartOne.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.27 03:07:27
  5. Script Purpose :
  6. :
  7. --]]
  8. local BasicMinersGuidePartOne = 5705
  9. function examined(Item, Player)
  10. if not HasQuest(Player, BasicMinersGuidePartOne) and not HasCompletedQuest(Player, BasicMinersGuidePartOne) then
  11. OfferQuest(nil, Player, BasicMinersGuidePartOne)
  12. end
  13. conversation = CreateConversation()
  14. AddConversationOption(conversation, "Entry One", "EntryOne")
  15. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  16. StartDialogConversation(conversation, 2, Item, Player, "The mining way is the way of the future. It is also the way of the past. Come, pups, I will tell you why the Sabertooth gnolls are famous for mining! You will learn much.")
  17. end
  18. function EntryOne(Item, Player)
  19. conversation = CreateConversation()
  20. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 1) then
  21. AddConversationOption(conversation, "Entry Two", "EntryTwo")
  22. end
  23. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  24. StartDialogConversation(conversation, 2, Item, Player, "It is dark. In the mines we work by the light of our lamps. We must dig for ore. Ore can be sold. Ore can be made into things. Therefore, we mine. Gnolls, the Sabertooth gnolls, have a keen sense of smell. We smell the ore beneath the earth, behind the rocks and underground. That led us to Blackburrow many, many years ago.")
  25. end
  26. function EntryTwo(Item, Player)
  27. SetStepComplete(Player, BasicMinersGuidePartOne, 2)
  28. conversation = CreateConversation()
  29. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 3) then
  30. AddConversationOption(conversation, "Entry Three", "EntryThree")
  31. end
  32. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  33. StartDialogConversation(conversation, 2, Item, Player, "Unlike the trotters, we Sabertooth gnolls are clever. We found something precious and we stay with it. Before mining, we preyed on what caught our fancy. Then we were enlightened and some of us turned to mining to support our Clan. For it was told to us by the Great Sage, \"The furless light their darkness and we can be their light!\"")
  34. end
  35. function EntryThree(Item, Player)
  36. SetStepComplete(Player, BasicMinersGuidePartOne, 4)
  37. conversation = CreateConversation()
  38. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 5) then
  39. AddConversationOption(conversation, "Entry Four", "EntryFour")
  40. end
  41. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  42. StartDialogConversation(conversation, 2, Item, Player, "The Great Sage was not a miner. He knew the language of the furless and taught it to us. He taught us many things he learned in his travels. Not a trotter, no! He went among them to learn their ways and teach us so that we would be strong. Our mines we had, but mostly kept them because even if we did not use them, we did not want anyone else to use them.")
  43. end
  44. function EntryFour(Item, Player)
  45. SetStepComplete(Player, BasicMinersGuidePartOne, 6)
  46. conversation = CreateConversation()
  47. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 7) then
  48. AddConversationOption(conversation, "Entry Five", "EntryFive")
  49. end
  50. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  51. StartDialogConversation(conversation, 2, Item, Player, "We learned what rocks would sell to the furless. Sometimes they would try to remove the Clan by force, but we would chase them from the lowest caverns to the entrance. They were trained to run swiftly away through the many tunnels. We chased them for sport. We chased them to keep them away from our mines. They never learned.")
  52. end
  53. function EntryFive(Item, Player)
  54. SetStepComplete(Player, BasicMinersGuidePartOne, 8)
  55. conversation = CreateConversation()
  56. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 9) then
  57. AddConversationOption(conversation, "Entry Six", "EntrySix")
  58. end
  59. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  60. StartDialogConversation(conversation, 2, Item, Player, "The furless fought each other, which was good for the Clan. If they fought each other, they would not bother us. We worked in the dark in our mines, our paws flowing with ore. While the furless fought, we kept to ourselves. The Clan is not interested in the wars of those who do not believe in the Great Sage.")
  61. end
  62. function EntrySix(Item, Player)
  63. SetStepComplete(Player, BasicMinersGuidePartOne, 10)
  64. conversation = CreateConversation()
  65. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 11) then
  66. AddConversationOption(conversation, "Entry Seven", "EntrySeven")
  67. end
  68. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  69. StartDialogConversation(conversation, 2, Item, Player, "Now, a word about mining itself, pups. To mine successfully, get a pick. A pick has a sharp, pointed end like a fang. You swing this at the stones hiding the ore. Swing, swing again. The stones crumble and are pulled away. The ore shows. Then the miners bring carts that are rolled from the depths full of ore. That is the basic mining principle. Now back to our history.")
  70. end
  71. function EntrySeven(Item, Player)
  72. SetStepComplete(Player, BasicMinersGuidePartOne, 12)
  73. conversation = CreateConversation()
  74. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 13) then
  75. AddConversationOption(conversation, "Entry Eight", "EntryEight")
  76. end
  77. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  78. StartDialogConversation(conversation, 2, Item, Player, "We mined into the depths, we used the mining ways of old. Remove stone, find ore. Remove ore. For generations, we mined the Blackburrow. In some of the hollows, we kept our mates and offspring. In some of the hollows, we stored our food. Through the years the furless fought, we kept our ways.")
  79. end
  80. function EntryEight(Item, Player)
  81. SetStepComplete(Player, BasicMinersGuidePartOne, 14)
  82. conversation = CreateConversation()
  83. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 15) then
  84. AddConversationOption(conversation, "Entry Nine", "EntryNine")
  85. end
  86. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  87. StartDialogConversation(conversation, 2, Item, Player, "But the furless were not content with fighting each other. No! They brought their wars to the Clan. Not interested in our ore, but our tunnels. The tunnels! Worthless to any but the gnoll who can see fine in the dark. They came in anyway, forcing us from our hollows. They were huge and green and fur would not improve their looks.")
  88. end
  89. function EntryNine(Item, Player)
  90. SetStepComplete(Player, BasicMinersGuidePartOne, 16)
  91. conversation = CreateConversation()
  92. if QuestStepIsComplete(Player, BasicMinersGuidePartOne, 17) then
  93. AddConversationOption(conversation, "Entry Ten", "EntryTen")
  94. end
  95. AddConversationOption(conversation, "Put book away", "CloseItemConversation")
  96. StartDialogConversation(conversation, 2, Item, Player, "The Clan is clever. We let them think we gave way before them. But we had other, secret ways beneath the Blackburrow. Some of the furless found them. They used our secret, sacred tunnels to gather their strength. They ate our stores of food. They drove away the weak. Curse them, in our secret places!")
  97. end
  98. function EntryTen(Item, Player)
  99. SetStepComplete(Player, BasicMinersGuidePartOne, 18)
  100. end