9
3

TrainerCharleneStoutmuffin.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TrainerCharleneStoutmuffin.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Trainer Charlene Stoutmuffin dialog
  6. Modified Date : 20.04.04
  7. Modiefied by : premierio015
  8. Notes : Added all correct voiceover options and 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_1039.mp3", "", "", 0, 0)
  23. AddConversationOption(conversation, "Tell me about items and equipment.", "dlg_12_1")
  24. AddConversationOption(conversation, "Tell me about my inventory.", "dlg_12_11")
  25. AddConversationOption(conversation, "I will return for instruction later.")
  26. StartConversation(conversation, NPC, Spawn, "Good day, " .. GetName(Spawn) .. ". I'm here at the colony to teach our Queen's newest recruits about equipment and inventory space. Good equipment is one of the most important aspects of any adventurer!")
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1039.mp3", "", "", 0, 0)
  29. AddConversationOption(conversation, "Tell me about items and equipment.", "dlg_12_1")
  30. AddConversationOption(conversation, "Tell me about my inventory.", "dlg_12_11")
  31. AddConversationOption(conversation, "I will return for instruction later.")
  32. StartConversation(conversation, NPC, Spawn, "Good day, " .. GetName(Spawn) .. ". I'm here at the colony to teach our Queen's newest recruits about equipment and inventory space. Good equipment is one of the most important aspects of any adventurer!")
  33. else
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1039.mp3", "", "", 0, 0)
  35. AddConversationOption(conversation, "Tell me about items and equipment.", "dlg_12_1")
  36. AddConversationOption(conversation, "Tell me about my inventory.", "dlg_12_11")
  37. AddConversationOption(conversation, "I will return for instruction later.")
  38. StartConversation(conversation, NPC, Spawn, "Good day, " .. GetName(Spawn) .. ". I'm here at the colony to teach our Queen's newest recruits about equipment and inventory space. Good equipment is one of the most important aspects of any adventurer!")
  39. end
  40. end
  41. function dlg_12_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayAnimation(NPC, 11882)
  45. AddConversationOption(conversation, "What can I do with the treasures I earn while adventuring?", "dlg_12_2")
  46. AddConversationOption(conversation, "I will return for instruction later.")
  47. StartConversation(conversation, NPC, Spawn, "Norrath is full of treasures for brave heroes like you. Sometimes the opponents you defeat in battle leave behind treasure chests with valuable loot. You can also buy items from other players, craft them as an artisan, or be awarded items for completing quests.")
  48. end
  49. function dlg_12_2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayAnimation(NPC, 10745)
  53. AddConversationOption(conversation, "What does the item information tell me?", "dlg_12_3")
  54. AddConversationOption(conversation, "I will return for instruction later.")
  55. StartConversation(conversation, NPC, Spawn, "Some items you obtain can be equipped on your person. If you find weapons, armor, jewelry, or certain other goodies, you may be able to use them. To look at a piece of equipment and determine if you can use it, move your mouse pointer over the item.")
  56. end
  57. function dlg_12_3(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. AddConversationOption(conversation, "Are things like attribute bonuses important?", "dlg_12_4")
  61. AddConversationOption(conversation, "I will return for instruction later.")
  62. StartConversation(conversation, NPC, Spawn, "For items that can be equipped, such as weapons and armor, mousing over it tells you which professions can use the item and at what level it can be equipped. You'll also see any benefits, such as attribute bonuses and resists, that the equipment provides. Learn about attributes by talking to Trainer Gurga Trueheart.")
  63. end
  64. function dlg_12_4(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayAnimation(NPC, 11882)
  68. AddConversationOption(conversation, "How can I tell which of two weapons is better?", "dlg_12_5")
  69. AddConversationOption(conversation, "I will return for instruction later.")
  70. StartConversation(conversation, NPC, Spawn, "A wise adventurer is always trying to improve his or her equipment. Whenever you see gear that provides an overall greater benefit than what you have, that item is an upgrade for you.")
  71. end
  72. function dlg_12_5(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayAnimation(NPC, 11882)
  76. AddConversationOption(conversation, "How can I tell which of two pieces of armor is better?", "dlg_12_6")
  77. AddConversationOption(conversation, "I will return for instruction later.")
  78. StartConversation(conversation, NPC, Spawn, "Weapons have a Damage Rating that shows the relative damage you can do with them. A higher Damage Rating is always better. Be sure you are comparing weapons of the same type, such as a two-handed weapon with another two-hander, or one dual-wield weapon with another.")
  79. end
  80. function dlg_12_6(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. AddConversationOption(conversation, "What about scouts and priests?", "dlg_12_7")
  84. AddConversationOption(conversation, "I will return for instruction later.")
  85. StartConversation(conversation, NPC, Spawn, "How you judge armor depends on your profession. Fighters who take a beating care most about obtaining armor that has high Mitigation, which decreases the amount of damage they take. Mages, on the other hand, know they can't take much punishment anyway, so would rather have armor that provides nice attribute bonuses.")
  86. end
  87. function dlg_12_7(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayAnimation(NPC, 11882)
  91. AddConversationOption(conversation, "What do I do with equipment I can't use?", "dlg_12_8")
  92. AddConversationOption(conversation, "I will return for instruction later.")
  93. StartConversation(conversation, NPC, Spawn, "Scouts and priests need varying amounts of protection depending on how they play. If they find themselves at the forefront of battle, protection becomes very important. If they stay out of harms way, attribute bonuses may be more valuable.")
  94. end
  95. function dlg_12_8(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayAnimation(NPC, 10745)
  99. AddConversationOption(conversation, "Why are some items marked 'No Value' or 'No Trade'?", "dlg_12_9")
  100. AddConversationOption(conversation, "I will return for instruction later.")
  101. StartConversation(conversation, NPC, Spawn, "An item can be sold to a non-player merchant for cash unless it has the 'No Value' flag on it. Items can be sold or traded to another player unless it has the 'No Trade' flag. If an item says it is 'Lore,' you can only have one of them on your character at a time.")
  102. end
  103. function dlg_12_9(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. conversation = CreateConversation()
  106. AddConversationOption(conversation, "What does it mean when an item says it is 'Attuneable'?", "dlg_12_10")
  107. AddConversationOption(conversation, "I will return for instruction later.")
  108. StartConversation(conversation, NPC, Spawn, "Some items are marked 'No Value' because they are easy to obtain, such as harvested goods. You have to work to earn wealth," .. GetName(Spawn) .. ". Items are marked 'No Trade' in order to ensure that you earn them yourself, such as defeating a very tough monster or completing a long quest.")
  109. end
  110. function dlg_12_10(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayAnimation(NPC, 11882)
  114. AddConversationOption(conversation, "How do I manage my inventory?", "dlg_12_11")
  115. AddConversationOption(conversation, "I will return for instruction later.")
  116. StartConversation(conversation, NPC, Spawn, "If an item is marked 'Attuneable,' you must attune it to yourself before it provides any benefits. You'll notice a message on screen when you are wearing an item that must be attuned. To attune it, right-click on the item and select 'Attune.' Once attuned, that item can no longer be traded or sold to another player.")
  117. end
  118. function dlg_12_11(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. conversation = CreateConversation()
  121. AddConversationOption(conversation, "Can I put bags inside of bags?", "dlg_12_12")
  122. AddConversationOption(conversation, "I will return for instruction later.")
  123. StartConversation(conversation, NPC, Spawn, "Press the I key to open your inventory. Beneath your portrait are six slots that can hold items. You can place bags or other containers in those slots, which will give you even more storage space. Press the B key to open all your bags at once.")
  124. end
  125. function dlg_12_12(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayAnimation(NPC, 11882)
  129. AddConversationOption(conversation, "So one item takes up one bag slot?", "dlg_12_13")
  130. AddConversationOption(conversation, "I will return for instruction later.")
  131. StartConversation(conversation, NPC, Spawn, "Only empty bags can go inside other bags. For this reason, it's a good idea to get hold of containers with many slots. After a long night of adventuring or harvesting, you'll want to have as many places to store your goodies as possible.")
  132. end
  133. function dlg_12_13(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. AddConversationOption(conversation, "Tell me about items and equipment.", "dlg_12_1")
  137. AddConversationOption(conversation, "I will return for instruction later.")
  138. StartConversation(conversation, NPC, Spawn, "Certain items, such as ammunition or harvested resources, can be stacked up to 200 at a time, depending on the item. Many goods, such as armor and clothing, cannot be stacked at all.")
  139. end