TrainerGregoryCollins.lua 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TrainerGregoryCollins.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Trainer Gregory Collins dialog
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. math.randomseed(os.time())
  17. voice = math.random (1,3)
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1004.mp3", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "How does one take up crafting?", "dlg_18_1")
  20. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  21. StartConversation(conversation, NPC, Spawn, "Hello my friend! I have the pleasure of serving Qeynos by explaining the role of crafting and tradeskills to newly arrived heroes such as you. By taking on the role of an artisan, you can help expand the influence of our fair city in worldwide commerce.")
  22. end
  23. function dlg_18_1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. PlayAnimation(NPC, 11882)
  27. AddConversationOption(conversation, "Where does one perform crafting?", "dlg_18_2")
  28. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  29. StartConversation(conversation, NPC, Spawn, "Crafting, or tradeskilling as some call it, involves taking ingredients harvested or obtained in the world, mixing them with the proper fuel, and carefully following a specific recipe to create something new and useful for yourself or your fellow citizens. Just as you can gain levels by adventuring, you have a separate Artisan level that increases as you earn experience crafting.")
  30. end
  31. function dlg_18_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "Can I make a variety of items?", "dlg_18_3")
  35. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  36. StartConversation(conversation, NPC, Spawn, "Crafting takes place in workshops, just like the one we have here on the island. Inside the workshops you will find the fuel and devices you'll need to build, cook, scribe, sew, and create all manner of useful goods. When you arrive in our grand city, you will find the entrance to a similar workshop in your home village.")
  37. end
  38. function dlg_18_3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "What could I specialize in?", "dlg_18_4")
  42. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  43. StartConversation(conversation, NPC, Spawn, "As you practice your craft you will learn to make a variety of products, but as you advance in your profession you will specialize in certain types of goods. As you acquire new recipe books, you will learn new types of items you can make.")
  44. end
  45. function dlg_18_4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayAnimation(NPC, 11882)
  49. AddConversationOption(conversation, "Where do I learn recipes?", "dlg_18_5")
  50. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  51. StartConversation(conversation, NPC, Spawn, "You might choose to become a Provisioner that makes food and drink, a Woodworker that crafts totems and staves, an Armorer that forges plate and chain armor, a Sage that scribes potent spells for mages and priests, or one of many other noble professions.")
  52. end
  53. function dlg_18_5(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayAnimation(NPC, 10745)
  57. AddConversationOption(conversation, "What can I do with the items I make?", "dlg_18_6")
  58. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  59. StartConversation(conversation, NPC, Spawn, "Basic recipes can be bought for a small fee from a merchant near the workshops in the cities. Rare recipes can be obtained by adventuring in the wilds of Norrath. You may want to trade goods or services with other adventurers and artisans to obtain such valuable recipes. You can view your recipe book by pressing the N key. ")
  60. end
  61. function dlg_18_6(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayAnimation(NPC, 11882)
  65. AddConversationOption(conversation, "Do you have any further advice?", "dlg_18_7")
  66. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  67. StartConversation(conversation, NPC, Spawn, "You can either use the items yourself or make a tidy profit by selling them to others. A skilled artisan is always in demand for the goods they provide, so learn your craft well and you will always have a place in Qeynos society. ")
  68. end
  69. function dlg_18_7(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "Thank you for the guidance.")
  73. AddConversationOption(conversation, "I will return another time to learn your lesson.")
  74. StartConversation(conversation, NPC, Spawn, "Here is a handbook that will provide you with some basic reference material to start with. Once you reach Qeynos, you will find a tradeskill tutor within your local crafting workshop who can teach you more about crafting in further detail.")
  75. -- JA: Need to give out some tradeskill item here and should only play this step if you don't already have the book.
  76. end