1 (edited by Victoria 2009-10-12 19:11:35)

Topic: PHP Inventory View

PHP Inventory View

Insert the following code in the <head> section of the page:

<HEAD>
<SCRIPT type="text/javascript" src="PATH/overlib.js"></SCRIPT> 
</HEAD>

Where path is the location of overlib.js;
Insert the following code in  <div> element:

echo equipt(CHARACTER NAME);

http://img158.imageshack.us/img158/7205/32401799.png

function equipt($char)
{
  $inventory= mssql_fetch_array(mssql_query("SELECT * FROM Character WHERE Name='$char'"));
  mssql_query("declare @it varbinary(1920); set @it=(SELECT [Inventory] FROM [Character] WHERE [Name]='$char'); print @it");
  $items = substr(substr(mssql_get_last_message(),2),0,384);
  if($inventory['Class'] == 48) $invimage = 'images/inventorymg.jpg';
  else $invimage = 'images/inventory.jpg';

  $output = "<br />
    <table width='298' height='315' border='0' cellpadding='7' cellspacing='0' bordercolor='#FFFFFF' background='$invimage' align='center'>
      <tr>
          <td height='71' colspan='7'>
                &nbsp;
            </td>
      </tr>
      <tr>";
  //Imp
  {
    $output .= "<td width='6' rowspan='5'>&nbsp;</td>";
    $item = substr($items,8*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td width='51' height='70'></td>";
        }
    else
        {
          $output .= "<td width='51' height='70' style='".iteminfo($item)."</td>";
        }
    $output .= "<td width='22'>&nbsp;</td>";
  }
  //Helm
  {
    $item = substr($items,2*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td style=''></td>";
        }
    else
        {
          $output .= "<td style='".iteminfo($item)."</td>";
        }
  }
  //Wings
  {
    $item = substr($items,7*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td colspan='2' style=''></td>";
        }
    else
        {
          $output .= "<td colspan='2' style='".iteminfo($item)."</td>";
        }
    $output .= "<td width='7' rowspan='5'>&nbsp;</td></tr>";
  }
  //Left Hand
  {
    $output .= "<tr>";
    $item = substr($items,0*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td rowspan='2' style=''></td>";
        }
    else
        {
          $output .= "<td rowspan='2' style='".iteminfo($item)."</td>";
        }
  }
  //Pendant
  {
    $item = substr($items,9*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td height='35' style=''></td>";
        }
    else
        {
          $output .= "<td height='35' style='".iteminfo($item)."</td>";
        }
  }
  //Armor
  {
    $item = substr($items,3*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td rowspan='2' style=''></td>";
        }
    else
        {
          $output .= "<td rowspan='2' style='".iteminfo($item)."</td>";
        }
    $output .= "<td rowspan='2'>&nbsp;</td>";
  }
  //Shield
  {
    $item = substr($items,1*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td rowspan='2' style=''></td>";
        }
    else
        {
          $output .= "<td rowspan='2' style='".iteminfo($item)."</td>";
        }
    $output .= "</tr><tr><td height='70'>&nbsp;</td></tr><tr>";
  }
  //Gloves
  {
    $item = substr($items,5*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td rowspan='2' style=''></td>";
        }
    else
        {
          $output .= "<td rowspan='2' style='".iteminfo($item)."</td>";
        }
  }
  //Left Ring
  {
    $item = substr($items,10*32,32);
    if(!iteminfo($item))
        {
          $output .= "<td style='height: 30px;'></td>";
        }
    else
        {
          $output .= "<td style='height: 30px;".iteminfo($item)."</td>";
        }
  }
  //Pants
  {
    $item = substr($items,4*32,32);
    if(!iteminfo($item))
    {
      $output .= "<td rowspan='2' style=''></td>";
    }
    else
    {
      $output .= "<td rowspan='2' style='".iteminfo($item)."</td>";
    }
  }
  //Right Ring
  {
    $item = substr($items,11*32,32);
    if(!iteminfo($item))
      {
        $output .= "<td style='height: 30px;'></td>";
      }
    else
      {
        $output .= "<td style='height: 30px;".iteminfo($item)."</td>";
      }
  }
    //Boots
  {
    $item = substr($items,6*32,32);
    if(!iteminfo($item))
      {
        $output .= "<td width='51' rowspan='2' style=''></td>";
      }
    else
      {
        $output .= "<td width='51' rowspan='2' style='".iteminfo($item)."</td>";
      }
  }
      $output .= "</tr>
      <tr>
          <td height='32'>
                &nbsp;
            </td>
          <td width='19'>
                &nbsp;
            </td>
         </tr>
       <tr>
            <td colspan='7' height='7'>
            </td>
         </tr>
  </table><br />";

  return $output;
}

Download:
PHPInventoryView.rar (2.4 MB):
Link 1: http://www.2shared.com/file/8391624/1ae … yView.html

Special credits for the release goes to:
- Mephisto e Savoy (DrakE Team)

Re: PHP Inventory View

pliz reload link

Re: PHP Inventory View

Downloads:
New Links:
LINK 1: Download
LINK 2: Download