I apologise for not knowing how a virtually useless piece of gear works >_>
Code xml
<if spell="Protect*|Shell*" spelltargettype="self">
<equip when="precast|midcast">
<lring>Sheltered Ring</lring>
</equip>
</if>
I've attempted using the code Hitetsu posted, but for whatever reason it doesn't seem to work for me. Looking through some other scripts, I've tried adjusting it to something like this:
Code xml
<if spell="Protect*|Shell*" validtarget="self">
<castdelay delay="0.3"/>
<equip when="precast|midcast">
<rring>Sheltered Ring</rring>
</equip>
</if>
This has had the interesting effect of swapping in the ring when I cast Protectra/Shellra spells, but
not equipping the ring when I attempt to cast a Protect/Shell spell on myself. Can anyone explain why this is happening, and possibly tell me how to go about fixing it? I've tried different castdelays and that didn't seem to fix the problem, nor did listing out the individual spells like "Protect|Protect II|Protect III" etc.
For the moment I've simply taken out the "spelltargettype / validtarget" portion of the rule so that the ring equips every time I cast these spells, regardless of target. If anyone could help me to "fix" this I would very much appreciate it though. Thanks in advance!