ShrineofInnerReflection.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/TheDisconcertingMeditation/ShrineofInnerReflection.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.21 03:11:22
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetRequiredQuest(NPC,5774,1,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, "Close your eyes...","Step2")
  15. StartDialogConversation(con, 1, NPC, Spawn, "Calming yourself after the combat with the shade proves to be difficult. Looking back on the recent events, you attempt to focus your mind and will yourself into a state of relaxation.")
  16. -- SendMessage(Spawn,"Calming yourself after the combat with the shade proves to be difficult. Looking back on the recent events, you attempt to focus your mind and will yourself into a state of relaxation.")
  17. ApplySpellVisual(NPC,572)
  18. end
  19. end
  20. function Step2(NPC, Spawn)
  21. local con = CreateConversation()
  22. AddConversationOption(con, "Breathe deeply...","Step3")
  23. StartDialogConversation(con, 1, NPC, Spawn, "The creature you faced seems to bear some significance, for you know you have never faced one. You can think of nothing that you have done to draw the ire of something like this, but it seems to be your destiny to cross paths with them... at least, if this meditation serves its purpose.")
  24. -- SendMessage(Spawn,"The creature you faced seems to bear some significance, for you know you have never faced one. You can think of nothing that you have done to draw the ire of something like this, but it seems to be your destiny to cross paths with them... at least, if this meditation serves its purpose.")
  25. end
  26. function Step3(NPC, Spawn)
  27. local con = CreateConversation()
  28. SetStepComplete(Spawn,5774,1)
  29. AddConversationOption(con, "Reflect...","Reflect")
  30. StartDialogConversation(con, 1, NPC, Spawn, "You turn your attention back to a more worldly task and begin trying to wake yourself from the state. Soon, the room fades out, and your body begins to stir.")
  31. -- SendMessage(Spawn,"You turn your attention back to a more worldly task and begin trying to wake yourself from the state. Soon, the room fades out, and your body begins to stir.")
  32. ApplySpellVisual(NPC,728)
  33. ApplySpellVisual(Spawn,572)
  34. end
  35. function Reflect(NPC,Spawn)
  36. NQ = GetZone("northqeynos")
  37. Zone(NQ,Spawn,281.55, -13.58, 97.29, 283.43)
  38. SpawnSet(Player,"visual_state",0)
  39. CloseConversation(NPC,Spawn)
  40. end
  41. function respawn(NPC)
  42. spawn(NPC)
  43. end