9
3

TrainerNaldurFursythe.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/TrainerNaldurFursythe.lua
  3. Script Purpose : Trainer Naldur Fursythe <Expert in Physical Attributes>
  4. Script Author : theFoof
  5. Script Date : 2013.05.21
  6. Script Notes :
  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. first_chat(NPC, Spawn)
  20. end
  21. function first_chat(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1062.mp3", "", "", 0, 0, Spawn)
  25. AddConversationOption(conversation, "Tell me what my physical attributes do.", "what_chat_1")
  26. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1")
  27. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  28. AddConversationOption(conversation, "I will ask you about this later.")
  29. StartConversation(conversation, NPC, Spawn, "Hello there. You look like you keep both your body and mind in good shape. Even so, I bet you could use more information on your physical attributes: Strength, Agility, Stamina, Intelligence, and Wisdom. That's what I'm here to teach you!")
  30. end
  31. function what_chat_1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "Tell me about Agility.", "what_chat_2")
  36. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1")
  37. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  38. AddConversationOption(conversation, "Thanks for the information.")
  39. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength the fighter has, the more physical damage they can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Bruisers, Monks, Paladins and Shadowknights have.")
  40. end
  41. function what_chat_2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "Tell me about Stamina.", "what_chat_3")
  46. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1")
  47. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  48. AddConversationOption(conversation, "Thanks for the information.")
  49. StartConversation(conversation, NPC, Spawn, "Agility helps you avoid physical attacks. The more Agility you have, the higher your Avoidance ability. Agility also determines the maximum amount of power Brigands, Swashbucklers, Assassins, Rangers, Troubadors and Dirges have and the damage they can inflict.")
  50. end
  51. function what_chat_3(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "Tell me about Intelligence.", "what_chat_4")
  56. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1")
  57. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  58. AddConversationOption(conversation, "Thank you for the information.")
  59. StartConversation(conversation, NPC, Spawn, "Stamina gives you more Health points. The more Health you have, the longer you can survive in battle. Stamina is a useful attribute for every class.")
  60. end
  61. function what_chat_4(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  65. AddConversationOption(conversation, "Tell me about Wisdom.", "dlg_43_5")
  66. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1")
  67. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  68. AddConversationOption(conversation, "Thank you for the information.")
  69. StartConversation(conversation, NPC, Spawn, "Intelligence is more than just a sign of how smart you are. The more Intelligence you have, the more damage mages do with spells in combat. Intelligence also determines the maximum amount of power Wizards, Warlocks, Coercers, Illusionists, Necromancers, Conjurers, Troubadors and Dirges have.")
  70. end
  71. function what_chat_5(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  75. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1", "view_chat_1")
  76. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  77. AddConversationOption(conversation, "Thank you for the information.")
  78. StartConversation(conversation, NPC, Spawn, "Wisdom increases your resistances to magical types of attacks: Heat, Cold, Disease, Poison, Magic, Mental and Divine. Wisdom also determines the maximum amount of power Inquisitors, Templars, Defilers, Mystics, Furies and Wardens have and the damage they can inflict.")
  79. end
  80. function view_chat_1(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  84. AddConversationOption(conversation, "Tell me what my physical attributes do.", "what_chat_1")
  85. AddConversationOption(conversation, "How do I improve my physical attributes?", "impr_chat_1")
  86. AddConversationOption(conversation, "Thank you for the information.")
  87. StartConversation(conversation, NPC, Spawn, "You can see your physical attributes, as well as other important aspects of your character, in your character window. Just press the C key to open your character window.")
  88. end
  89. function impr_chat_1(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  93. AddConversationOption(conversation, "Are there other ways?", "impr_chat_2")
  94. AddConversationOption(conversation, "Thank you for the information.")
  95. StartConversation(conversation, NPC, Spawn, "Your physical attributes, as well as other aspects of your character, can be improved in a number of ways. Many items add points to your attributes, resistances, Health, or Power. Hold your mouse pointer over your items to see what benefits they provide.")
  96. end
  97. function impr_chat_2(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  101. AddConversationOption(conversation, "Tell me what my physical attributes do.", "what_chat_1")
  102. AddConversationOption(conversation, "How do I view my physical attributes?", "view_chat_1")
  103. AddConversationOption(conversation, "I will ask you about this later.")
  104. StartConversation(conversation, NPC, Spawn, "Many spells and combat arts enhance your attributes. Some of these can be cast on yourself, while others can improve other player characters that you group with. Grouping with other classes provides a wider variety of ways to improve your attributes.")
  105. end