I got this inside of my auto account packet hook script and it always fails. I tested inside a command and it worked. Maybe it being ran in a critical script is causing it to always fail? Might test that later, I'll report back if I ever do.
Code:
var account := FindAccount(username);
if ( account )
if ( !(account.CheckPassword(password)) )
UUOAALog(username, password, mobile.ip, "FailedPassword");
endif
return 0;
endif