The problem is that you are referring to a variable (AAEyeofMagnus01) that hasn't been defined.
If the script is attached to the object you are trying to refer to, you should be able to substitute
Self.PlayGamebryoAnimation("animIdle01")Self.PlayAnimation("openedloop")
for
AAEyeofMagnus01.PlayGamebryoAnimation("animIdle01")AAEyeofMagnus01.PlayAnimation("openedloop")
If a script refers to an object other than the one it is attached to, then you should establish a http://www.creationkit.com/Property_Reference which you can then link to an object. If I remember correctly, the property should be defined as
ObjectReference Property AAEyeofMagnus01 Auto
The name AAEyeofMagnus01 could be replaced with almost anything. Then it would just be a matter of opening the Property window of the script and editing the value of that property. With ObjectReference properties you can select the object via the Render window.
I highly recommend getting the http://skyrim.nexusmods.com/mods/13430/?tab=2&navtag=/ajax/modimages/?user=0|:|id=13430. It has hyperlinks to wiki articles and is a good way to quickly get information related to Papyrus.