BoryaStonehide.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/BoryaStonehide.lua
  3. Script Purpose : guardian trainer
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. local GUARDIAN = 3
  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) == GUARDIAN then
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  19. AddConversationOption(conversation, "What advice can you give a fellow guardian?", "GuardChat1")
  20. AddConversationOption(conversation, "It does, doesn't it? Good day.")
  21. StartConversation(conversation, NPC, Spawn, "I see a familiar fire in your eyes, warrior. The same unrelenting will that resides within all guardians!")
  22. else
  23. PlayFlavor(NPC, "", "I hope you're ready for some serious training!", "hello", 0, 0, Spawn)
  24. end
  25. end
  26. function GuardChat1(NPC, Spawn)
  27. conversation = CreateConversation()
  28. FaceTarget(NPC, Spawn)
  29. AddConversationOption(conversation, "That's interesting.", "GuardChat2")
  30. StartConversation(conversation, NPC, Spawn, "We are often considered the last wall of defense, and for good reason. We protect our allies with unflinching resolve, as that is our call. We protect, above all!")
  31. end
  32. function GuardChat2(NPC, Spawn)
  33. conversation = CreateConversation()
  34. FaceTarget(NPC, Spawn)
  35. AddConversationOption(conversation, "That will be useful!", "GuardChat3")
  36. StartConversation(conversation, NPC, Spawn, "And when you are faced with multiple foes, prioritize your opponents. It often behooves you and your group to pit yourself against the most powerful opponent.")
  37. end
  38. function GuardChat3(NPC, Spawn)
  39. conversation = CreateConversation()
  40. FaceTarget(NPC, Spawn)
  41. AddConversationOption(conversation, "That's good.", "GuardChat4")
  42. StartConversation(conversation, NPC, Spawn, "We leave the more offensive style attacks to others who lack the fortitude to take a beating and defend, but this doesn't mean we can't swing a weapon!")
  43. end
  44. function GuardChat4(NPC, Spawn)
  45. conversation = CreateConversation()
  46. FaceTarget(NPC, Spawn)
  47. AddConversationOption(conversation, "That's useful to know!", "GuardChat5")
  48. 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.")
  49. end
  50. function GuardChat5(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 with a good set of plate mail, " .. GetName(Spawn) .. ". The armor would be considered too heavy by others, but with your focus on strength such highly protective armor has no downside.")
  55. end