|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* @copyright (c) 2009 animegame.eu
|
|
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
include_once ($_SERVER['DOCUMENT_ROOT'] . 'ag/include/defines.inc.php');
|
|
|
|
|
|
|
|
|
|
|
|
defineIfNotDefined('CLANKAMPF', 2);
|
|
|
|
|
|
|
|
function getCharAttackSet($char_id, $type) {
|
|
|
|
$qry = null;
|
|
|
|
// default values (in case the data is not or partially set)
|
|
|
|
$set = array(1 => 0,2 => 0,3 => 0,4 => 0,5 => 0,6 => 0,7 => 0,8 => 0,9 => 0,10 => 0);
|
|
|
|
|
|
|
|
if(is_numeric($char_id)) {
|
|
|
|
$test = 'SELECT attack_id,`round` FROM attackenset WHERE Char_ID = '.$char_id.' AND Type = '.$type;
|
|
|
|
// echo $test . '<br>';
|
|
|
|
$qry = mysql_query($test);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$i = 0;
|
|
|
|
while ($result = mysql_fetch_assoc($qry)) {
|
|
|
|
$set[$result['round']] = $result['attack_id'];
|
|
|
|
}
|
|
|
|
|
|
|
|
return $set;
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateCharAttackSet($set) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function createCharAttackSet() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|