VenarianTLye.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/VenarianTLye.lua
  3. Script Author : Rylec
  4. Script Date : 2021.08.07 09:08:22
  5. Script Purpose :
  6. :
  7. --]]
  8. local playerClass = 0
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. playerClass = GetClass(Spawn)
  14. local voice = MakeRandomInt(1,3)
  15. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1054.mp3", "", "", 0, 0, Spawn)
  16. if playerClass == 44 then
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "What advice do you have for a fellow channeler?", "conv_01")
  19. AddConversationOption(conversation, "I will keep that in mind. Thank you.")
  20. StartConversation(conversation, NPC, Spawn, "Welcome, " .. GetName(Spawn) .. ". I am here if you have any questions.")
  21. else
  22. Say(NPC, "The spirits call to each of us, but few of us can hear them.")
  23. end
  24. end
  25. function conv_01(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "Great! What else should I know?", "conv_02")
  29. StartConversation(conversation, NPC, Spawn, "You will want to focus on your Wisdom and Stamina, if you can find items that enhance those abilities. Wisdom will help increase your spell potency and increase your mana pool, and Stamina will help you take more hits and last longer in combat.")
  30. end
  31. function conv_02(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "Okay, and what about my construct?", "conv_03")
  35. StartConversation(conversation, NPC, Spawn, "Conduits are your abilities. When you channel them, your Dissonance will grow. This increased Dissonance will disrupt your harmony with the Truespirit, and you will no longer be able to channel your Conduits. You are better served by keeping your Dissonance as low as possible in most circumstances.")
  36. end
  37. function conv_03(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. AddConversationOption(conversation, "What more can you tell me?", "conv_04")
  41. StartConversation(conversation, NPC, Spawn, "Your construct is your constant companion. It is nearly invincible, and even the most devastating attacks will usually just render it inoperable. It can absorb some of the damage of incoming attacks, and can mean the difference between life and death for you or an ally.")
  42. end
  43. function conv_04(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. AddConversationOption(conversation, "Thank you. I think that's all I need to know for now.")
  47. StartConversation(conversation, NPC, Spawn, "You can use the essences of animals to change the appearance and function of your construct. There are many creatures throughout our world, so I encourage you to experiment with them and see what suits your situation best.")
  48. end
  49. function respawn(NPC)
  50. spawn(NPC)
  51. end