NewmanHines.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : SpawnScripts/TradeskillersWorkshop/NewmanHines.lua
  3. Script Purpose : Newman Hines
  4. Script Author : Dorbin
  5. Script Date : 2022.05.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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. -- notes on live once you receive the book, there is never anymore dialog, also after you have received book once even if you deleted it you can never get a free one again.
  18. -- there is an error in the script everytime i talk to Newman i get a book
  19. end
  20. function Dialog1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. voice = math.random (1,3)
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1052.mp3", "", "hello", 0, 0, Spawn)
  25. Dialog.AddDialog("You show interest in the crafting trade, good. We can always use talented artisans within our great city. I can help you get started and offer you some of the basic recipes at no charge. Would you be interested?")
  26. if not HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) or not HasRecipeBook(Spawn,ARTISAN_ESSENTIALS_VOLUME_2) then
  27. Dialog.AddOption("Yes, please teach me.", "Dialog2")
  28. elseif HasItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1) or HasRecipeBook(Spawn,ARTISAN_ESSENTIALS_VOLUME_2) then
  29. Dialog.AddOption("I've already got the basics down. Thanks.","Basics")
  30. end
  31. Dialog.AddOption("I actually want to learn more about crafting professions.","Professions")
  32. Dialog.AddOption("No, not at the moment.")
  33. Dialog.Start()
  34. end
  35. function Dialog2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. SummonItem(Spawn, ARTISAN_ESSENTIALS_VOLUME_2, 1)
  39. SetTradeskillLevel(Spawn, 2)
  40. 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.")
  41. Dialog.AddOption("I actually want to learn more about crafting professions.","Professions")
  42. Dialog.AddOption("I will start on that now.")
  43. Dialog.Start()
  44. end
  45. function Basics(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. 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.")
  49. Dialog.AddOption("I actually want to learn more about crafting professions.","Professions")
  50. Dialog.AddOption("Good to know. I'll look into it.")
  51. Dialog.Start()
  52. end
  53. function Professions(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. 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.")
  57. Dialog.AddOption("Tell me about Craftsmen","Craftsman")
  58. Dialog.AddOption("Tell me about Outfitters","Outfitter")
  59. Dialog.AddOption("Tell me about Scholars","Scholars")
  60. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  61. Dialog.Start()
  62. end
  63. function Outfitter(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. 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.")
  67. Dialog.AddOption("Tell me about Craftsmen","Craftsman")
  68. Dialog.AddOption("Tell me about Scholars","Scholars")
  69. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  70. Dialog.Start()
  71. end
  72. function Scholars(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. 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.")
  76. Dialog.AddOption("Tell me about Craftsmen","Craftsman")
  77. Dialog.AddOption("Tell me about Outfitters","Outfitter")
  78. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  79. Dialog.Start()
  80. end
  81. function Craftsman(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. 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.")
  85. Dialog.AddOption("Tell me about Outfitters","Outfitter")
  86. Dialog.AddOption("Tell me about Scholars","Scholars")
  87. Dialog.AddOption("Wow. Sounds like I have some work to do!")
  88. Dialog.Start()
  89. end