9
3

SoulBrazier.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/BrawlersDojo/SoulBrazier.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.17 11:12:42
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC,5790,5,0,0,1)
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. if SpellName == 'Begin Meditation' and not IsInCombat(Spawn)then
  13. local con = CreateConversation()
  14. AddConversationOption(con, "Focus on the words","Step2")
  15. StartDialogConversation(con, 1, NPC, Spawn, "After proving your combat prowess, you take a moment to reflect. Focusing on the shrine you notice words etched along the rim.")
  16. SpawnSet(Spawn,"action_state",540)
  17. end
  18. end
  19. function Step2(NPC, Spawn)
  20. local con = CreateConversation()
  21. AddConversationOption(con, "Recite the mantra and breathe deeply...","Step3")
  22. StartDialogConversation(con, 1, NPC, Spawn, "Meditation leads to Peace.\n\nPeace leads to Serenity.\n\nSerenity leads to Tranquility.\n\nTranquility brings Enlightenment.\n ")
  23. end
  24. function Step3(NPC, Spawn)
  25. local con = CreateConversation()
  26. AddConversationOption(con, "I am a brawler!","Step4")
  27. StartDialogConversation(con, 1, NPC, Spawn, "A cool breeze swirls around you, sending a sensation up your spine. You arise from the altar and know in your heart you are a brawler.")
  28. ApplySpellVisual(Spawn,13)
  29. SpawnSet(Spawn,"action_state",0)
  30. end
  31. function Step4(NPC,Spawn)
  32. SpawnSet(Spawn,"action_state",0)
  33. SetStepComplete(Spawn,5790,5)
  34. CloseConversation(NPC,Spawn)
  35. end
  36. function hailed(NPC, Spawn)
  37. end
  38. function respawn(NPC)
  39. spawn(NPC)
  40. end