mirror of
https://github.com/brian8544/turtle-wow.git
synced 2024-12-28 10:24:36 +00:00
37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
<?php
|
|
|
|
require_once('includes/allitems.php');
|
|
|
|
$itemset_col[0] = array('itemsetID', 'name_loc' . $_SESSION['locale'], 'item1', 'item2', 'item3', 'item4', 'item5', 'item6', 'item7', 'item8', 'item9', 'item10',);
|
|
$itemset_col[1] = array('itemsetID', 'name_loc' . $_SESSION['locale'], 'item1', 'item2', 'item3', 'item4', 'item5', 'item6', 'item7', 'item8', 'item9', 'item10', 'spell1', 'spell2', 'spell3', 'spell4', 'spell5', 'spell6', 'spell7', 'spell8', 'skillID', 'bonus1', 'bonus2', 'bonus3', 'bonus4', 'bonus5', 'bonus6', 'bonus7', 'bonus8', 'skilllevel');
|
|
|
|
function itemsetinfo2(&$row) {
|
|
$itemset = array();
|
|
$itemset['entry'] = $row['itemsetID'];
|
|
$itemset['name'] = $row['name_loc' . $_SESSION['locale']];
|
|
$itemset['min_level'] = 255;
|
|
$itemset['max_level'] = 0;
|
|
$itemset['pieces'] = array();
|
|
for ($j = 1; $j <= 10; $j++)
|
|
if ($row['item' . $j]) {
|
|
$itemset['pieces'][] = $row['item' . $j];
|
|
$item = array();
|
|
$item = iteminfo($row['item' . $j], 0);
|
|
if ($item['level'] < $itemset['min_level'])
|
|
$itemset['min_level'] = $item['level'];
|
|
if ($item['level'] > $itemset['max_level'])
|
|
$itemset['max_level'] = $item['level'];
|
|
}
|
|
if (isset($item)) {
|
|
$itemset['quality2'] = 6 - $item['quality'];
|
|
if ($item['classs'] == 4)
|
|
$itemset['type'] = $item['subclass'];
|
|
} else {
|
|
$itemset['quality2'] = 6;
|
|
}
|
|
// TODO: classes
|
|
$itemset['classes'][] = 0;
|
|
|
|
return $itemset;
|
|
}
|