9
3

TrainerBordaGemseeker.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TrainerBordaGemseeker.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Trainer Borda Gemseeker dialog
  6. Modified Date : 2020.04.03
  7. Modified by : premierio015
  8. Notes : Added all correct voiceover options, added animations.
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. math.randomseed(os.time())
  19. choice = math.random (1, 3)
  20. str = tostring(choice)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1061.mp3", "", "beckon", 0, 0, Spawn)
  23. AddConversationOption(conversation, "I'd like to learn about collections.", "dlg_0_1")
  24. AddConversationOption(conversation, "I'd like to learn about harvesting.","dlg_0_4")
  25. AddConversationOption(conversation, "I've no time to chat right now.")
  26. StartConversation(conversation, NPC, Spawn, "Don't be shy! Come closer, m'dear, and I'd be happy to answer any questions you have about collections or harvesting!")
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1061.mp3", "", "beckon", 0, 0, Spawn)
  29. AddConversationOption(conversation, "I'd like to learn about collections.", "dlg_0_1")
  30. AddConversationOption(conversation, "I'd like to learn about harvesting.","dlg_0_4")
  31. AddConversationOption(conversation, "I've no time to chat right now.")
  32. StartConversation(conversation, NPC, Spawn, "Don't be shy! Come closer, m'dear, and I'd be happy to answer any questions you have about collections or harvesting!")
  33. else
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1061.mp3", "", "beckon", 0, 0, Spawn)
  35. AddConversationOption(conversation, "I'd like to learn about collections.", "dlg_0_1")
  36. AddConversationOption(conversation, "I'd like to learn about harvesting.","dlg_0_4")
  37. AddConversationOption(conversation, "I've no time to chat right now.")
  38. StartConversation(conversation, NPC, Spawn, "Don't be shy! Come closer, m'dear, and I'd be happy to answer any questions you have about collections or harvesting!")
  39. end
  40. end
  41. function dlg_0_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. PlayAnimation(NPC, 12028)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "What happens next?", "dlg_0_2")
  46. StartConversation(conversation, NPC, Spawn, "Collectibles are seen as a glow rising from the ground. If you're close enough, you'll notice a question mark above it. Double-click or right-click the glow and select 'harvest.' The item you gather will go into your inventory. You can examine this item in your inventory.")
  47. end
  48. function dlg_0_2(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. PlayAnimation(NPC, 11882)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "How do I complete the collection?", "dlg_0_3")
  53. StartConversation(conversation, NPC, Spawn, "Your quest journal will open up automatically to the Collections tab. Use the Add button to add that item to a collection. As you travel through Norrath, you'll find different collectibles in different areas of the world. Some items can be part of more than one collection.")
  54. end
  55. function dlg_0_3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. PlayAnimation(NPC, 11909)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "I'd like to learn about harvesting and gathering now.", "dlg_0_4")
  60. AddConversationOption(conversation, "Thanks for the information.")
  61. StartConversation(conversation, NPC, Spawn, "Continue to gather and examine all the items you find until all the icons of that collection are highlighted in your quest journal. Then you'll be able to turn the completed collection in to a collector who will reward you with some experience. If you already have a collectible in all collections that call for it, you can sell it to a merchant or trade it to another player.")
  62. end
  63. function dlg_0_4(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "What are harvestables used for?", "dlg_0_5")
  67. StartConversation(conversation, NPC, Spawn, "Harvestables come in five forms, each tied to its own respective skill. These skills can be seen by opening your Skills window by pressing the P key, clicking on the Skills tab and selecting your General skills. Rocks increase mining, logs increase foresting, dens increase trapping, fish increase fishing, and plants increase gathering.")
  68. end
  69. function dlg_0_5(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "Why do I need to increase my harvesting skills?", "dlg_0_6")
  73. StartConversation(conversation, NPC, Spawn, "The items found through harvesting are the basic building blocks of tradeskills. They cannot be sold to vendors, but they can be traded or sold to other players who need them for their respective tradeskill professions. Some components that can be found through harvesting are very rare and can be worth quite a bit of money to tradeskillers.")
  74. end
  75. function dlg_0_6(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "I'd like to learn about collections now.", "dlg_0_1")
  79. AddConversationOption(conversation, "Thanks for the information.")
  80. StartConversation(conversation, NPC, Spawn, "The skill required to harvest in a given area increases along with the difficulty of the area. If you find that you are unable to harvest in an area you should return to a less difficult area and practice.")
  81. end