function DisplayCharacterModel() { $CharacterData = Characters::GetCharacterData($_REQUEST['datatype']); $Inventory = Characters::GetGearForCharacter($CharacterData['guid']); ModelViewer::Initialize(450, 450); ModelViewer::SetCharacterData($CharacterData['race_data']['name'], $CharacterData['gender']); foreach ($Inventory as $Item) { if (isset($Item['data'])) { ModelViewer::EquipItem($Item['slot'], $Item['data']['displayid']); } } echo ModelViewer::GetCharacterHtml(); }
} //end main hand // off hand $findDID = "SELECT displayid FROM item_template WHERE entry='" . $offhand_entry["itemEntry"] . "'"; $DISPLAY_ID6 = $connn->query($findDID); if ($DISPLAY_ID6) { foreach ($DISPLAY_ID6 as $DispId6) { $mv->EquipItem(SLOT_OFFHAND, $DispId6["displayid"]); } } else { $mv->UnequipItem(SLOT_OFFHAND); } // end offhand // get item display id's $connn->close(); echo '<td colspan="5" rowspan="7" id="middle">' . $mv->GetCharacterHtml() . '</td>'; //hands if ($hands_entry["itemEntry"]) { $url = 'http://www.wowhead.com/item=' . $hands_entry["itemEntry"] . '&xml'; $xml = simplexml_load_file($url); $hands_icon = $xml->item[0]->icon; } if ($hands_icon) { echo '<td id="side"><a href="http://www.wowhead.com/item=' . $hands_entry["itemEntry"] . '"><img src="../armory/ICONS/' . $hands_icon . '.png"></a></td>'; } else { echo '<td id="side"><img src="icons/hands.png"></td>'; } echo '</tr><tr>'; //neck if ($neck_entry["itemEntry"]) { $url = 'http://www.wowhead.com/item=' . $neck_entry["itemEntry"] . '&xml';