3 // ïîëó÷àåì displayid âåùè
4 function wowhead_did($item)
7 $displayid = $dDB->selectCell("SELECT displayid FROM item_template WHERE entry = ?d", $item);
10 // ïîëó÷àåì ðàñó è êëàññ â âèäå, ïðèãîäíîì äëÿ WH 3D ïðîñìîòðùèêà
11 function char_racegender($race, $gender)
29 echo $char_race[$race].$char_gender[$gender];
31 function showPlayer3d($char, $char_data){
33 <div id
="model_scene" align
="center">
34 <object id
="wowhead" type
="application/x-shockwave-flash" data
="http://static.wowhead.com/modelviewer/ModelView.swf" height
="640px" width
="480px">
35 <param name
="quality" value
="high">
36 <param name
="allowscriptaccess" value
="always">
37 <param name
="menu" value
="false">
38 <param value
="transparent" name
="wmode">
39 <param name
="flashvars" value
="model=<?php char_racegender($char['race'], $char['gender']); ?>&modelType=16&ha=0&hc=0&fa=0&sk=0&fh=0&fc=0&contentPath=http://static.wowhead.com/modelviewer/&blur=1&equipList=1,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_HEAD]); ?>,3,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_SHOULDER]); ?>,16,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_BACK]); ?>,5,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_CHEST]); ?>,9,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_WRIST]); ?>,10,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_GLOVES]); ?>,6,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_BELT]); ?>,7,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_LEGS]); ?>,8,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_FEET]); ?>,14,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_OFF_HAND]); ?>,21,<?php wowhead_did($char_data[PLAYER_SLOT_ITEM_MAIN_HAND]); ?>">
40 <param name
="movie" value
="http://static.wowhead.com/modelviewer/ModelView.swf">