9
3

TrainerNoggDreadscar.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/TrainerNoggDreadscar.lua
  3. Script Purpose : Trainer Nogg Dreadscar <Expert in Physical Attributes>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  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. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/trainer_nogg_dreadscar/tutorial_island02_evil_revamp/trainers/attributes/nogg_dreadscar001.mp3", "", "", 1345962966, 10192429, Spawn)
  17. if HasQuest(Spawn, 54) and GetQuestStep(Spawn, 54) == 1 then
  18. AddConversationOption(conversation, "What do you know about Charles Arker?", "dlg_36_1")
  19. end
  20. AddConversationOption(conversation, "Tell me what my physical attributes do.", "PhysicalAttributes")
  21. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  22. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  23. AddConversationOption(conversation, "I will ask you about this later.")
  24. StartConversation(conversation, NPC, Spawn, "Well met, " .. GetName(Spawn) .. ". The Overlord demands that his subjects maintain a healthy body and a keen mind. He has charged me with training new recruits about your physical attributes: Strength, Agility, Stamina, Intelligence, and Wisdom.")
  25. end
  26. function PhysicalAttributes(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "Tell me about Agility", "AgilityAttribute")
  29. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  30. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  31. AddConversationOption(conversation, "Thanks for the information.")
  32. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength you have, the more physical damage you can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Monks and Paladins have.")
  33. end
  34. function ShowAttributes(NPC, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "Tell me what my physical attributes do.", "PhysicalAttributes")
  37. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  38. AddConversationOption(conversation, "Thanks for the information.")
  39. StartConversation(conversation, NPC, Spawn, "You can see your physical attributes, as well as other important aspects of your character in your persona window. Just press the P key to open your persona window.")
  40. end
  41. function ImproveAttributes(NPC, Spawn)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "Are there other ways?", "OtherWays")
  44. AddConversationOption(conversation, "Thank you for the information.")
  45. 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.")
  46. end
  47. function OtherWays(NPC, Spawn)
  48. conversation = CreateConversation()
  49. AddConversationOption(conversation, "Tell me what my physical attributes do.", "PhysicalAttributes")
  50. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  51. AddConversationOption(conversation, "I will ask you about this later.")
  52. 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.")
  53. end
  54. function AgilityAttribute(NPC, Spawn)
  55. conversation = CreateConversation()
  56. AddConversationOption(conversation, "Tell me about Stamina", "StaminaAttribute")
  57. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  58. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  59. AddConversationOption(conversation, "Thank you for the information.")
  60. 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 Swashbucklers, Rangers, Troubadors, and Dirges have.")
  61. end
  62. function StaminaAttribute(NPC, Spawn)
  63. conversation = CreateConversation()
  64. AddConversationOption(conversation, "Tell me about Intelligence", "IntelligenceAttribute")
  65. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  66. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  67. AddConversationOption(conversation, "Thank you for the information.")
  68. 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.")
  69. end
  70. function IntelligenceAttribute(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "Tell me about Wisdom", "WisdomAttribute")
  73. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  74. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  75. AddConversationOption(conversation, "Thank you for the information.")
  76. StartConversation(conversation, NPC, Spawn, "Intelligence is more than just a sign of how smart you are. The more Intelligence you have, the more damage you do with spells in combat. Intelligence also determines the maximum amount of power Wizards, Warlocks, Illusionists, Conjurors, Troubadors, and Dirges have.")
  77. end
  78. function WisdomAttribute(NPC, Spawn)
  79. conversation = CreateConversation()
  80. AddConversationOption(conversation, "How do I view my physical attributes?.", "ShowAttributes")
  81. AddConversationOption(conversation, "How do I improve my physical attributes?", "ImproveAttributes")
  82. AddConversationOption(conversation, "Thank you for the information.")
  83. 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 Templars, Mystics, Furies, Wardens, and Paladins have.")
  84. end
  85. function dlg_36_1(NPC, Spawn)
  86. SetStepComplete(Spawn, 54, 1)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. AddConversationOption(conversation, "Thanks for letting me know.", "dlg_36_2")
  90. StartConversation(conversation, NPC, Spawn, "Charles Barker? Larker? Jarker? Nope, never heard of him.")
  91. end