BadenMoonheart.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/BadenMoonheart.lua
  3. Script Purpose : monk trainer
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local MONK = 6
  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) == MONK then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "What advice do you have for a another monk?", "MonkChat1")
  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. monk. I can sense the aura of serenity that envelopes you, my friend.")
  22. else
  23. PlayFlavor(NPC, "", "May your path be clear, friend.", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function MonkChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's useful to know!", "MonkChat2")
  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 MonkChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That's good to know.", "MonkChat3")
  36. StartConversation(conversation, NPC, Spawn, "But first and foremost, you should know the power you wield. We focus our minds and bodies through tranquility and subtleness in order to withstand attacks and reduce the amount of damage inflicted upon us. We can also use it to purge our bodies of ailments, move invisibly past an enemy or even fool opponents into believing us dead.")
  37. end
  38. function MonkChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "That will be useful!", "MonkChat4")
  42. StartConversation(conversation, NPC, Spawn, "But our discipline offers a great deal more than just defense. Our attacks are formidable and swift, as well! This allows us to often hold a foe's attention while others attack it.")
  43. end
  44. function MonkChat4(NPC, Spawn)
  45. conversation = CreateConversation()
  46. FaceTarget(NPC, Spawn)
  47. AddConversationOption(conversation, "That's interesting.", "MonkChat5")
  48. StartConversation(conversation, NPC, Spawn, "And although we excel at hand to hand combat, some of our brethren 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 MonkChat5(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 hinder you and interfere with our superior hand to hand combat.")
  55. end