Purpose:
Recast Sanctuary before it ends, so it will be continuous despite not having aura of sanctuary/being in fight.
The only dangerous (and very rare) situation is when your sanctuary is dispelled by mobs/players. In this case you’d need to wear item / recasting will be handled by your spell-up plugin.
Requires:
Combat End plugin
https://github.com/udequina/aardwolf-plugins/blob/main/loqui/Nok3_Combat_End.xml
You can modify it to add your end of combat message, e.g. replace “Your_text” with your message when combat ends.
function CombatEnd()
inCombat = false
if (reportCombatEnd) then
Simulate(“Your_text”)
end
end
Access to spells: sanctuary, disruption (practised to 100%)
Triggers 1-3 should be send to script. Make sure options “enabled” and “regular expression” are checked.
1) Trigger 1 – after first/any cast of sanctuary add timer (below 15 mins, modify as required) and variable to do not disrupt sanctuary yet.
Regex: ^You are surrounded by a shimmering white aura of divine protection.$
Body:
require “gmcphelper”
lvl = tonumber(gmcp(“char.base.level”))
SetVariable(“sanctcheck”, “no”)
if lvl == 201 then
DeleteTimer(“sanctuary_check”)
AddTimer(“sanctuary_check”, 0, 15, 0, “c disrupt sanctuary”, timer_flag.Enabled + timer_flag.OneShot, “”)
end
2) Trigger 2 – after combat cast disrupt
Regex: same as you set above replacing “Your text”
Body:
if sanct_status == “yes” then
SendNoEcho(“c disrupt sanctuary”)
end
3) Trigger 3 – During fight add variable that when fight is done disrupt should be cast.
Regex: ^You can’t concentrate enough to cast ‘disrupt’.$
Body: SetVariable(“sanctcheck”, “yes”)
4) Trigger 4 – in case of failed disruption (but not failed casting of disruption). Please note this trigger is send to world.
Regex: ^You need to be more disruptive. The sanctuary is still there!$
Body: c disrupt sanctuary