source: aowow/includes/allitemsets.php

Last change on this file was 170, checked in by maron, 16 years ago
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<?php
2
3require_once('includes/allitems.php');
4
5$itemset_col[0] = array('itemsetID', 'name', 'item1', 'item2', 'item3', 'item4', 'item5', 'item6', 'item7', 'item8', 'item9', 'item10',);
6$itemset_col[1] = array('itemsetID', 'name', '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');
7
8function itemsetinfo2(&$row)
9{
10 $itemset = array();
11 $itemset['entry'] = $row['itemsetID'];
12 $itemset['name'] = $row['name'];
13 $itemset['minlevel'] = 255;
14 $itemset['maxlevel'] = 0;
15 $itemset['pieces'] = array();
16 for ($j=1;$j<=10;$j++)
17 if ($row['item'.$j])
18 {
19 $itemset['pieces'][] = $row['item'.$j];
20 $item = array();
21 $item = iteminfo($row['item'.$j], 0);
22 if ($item['level'] < $itemset['minlevel']) $itemset['minlevel'] = $item['level'];
23 if ($item['level'] > $itemset['maxlevel']) $itemset['maxlevel'] = $item['level'];
24 }
25 if (isset($item))
26 {
27 $itemset['quality2'] = 6 - $item['quality'];
28 if($item['classs']==4)
29 $itemset['type'] = $item['subclass'];
30 } else {
31 $itemset['quality2'] = 6;
32 }
33 // TODO: classes
34 $itemset['classes'][] = 0;
35 return $itemset;
36}
37
38?>
Note: See TracBrowser for help on using the repository browser.