Here is some code I threw together for scanning all the spells on a creature.
Create the folder readspl/backup and readspl/tocheck. Create the empty file readspl/mycre.txt. Put in readspl/tocheck the creatures whose spells you need checked. Run this tp2 from WeiDU 175 or higher, and enjoy.
BACKUP ~readspl/backup~
AUTHOR ~The Bigg~
BEGIN ~Read the spells on a cre~
NO_LOG_RECORD
COPY + ~readspl/mycre.txt~ ~override~
COPY ~readspl/tocheck~ ~readspl/tocheck~
INSERT_BYTES 0 8
WRITE_EVALUATED_ASCII 0 "%SOURCE_RES%" #8
READ_ASCII 0 newsource
DELETE_BYTES 0 8
INNER_ACTION BEGIN
APPEND ~mycre.txt~ ~__~
APPEND ~mycre.txt~ ~___RES___~
COPY_EXISTING + ~mycre.txt~ ~override~
REPLACE_TEXTUALLY "___RES___" "%newsource%"
END
READ_LONG 0x2b0 memsploff
READ_LONG 0x2b4 memsplcnt
FOR (loop = 0 ; loop < memsplcnt ; loop = loop + 1) BEGIN
READ_ASCII memsploff + loop * 0xc splname
INNER_ACTION BEGIN
PRINT ~%splname%.spl~
COPY_EXISTING ~%splname%.spl~ ~override~
READ_STRREF 0x08 "my_str"
BUT_ONLY_IF_IT_CHANGES
APPEND "mycre.txt" "___name___ ___STR___"
COPY_EXISTING + ~mycre.txt~ ~override~
REPLACE_TEXTUALLY "___name___" "%splname% :"
REPLACE_TEXTUALLY "___STR___" "'%my_str%'"
END
END
BUT_ONLY_IF_IT_CHANGES
COPY + ~override/mycre.txt~ ~readspl/mycre.txt~
If you need to, you can easily change the tp2 a bit to check the items on a creature, the effects on a spell or something like that. (and, if possible, try to post this in some kind of way, maybe someday somebody will gather all of this together and make it a pubblic tool:)