function soul($char,$del=false){
$query= mssql_query("declare @it varbinary(760); set @it=(SELECT [Inventory] FROM [Character] WHERE [Name]='$char'); print @it");
$items = substr(mssql_get_last_message(),2);
$br=0;
for($i=0;$i<76;$i++){
if(substr($items,$i*20,2)=="CE"){
$br++...