9
3

JonakHarvester.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/WestFreeport/JonakHarvester.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.26 07:10:24
  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. Dialog4(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "I'm sorry, my services are only available to those more advanced in the arts.", "", 0, 0, Spawn, 0)
  21. elseif choice == 2 then
  22. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1042.mp3", 0, 0, Spawn)
  23. elseif choice == 3 then
  24. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.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("I can help you change to another crafting profession, but you will have to forget everything you know, and start again as a low level artisan. All the recipes specific to your class that you've learned so far will be forgotten. ")
  31. Dialog.AddOption("No thanks. I've changed my mind.", "Dialog5")
  32. Dialog.AddOption("Yes, I'd like to forget everything I know about my crafting profession, and start a new trade from the beginning.")
  33. Dialog.Start()
  34. end
  35. function Dialog4(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. Dialog.AddDialog("Greetings! How are you enjoying your crafting career?")
  39. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1002.mp3", 0, 0)
  40. Dialog.AddOption("Just fine, thanks.", "Dialog5")
  41. Dialog.AddOption("Actually, I'm not enjoying it of late. Can you advise me on how to learn another trade?", "Dialog1")
  42. Dialog.Start()
  43. end
  44. function Dialog5(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("Good to hear. Good day to you.")
  48. Dialog.AddOption("And you!")
  49. Dialog.Start()
  50. end