TornalHaymaker.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/TornalHaymaker.lua
  3. Script Purpose : bruiser trainer
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local BRUISER = 7
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if GetClass(Spawn) == BRUISER then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "What advice do you have for a another bruiser?", "BruisChat1")
  20. AddConversationOption(conversation, "It does, doesn't it? Good bye.")
  21. StartConversation(conversation, NPC, Spawn, "You need not tell me that you are a fellow. bruiser. Your intimidating presence made that clear, my friend.")
  22. else
  23. PlayFlavor(NPC, "", "Idle chat is useless. If you are not here to train, then leave.", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function BruisChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's useful to know!", "BruisChat2")
  30. StartConversation(conversation, NPC, Spawn, "If you find items that add to your strength or stamina, be sure to get them! Strength increases the amount of damage your attacks can inflict on others and raises your ability to carry heavy weight. Your stamina affects your health. This is crucial.")
  31. end
  32. function BruisChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That's good to know.", "BruisChat3")
  36. StartConversation(conversation, NPC, Spawn, "But first and foremost, you should know the power that flows through you. We focus our minds and bodies through sheer force of will in order to withstand attacks and reduce the amount of damage inflicted upon us.")
  37. end
  38. function BruisChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "That's interesting.", "BruisChat4")
  42. StartConversation(conversation, NPC, Spawn, "But our discipline offers a great deal more than just defense. We are masters of physical combat! We have transformed our bodies into vicious weapons to inflict pain and suffering upon any who dare to oppose us! This allows us to often hold a foe's attention, giving our allies a chance to attack it, too.")
  43. end
  44. function BruisChat4(NPC, Spawn)
  45. conversation = CreateConversation()
  46. FaceTarget(NPC, Spawn)
  47. AddConversationOption(conversation, "That's interesting.", "BruisChat5")
  48. StartConversation(conversation, NPC, Spawn, "And although we excel at hand to hand combat, some bruisers wield staves or hammers. Such weapons are simply an extension of yourself and can be equally effective at inflicting damage or deflecting an attacker's blade.")
  49. end
  50. function BruisChat5(NPC, Spawn)
  51. conversation = CreateConversation()
  52. FaceTarget(NPC, Spawn)
  53. AddConversationOption(conversation, "Thank you for the advice.")
  54. StartConversation(conversation, NPC, Spawn, "And protect yourself as best you can in leather, " .. GetName(Spawn) .. ". An encumbering suit of armor would only get in your way while you brutalize your foes with your relentless attacks.")
  55. end