KaitlinStonesmith.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/Truthbringer/KaitlinStonesmith.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.29 06:10:38
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. Dialog2(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "You can find harvests for making level 1-9 items in areas where level 1-9 adventurers go to hunt. Around here, you could try Oakmyst Forest, the Caves, Forest Ruins, and the Peat Bog.", "", 0, 0, Spawn, 0)
  21. elseif choice == 2 then
  22. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1041.mp3", 0, 0, Spawn)
  23. elseif choice == 3 then
  24. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1041.mp3", 0, 0, Spawn)
  25. end
  26. end
  27. function Dialog1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("Would you like to learn about harvesting, or skip straight to the crafting process? ")
  31. Dialog.AddOption("Let's start from the beginning with the harvesting.", "Dialog3")
  32. Dialog.AddOption("I've already done some harvesting, tell me what I can do with it all.")
  33. Dialog.AddOption("Whoops, look at the time, got to go.")
  34. Dialog.Start()
  35. end
  36. function Dialog2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("Hello, friend! I'm here to teach interested people a little bit about how to harvest crafting materials, and how to craft tradeskilled items. Are you interested?")
  40. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1041.mp3", 0, 0)
  41. Dialog.AddOption("Yes please, I don't know much about that stuff.", "Dialog1")
  42. Dialog.AddOption("Sure, I think I'm pretty comfortable with it all but I can always use a memory refresher.")
  43. Dialog.AddOption("No thanks, I have other things to do right now.")
  44. Dialog.Start()
  45. end
  46. function Dialog3(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("Harvesting resources tend to be segregated by areas - for example, you'll be able to harvest items (often also called nodes) for making equipment for level 1-9 adventurers, in the same areas where you'll find level 1-9 adventurers hunting. There are seven types of harvestable item: wood, roots, ore, soft metal, animal dens, shrubs, and fish. I'd like you to get a few harvests from each type of harvestable item.")
  50. Dialog.AddOption("I'll get right on it.")
  51. Dialog.Start()
  52. end
  53. function Dialog4(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. Dialog.AddDialog("Hello, friend! I'm here to teach interested people a little bit about how to harvest crafting materials, and how to craft tradeskilled items. Are you interested?")
  57. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1003.mp3", 0, 0)
  58. Dialog.AddOption("Yes please, I don't know much about that stuff.")
  59. Dialog.AddOption("Sure, I think I'm pretty comfortable with it all but I can always use a memory refresher.")
  60. Dialog.AddOption("No thanks, I have other things to do right now.")
  61. Dialog.Start()
  62. end