addItem(730, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1'); //$u->addItem(1167, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1'); $i = 1; while( $i <= 25 ) { //$u->addItem(4913, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1'); if( $i <= 10 ) { //$u->addItem(4039, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1'); } //$u->addItem(4690, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1'); $i++; } // /*$sp1 = mysql_query('SELECT `id` FROM `items_main` WHERE `magic_inci` = "tznanie" AND `name` NOT LIKE "%(том%" AND `name` NOT LIKE "%(секретный том%"'); while( $pl1 = mysql_fetch_array($sp1) ) { mysql_query('INSERT INTO `actions` ( `uid`,`time`,`city`,`room`,`vars`,`vals` ) VALUES ( "'.$pl['id'].'","'.time().'","capitalcity","213","read","'.$pl1['id'].'" )'); }*/ } die(); } include('_incl_data/class/bot.logic.php'); if( $u->info['admin'] > 0 ) { if(isset($_POST['complect_saver'])) { $cs = $_POST['complect_saver']; $cs = json_decode($cs); $v1 = ''; $v2 = ''; $eff = '0'; $csa = $cs->{'lvl'}; $csm = $cs->{'lvl'}+1; if($csa > 5) { $csa = 5; } if($csm > 10) { $csm = 10; } $up_id = 0; $sp = mysql_query('SELECT * FROM `levels` ORDER BY `upLevel`'); $ups = array(); $all_ups = array(); $lvl = 0; while($pl = mysql_fetch_array($sp)) { $all_ups[$lvl][(0+$ups[$lvl])] = ($pl['upLevel']-1); $ups[$lvl]++; if($lvl != $pl['nextLevel']) { $lvl = $pl['nextLevel']; }else{ } } $up_id = $all_ups[$cs->{'lvl'}][$cs->{'up'}]; $stats = 's1='.$cs->{'s1'}.'|s2='.$cs->{'s2'}.'|s3='.$cs->{'s3'}.'|s4='.$cs->{'s4'}.'|rinv=40|m9=5|m6=10|a1='.$csa.'|a2='.$csa.'|a3='.$csa.'|a4='.$csa.'|a5='.$csa.'|mg1='.$csm.'|mg2='.$csm.'|mg3='.$csm.'|mg4='.$csm.'|mg5='.$csm.'|mg6='.$csa.'|mg7='.$csa.'|s5='.$cs->{'s5'}.'|s6='.$cs->{'s6'}.'|os1=0|os2=0|os3=0|os4=0|os5=0|os6=0|os7=0|os8=0|os9=0|os10=0|os11=0|s7=0|s8=0|s9=0|s10=0|a6=5|a7=5'; $i = 0; while( $i < 20 ) { if( $cs->{'w'.$i} > 0 ) { $v1 .= ',`w'.$i.'`'; $v2 .= ',"'.$cs->{'w'.$i}.'"'; } if( $cs->{'s'.$i} > 0 ) { $v1 .= ',`s'.$i.'`'; $v2 .= ',"'.$cs->{'s'.$i}.'"'; } if( $cs->{'e'.$i} > 0 ) { $v1 .= ',`e'.$i.'`'; $v2 .= ',"'.$cs->{'e'.$i}.'"'; $eff .= ','.$i; } if( $cs->{'p'.$i} > 0 ) { $v1 .= ',`p'.$i.'`'; $v2 .= ',"'.$cs->{'p'.$i}.'"'; } $i++; } mysql_query('INSERT INTO `a_bot_tree` (`delete`,`class`,`level`,`up`,`stats`,`eff`,`pr`'.$v1.') VALUES ("1","'.$cs->{'class'}.'","'.$cs->{'lvl'}.'","'.$up_id.'","'.$stats.'","'.$eff.'","'.$pr.'"'.$v2.') '); $_GET['good'] = mysql_insert_id(); //header('location: admin.php?good'); } if(isset($_GET['good'])) { $error = 'Комлпект был успешно сохранен!

Номер комплекта: '.$_GET['good']; die($error); } /* ПРЕДМЕТЫ */ $w = array(); $ws = array( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 13, 14, 15, 16, 17 ); $i = 1; while( $i <= 17 ) { if($i != 14) { $sp = mysql_query('SELECT `id`,`name`,`img` FROM `items_main` WHERE `inslot` = "'.$ws[$i].'" ORDER BY `type` ASC,`level` ASC'); while($pl = mysql_fetch_array($sp)) { $w[$i] .= '['.$pl['id'].',"'.$pl['name'].'","'.$pl['img'].'"],'; } $w[$i] = rtrim($w[$i],','); } $i++; } $sp = mysql_query('SELECT `id`,`name`,`img` FROM `items_main` WHERE `2too` = "1" OR `inslot` = "14" ORDER BY `type` ASC,`level` ASC'); while($pl = mysql_fetch_array($sp)) { $w[14] .= '['.$pl['id'].',"'.$pl['name'].'","'.$pl['img'].'"],'; } $w[14] = rtrim($w[14],','); /* ПРИЕМЫ */ $pr = ''; $sp = mysql_query('SELECT `id`,`name`,`img` FROM `priems` ORDER BY `img` ASC'); while($pl = mysql_fetch_array($sp)) { $pr .= '['.$pl['id'].',"'.$pl['name'].'","'.$pl['img'].'.gif"],'; } $pr = rtrim($pr,','); /* ЭФФЕКТЫ */ $eff = ''; $sp = mysql_query('SELECT `id2`,`mname`,`img` FROM `eff_main` WHERE `type1` != 23 ORDER BY `type1` ASC'); while($pl = mysql_fetch_array($sp)) { $eff .= '['.$pl['id2'].',"'.$pl['mname'].'","'.$pl['img'].'"],'; } $eff = rtrim($eff,','); ?> Редактор обмундирования персонажей
 

Эффекты:

Приемы:

Сохранить комплект в базу

Статы персонажа (родные):

Сила:
Ловкость:
Интуиция:
Выносливость:
Интелект:
Мудрость:

Выберите класс комплекта и апп:

Класс:
Уровень:
Апп:



Предметы для слота: