AlanaramalZAste.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/AlanaramalZAste.lua
  3. Script Purpose : Alanaramal Z'Aste
  4. Script Author : torsten
  5. Script Date : 2022.07.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, Spawn)
  15. RandomGreeting(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "You have learned everything I have to teach. You are free to use our crafting facilities to hone your skills and master your craft.", "", 0, 0, Spawn, 0)
  21. elseif choice == 2 then
  22. 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 profession.", "", 0, 0, Spawn, 0)
  23. end
  24. end
  25. function Dialog1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. 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.")
  29. Dialog.AddOption("I will start on that now.")
  30. Dialog.Start()
  31. end
  32. function Dialog2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. 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?")
  36. Dialog.AddOption("Yes, please teach me.", "Dialog1")
  37. Dialog.AddOption("No, not at the moment.")
  38. Dialog.Start()
  39. end