You don't need the IDE (definitely helps, but it doesn't prevent you from looking at the code). Outside of that, just open MercHelpers.cs with Notepad or Wordpad (notepad does better with the line-breaks).
Two main routines re: the stiuation are
void OOC()
and
WaitForHeals(...)
Pseudocode:
OOC
If I'm ShadowKinetic (ShadowCombat)
If My Health is Low
Call WaitForHeals
WaitForHeals
Check for Comp, blahblahblah
If I'm in Stealth, Cast Stealth again to Unstealth (impossible due to bugs at the moment)
Try and cast the Resting Spell
If I'm not Casting, Try and Unstealth Again (also not working at the moment, cast did go thru the interface, but failed on-screen in the game)
If I'm not Casting, try Casting the Rest Spell again
(loop and wait until health/RS is good, then move forward a bit to stop the cast, and exit)
Ok, I remember the fun with detecting stealth - you can't - it's bugged.
Whether you try
BuddyTor.Me.HasBuff("Stealth")
or
BuddyTor.Me.IsStealthed
or
BuddyTor.Me.utilVfxHidden
They all return false.
Another check - to try and cast Meditation - and then checking to see if Me.IsCasting a second or so later - also fails - it bugs out because 'the cast went thru', although it resulted in an error message that came back on-screen - the interface/API/whatever DOES think you're casting and doesn't know the cast failed.
I did try and alleviate the 'Stealth During Combat Issue' (as in you're stealthing as soon as the opponent drops, in the last iteration of the Combat routine). You'll need to update with the latest .zip to try that out.
Joe