Is there any way to recover the code of a run-only script?

Unfortunately, no. Once a script is saved in run-only format, all AppleScript-translated code is recompiled into unreadable machine code. Your best bet is to run the script, take notes, and attempt to recreate it if possible. There are many AppleScript consultants who could help you with this process, if necessary.