Imported AoWoW.
This version of AoWoW is based on https://github.com/udw/udwbase and is not yet usable. An initial amount of testing has been finished, and you can import the aowow.sql database into your world database, and create a local copy of config.php.in as config.php to test this version. FirePHP (http://firephp.org/) has been added for testing purposes. Signed-off-by: TheLuda <theluda@getmangos.com>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* UDWBase: WOWDB Web Interface
|
||||
*
|
||||
* © UDW 2009-2011
|
||||
*
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://gnu.org).
|
||||
*
|
||||
*/
|
||||
|
||||
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');
|
||||
|
||||
/**
|
||||
*
|
||||
* @param type $row
|
||||
* @return int
|
||||
*/
|
||||
function itemsetinfo2(&$row) {
|
||||
$itemset = array();
|
||||
$itemset['entry'] = $row['itemsetID'];
|
||||
$itemset['name'] = $row['name_loc' . $_SESSION['locale']];
|
||||
$itemset['minlevel'] = 255;
|
||||
$itemset['maxlevel'] = 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['minlevel'])
|
||||
$itemset['minlevel'] = $item['level'];
|
||||
if ($item['level'] > $itemset['maxlevel'])
|
||||
$itemset['maxlevel'] = $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;
|
||||
}
|
||||
Reference in New Issue
Block a user