Im looking for a way to script my KgPanels so that the border colours switch colours according to what death knight presence im in (Blood Presence, Frost Presence, Unholy Presence).

The problem is i know nothing about scripting, or where to even start with regards to the proper syntax.

Anyone use a script similar to the one im looking for?