Basiclly its the same thing with l2j, you collect information from a database. but L2OFF servers uses a microsoft sql server the codes is a litile bit different. for example
$link=@mssql_connect($ip, $user, $pass);
@mssql_select_db($database, $link) or die(mysql_error());
TL;DR use mssql instand of mysql