9
3

GarfaGillgrinder.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : SpawnScripts/WorkshopEvil/GarfaGillgrinder.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.23 02:05:18
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ARTISAN_ESSENTIALS_VOLUME_2 = 31373
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. voice = math.random (1,3)
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1055.mp3", "", "hello", 0, 0, Spawn)
  23. Dialog.AddDialog("You show interest in the crafting trade, good. Freeport can always use talented artisans within the walls of our great city. I can help you get started and offer you some of the basic recipes at no charge. Would you be interested?")
  24. if not HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) or not HasRecipeBook(Spawn,ARTISAN_ESSENTIALS_VOLUME_2) then
  25. Dialog.AddOption("Yes, please teach me.", "Dialog2")
  26. elseif HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) or HasRecipeBook(Spawn,ARTISAN_ESSENTIALS_VOLUME_2) then
  27. Dialog.AddOption("I've already got the basics down. Thanks.","Basics")
  28. end
  29. Dialog.AddOption("I actually want to learn more about crafting professions.","Professions")
  30. Dialog.AddOption("No, not at the moment.")
  31. Dialog.Start()
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. SummonItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1)
  37. Dialog.AddDialog("There, you now have the basic recipes and the knowledge to begin crafting. Everything else you need to get yourself started can be found right here.")
  38. Dialog.AddOption("I actually want to learn more about crafting professions.","Professions")
  39. Dialog.AddOption("I will start on that now.")
  40. Dialog.Start()
  41. end
  42. function Basics(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("In that case, if you're looking for more training you'll need to head to the mainland. They can teach you more advanced techniques and refine your craft.")
  46. Dialog.AddOption("I actually want to learn more about crafting professions.","Professions")
  47. Dialog.AddOption("Good to know. I'll look into it.")
  48. Dialog.Start()
  49. end
  50. function Professions(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Crafting professions are taught by master crafters on the mainland. You'll be able to learn techniques on becoming an Outfitter, Craftsman, or Scholar. All three specialize even further once you've got a handle on the techniques.")
  54. Dialog.AddOption("Tell me about Craftsmen","Craftsman")
  55. Dialog.AddOption("Tell me about Outfitters","Outfitter")
  56. Dialog.AddOption("Tell me about Scholars","Scholars")
  57. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  58. Dialog.Start()
  59. end
  60. function Outfitter(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. Dialog.AddDialog("Outfitters are the main providers of metal weapons and and all sorts of armor. Cloth, leather, and metal armor are all developed by their skills.")
  64. Dialog.AddOption("Tell me about Craftsmen","Craftsman")
  65. Dialog.AddOption("Tell me about Scholars","Scholars")
  66. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  67. Dialog.Start()
  68. end
  69. function Scholars(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("Scholars dabble in precision and sometimes magic for their crafts. They provide jewelery, potions, and scrolls for additional power. Scholars are also the primary provider of crafted advanced skill training for all adventurers.")
  73. Dialog.AddOption("Tell me about Craftsmen","Craftsman")
  74. Dialog.AddOption("Tell me about Outfitters","Outfitter")
  75. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  76. Dialog.Start()
  77. end
  78. function Craftsman(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddDialog("A Craftsman specializes in the more organic side of crafting. They can shape wood into weapons, enchanted totems, and home furniture. They are also the best known chefs and brewers that provide sustenance to hungry bellies.")
  82. Dialog.AddOption("Tell me about Outfitters","Outfitter")
  83. Dialog.AddOption("Tell me about Scholars","Scholars")
  84. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  85. Dialog.Start()
  86. end