I got it to the point where I encrypt and decrypt mobs, but if it is not directly from the savefile, it doesn't appear that you can input stuff straight into the mob.
How can I do this last part without it giving me a bad input run-time error, and have it working?
Will I need to encrypt each var on it's own?
Here is the code I am using now:
var/savefile/F = new(client.Import())
RC5var << client.mob
RC5var = RC5_Encrypt(RC5var,"encryptcode")
F["[src.name]/mob"] << RC5var
F["[src.name]/name"] << client.mob.name
src << "[src.name] saved."
//Loading (Done during login, after selecting what character you want (INP is your character)):
F["[INP]/mob"] >> RC5var
RC5var = RC5_Decrypt(RC5var,"encryptcode")
RC5var >> mobe
client.mob = mobe
It seems to be saving mobs as null as well:
mob = null
name = "\[GM] Kunark"
Is in the savefile.