TrainerCharkinMyliDok.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TrainerCharkinMyliDok.lua
  3. Script Purpose : Trainer Charkin Myli'Dok <Harvesting and Collections>
  4. Script Author : John Adams
  5. Script Date : 2009.03.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. choice = math.random(1, 3)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "beckon", 0, 0, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "beckon", 0, 0, Spawn)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "beckon", 0, 0, Spawn)
  23. end
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  25. AddConversationOption(conversation, "I'd like to learn about collections.", "dlg_13_1")
  26. AddConversationOption(conversation, "I'd like to learn about harvesting.", "dlg_13_4")
  27. AddConversationOption(conversation, "I've no time to chat right now.")
  28. StartConversation(conversation, NPC, Spawn, "I am able to answer any questions you have about collections or harvesting.")
  29. end
  30. function dlg_13_1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. AddConversationOption(conversation, "What happens next?", "dlg_13_2")
  34. 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.")
  35. end
  36. function dlg_13_2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "How do I complete the collection?", "dlg_13_3")
  40. 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.")
  41. end
  42. function dlg_13_3(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "I'd like to learn about harvesting and gathering now.", "dlg_13_4")
  46. AddConversationOption(conversation, "Thanks for the information.")
  47. 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.")
  48. end
  49. function dlg_13_4(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "What are harvestables used for?", "dlg_13_5")
  53. 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.")
  54. end
  55. function dlg_13_5(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "Why do I need to increase my harvesting skills?", "dlg_13_6")
  59. 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.")
  60. end
  61. function dlg_13_6(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. AddConversationOption(conversation, "I'd like to learn about collections now.", "dlg_13_7")
  65. AddConversationOption(conversation, "Thanks for the information.")
  66. 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.")
  67. end