TrainerModjiVilivarinen.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/TrainerModjiVilivarinen.lua
  3. Script Purpose : Trainer Modji Vilivarinen <Know Your Inventory and Equipment>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji001.mp3", "", "", 629194324, 2384115675, Spawn)
  22. AddConversationOption(conversation, "Tell me about items and equipment.", "dlg_53_1")
  23. AddConversationOption(conversation, "Tell me about my inventory.")
  24. AddConversationOption(conversation, "I will return for instruction later.")
  25. StartConversation(conversation, NPC, Spawn, "Good day, .. GetName(Spawn) .. . I'm here to teach our Queen's newest recruits about equipment and inventory space. Good equipment is one of the most important tools of any adventurer!")
  26. end
  27. function dlg_53_1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji002.mp3", "", "", 4288682285, 68250990, Spawn)
  31. AddConversationOption(conversation, "What can I do with the treasures I earn while adventuring?", "dlg_53_2")
  32. 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.")
  33. end
  34. function dlg_53_2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji003.mp3", "", "", 198169293, 2421181305, Spawn)
  38. AddConversationOption(conversation, "What does the item information tell me?", "dlg_53_3")
  39. AddConversationOption(conversation, "I will return for instruction later.")
  40. 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.")
  41. end
  42. function dlg_53_3(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji004.mp3", "", "", 4004083620, 1433115076, Spawn)
  46. AddConversationOption(conversation, "Are things like attribute bonuses important?", "dlg_53_4")
  47. AddConversationOption(conversation, "I will return for instruction later.")
  48. 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 Rafela Kosimo.")
  49. end
  50. function dlg_53_4(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji005.mp3", "", "", 3148308825, 1768781135, Spawn)
  54. AddConversationOption(conversation, "How can I tell which of two weapons is better?", "dlg_53_5")
  55. AddConversationOption(conversation, "I will return for instruction later.")
  56. 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.")
  57. end
  58. function dlg_53_5(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji006.mp3", "", "", 4261563052, 2529314534, Spawn)
  62. AddConversationOption(conversation, "How can I tell which of two pieces of armor is better?", "dlg_53_6")
  63. AddConversationOption(conversation, "I will return for instruction later.")
  64. 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.")
  65. end
  66. function dlg_53_6(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji007.mp3", "", "", 3055447161, 740281223, Spawn)
  70. AddConversationOption(conversation, "What about scouts and priests?", "dlg_53_7")
  71. AddConversationOption(conversation, "I will return for instruction later.")
  72. 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.")
  73. end
  74. function dlg_53_7(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji008.mp3", "", "", 2976794585, 1667594161, Spawn)
  78. AddConversationOption(conversation, "What do I do with equipment I can't use?", "dlg_53_8")
  79. AddConversationOption(conversation, "I will return for instruction later.")
  80. 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.")
  81. end
  82. function dlg_53_8(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji009.mp3", "", "", 3026014011, 3128688235, Spawn)
  86. AddConversationOption(conversation, "Why are some items marked 'No Value' or 'No Trade'?", "dlg_53_9")
  87. AddConversationOption(conversation, "I will return for instruction later.")
  88. 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.")
  89. end
  90. function dlg_53_9(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji010.mp3", "", "", 3548366649, 3737415014, Spawn)
  94. AddConversationOption(conversation, "What does it mean when an item says it is 'Attuneable'?", "dlg_53_10")
  95. AddConversationOption(conversation, "I will return for instruction later.")
  96. 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.")
  97. end
  98. function dlg_53_10(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji011.mp3", "", "", 2574691428, 2245769529, Spawn)
  102. AddConversationOption(conversation, "How do I manage my inventory?", "dlg_53_11")
  103. 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.")
  104. end
  105. function dlg_53_11(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji012.mp3", "", "", 2929542360, 815972363, Spawn)
  109. AddConversationOption(conversation, "Can I put bags inside of bags?", "dlg_53_12")
  110. AddConversationOption(conversation, "I will return for instruction later.")
  111. 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.")
  112. end
  113. function dlg_53_12(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/tutorials/qst_modji/qst_modji013.mp3", "", "", 1237588561, 2769256355, Spawn)
  117. AddConversationOption(conversation, "So one item takes up one bag slot?", "dlg_53_13")
  118. AddConversationOption(conversation, "I will return for instruction later.")
  119. 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.")
  120. end
  121. function dlg_53_13(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  125. AddConversationOption(conversation, "I'll be back if I need to refresh my memory on this.", "dlg_53_14")
  126. 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.")
  127. end
  128. --[[ raw_conversations
  129. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_modji_vilivarinen/_exp03/exp03_cty_kelethin/trainers/intro_items_modji_eivar_ecfbed22.mp3", "Isn't Eivarra cute, running around collecting things? Even if they are imaginary...", "", 4211386415, 353845935, Spawn)
  130. --]]