";
echo($loot);
}
function itemstatsthis($name)
{
$item_stats = new ItemStats();
$item_name = trim($name);
$item_name = $item_stats->getItemName($item_name, true);
// Initialize the html.
$item_html = '[' . $item_name . ']';
// Get the color of this item and apply it to the html.
$item_color = $item_stats->getItemColor($item_name);
if (!empty($item_color))
{
$item_html = "" . $item_html . "";
}
// Get the tooltip html for this item and apply it to the html.
$item_tooltip_html = $item_stats->getItemTooltipHtml($item_name);
if (!empty($item_tooltip_html))
{
$item_html = "" . $item_html . "";
}
// If this item has a link to the info site, add this link to the HTML. If it doesn't have a link, it
// means the item hasn't been found yet, so put up a link to the update page instead.
$item_link = $item_stats->getItemLink($item_name);
if (!empty($item_link))
{
$item_html = "" . $item_html . "";
}
else
{
$item_link = 'itemstats/updateitem.php?item=' . urlencode(urlencode($item_name));
$item_html = "" . $item_html . "";
}
}
?>