9
3

DvarkorSkanin.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/DvarkorSkanin.lua
  3. Script Purpose : Dvarkor Ska'nin
  4. Script Author : Ememjr
  5. Script Date : 2022.08.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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, Player)
  15. RandomGreeting(NPC, Player)
  16. Dialog.New(NPC, Player)
  17. Dialog.AddDialog("You show interest in the crafting trade. Good. We can always use talented artisans. I can help you get started. Would you be interested?")
  18. Dialog.AddRequirement(REQ_REQ_TSLEVEL,1)
  19. Dialog.AddOption("Yes, please teach me.", "Dialog1")
  20. Dialog.AddOption("No, not at the moment.")
  21. Dialog.New(NPC, Player)
  22. Dialog.AddRequirement(REQ_TSLEVEL_GREATER_OR_EQUAL, 2)
  23. Dialog.AddRequirement(REQ_TSLEVEL_LESS_OR_EQUAL, 8)
  24. Dialog.AddDialog("I have nothing else to teach you for the moment. Please return to me when you have earned enough experience to choose your specialty. If you would like a tutorial on crafting, Rozokal Niba'mok will be happy to assist you.")
  25. Dialog.New(NPC, Player)
  26. Dialog.AddRequirement(REQ_TSLEVEL_GREATER_OR_EQUAL, 10)
  27. Dialog.AddRequirement(REQ_TSLEVEL_LESS_OR_EQUAL, 18)
  28. Dialog.AddDialog("I have nothing else to teach you for the moment. Please return to me when you have earned enough experience to choose your specialty. If you would like a tutorial on crafting, Rozokal Niba'mok will be happy to assist you.")
  29. Dialog.Start()
  30. end
  31. function RandomGreeting(NPC, Spawn)
  32. local choice = MakeRandomInt(1,3)
  33. --well met, greetings, salutations
  34. -- only "i have nothing to teach"
  35. if choice == 1 then
  36. PlayFlavor(NPC, "", "I have nothing else to teach you for the moment. Please return to me when you have earned enough experience to choose your specialty. If you would like a tutorial on crafting, Rozokal Niba'mok will be happy to assist you.", "", 0, 0, Spawn, 0)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "", "You are free to use our crafting facilities to hone your skills and master your craft. If you would like a tutorial on crafting, Rozokal Niba'mok will be happy to assist you, and if you'd like to change your crafting profession, Salviln Grau'tuz can assist.", "", 0, 0, Spawn, 0)
  39. elseif choice == 3 then
  40. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0, Spawn)
  41. end
  42. end
  43. function Dialog1(NPC, Spawn)
  44. -- Give artidan essentials 1 and 2 and advace TS to level 2
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("There, you now have knowledge required to begin crafting. Speak to the Tradeskill Tutor for more detailed guidance on learning to craft, if you are interested in more information. Return to me when you are ready to select a crafting specialty.")
  48. Dialog.AddOption("I will start on that now.")
  49. Dialog.Start()
  50. end
  51. function Dialog2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddDialog("Best of luck!")
  55. Dialog.AddOption("Thanks, and farewell.")
  56. Dialog.Start()
  57. end
  58. function Dialog3(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("Fortune be with you!")
  62. Dialog.AddOption("Thank you, and good bye.")
  63. Dialog.Start()
  64. end
  65. function Dialog4(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. Dialog.New(NPC, Spawn)
  68. Dialog.AddDialog("You show interest in the crafting trade. Good. We can always use talented artisans. I can help you get started. Would you be interested?")
  69. Dialog.AddOption("Yes, please teach me.", "Dialog1")
  70. Dialog.AddOption("No, not at the moment.")
  71. Dialog.Start()
  72. end
  73. function Dialog5(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. Dialog.New(NPC, Spawn)
  76. Dialog.AddDialog("I'm glad you have come back for more training, it looks like you've learned quite a bit in a very short time. I can certify you in your chosen trade class. Before I begin your paperwork I'll need your name.")
  77. Dialog.AddOption("My name is XXXXX.", "Dialog2")
  78. Dialog.AddOption("No thank you, I'll come back later.")
  79. Dialog.Start()
  80. end
  81. function Dialog6(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. Dialog.AddDialog("I'm glad that you continued on as an Outfitter and came back to advance your skills. I can certify you in your chosen trade specialty. I need your name before I can start your paperwork.")
  85. Dialog.AddOption("My name is Calisharoo.", "Dialog3")
  86. Dialog.Start()
  87. end