game/adminion/mod/dungeon_bots.php

578 lines
22 KiB
PHP
Raw Normal View History

2022-12-19 20:22:19 +00:00
<?
if(!defined('GAME')){
die();
}
if(isset($_GET['delete_dungeon_id'])){
$delete_dungeon_id = intval($_GET['delete_dungeon_id']);
mysql_query("DELETE FROM `dungeon_room` WHERE `id`='".$delete_dungeon_id."'");
die("<script>window.location = 'index.php?mod=dungeon_list';</script>");
}
if(isset($_GET['id_bot'])){
$_POST['botSelect'] = $_GET['id_bot'];
}
$Query = mysql_query("SELECT id, login FROM test_bot ORDER BY id ASC");
$dungeon_bots = '';
while($row = mysql_fetch_assoc($Query)){
$dungeon_bots .= '<option value="'.$row['id'].'" '.($row['id']==$_POST['botSelect'] ? 'selected' : '').'>'.$row['login'].'</option>';
}
$Query = mysql_query("SELECT id, dungeon_id, dungeon_name FROM dungeon_room ORDER BY active, dungeon_id ASC");
$dungeon_list = '';
while($row = mysql_fetch_assoc($Query)){
$dungeon_list .= '<option value="'.$row['dungeon_id'].'" '.($row['dungeon_id']==$_POST['dunSelect'] ? 'selected' : '').'>'.$row['dungeon_name'].'</option>';
}
?><script src="https://<? echo $c['img']; ?>/js/jx/jquery.js" type="text/javascript"></script>
<div align="left">
<h3 style="text-align:left;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
</div>
<form method="post" action="../../adminion/mod/index.php?mod=dungeon_bots">
<table>
<tbody>
<tr>
<td><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<select name="dunSelect">
<option selected value="0"><EFBFBD><EFBFBD><EFBFBD></option>
<?php echo $dungeon_list; ?>
</select>&nbsp; &nbsp; &nbsp; &nbsp;
</td>
<td>
<EFBFBD><EFBFBD><EFBFBD>:
<select name="botSelect">
<option disabled selected value="0"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>...</option>
<?php echo $dungeon_bots; ?>
</select>
</td>
<td>
<input type="submit" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
</td>
</tr>
</tbody>
</table>
</form>
<?
if ( $_POST['botSelect'] != '0' ) {
$sBot = mysql_fetch_assoc(mysql_query("SELECT * FROM test_bot WHERE id='".$_POST['botSelect']."' ORDER BY id ASC"));
}
if( isset($sBot) ){
?>
<script>
var CharacterBased = ['minAtack','maxAtack','zona','zonb','s1','s2','s3','s4','hpAll','m1','m2','m3','m4','m5','m6','m7','m8','m9','m10','za','zm','zma','mib1','mab1','mib2','mab2','mib3','mab3','mib4','mab4','pza','pzm'];
var CharacterInfo = {
'exp' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%)',
'align_bs' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'nopryh' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'puti':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'align':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'hpAll':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (HP)',
'mpAll':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'enAll':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'sex':'<27><><EFBFBD>',
'lvl':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'zona':'<27><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'zonb':'<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
's1':'<27><><EFBFBD><EFBFBD>',
's2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's5':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's6':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's7':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's8':'<27><><EFBFBD><EFBFBD>',
's9':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
's10':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
's11':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'm1':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm2':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm3':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm4':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm5':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm6':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm7':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm8':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm9':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm10':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'm11':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'm11a':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'm14':'<27><>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm15':'<27><>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm16':'<27><>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm17':'<27><>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm18':'<27><>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'm19':'<27><>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'm20':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'a1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'a2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'a3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'a4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'a5':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'a6':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'a7':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'aall':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'mall':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'm2all':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'mg1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'mg2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'mg3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'mg4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'mg5':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'mg6':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'mg7':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'mib1':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>)',
'mab1':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD>)',
'mib2':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>)',
'mab2':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD>)',
'mib3':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>)',
'mab3':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD>)',
'mib4':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> (<28><><EFBFBD>)',
'mab4':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> (<28><><EFBFBD><EFBFBD>)',
'tj':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'lh':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'minAtack':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'maxAtack':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pa1':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pa2':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pa3':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pa4':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pm1':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pm2':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'pm3':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pm4':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pm5':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pm6':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pm7':'<27><>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'za':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>',
'zm':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'zma':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>',
'za1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'za2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'za3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'za4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'zm1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'zm2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'zm3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'zm4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'zm5':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'zm6':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'zm7':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'mg2static_points':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)',
'magic_cast':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>',
'min_heal_proc':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'notravma':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>',
'zaproc':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'zmproc':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'zm2proc':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'pza':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pzm':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pza1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pza2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pza3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pza4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pzm1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pzm2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'pzm3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pzm4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pzm5':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pzm6':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'pzm7':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'speedhp':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'speedmp':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%)',
'tya1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tya2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tya3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tya4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tym1':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tym2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tym3':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tym4':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tym5':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'tym6':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'tym7':'<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pog':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pog2':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pog2p':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'pog2mp':'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
'maxves':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'min_use_mp':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'bonusexp':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
'speeden':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'yza' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzm' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzma' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yza1' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yza2' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yza3' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yza4' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzm1' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%)',
'yzm2' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzm3' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%)',
'yzm4' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzm5' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzm6' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'yzm7' : '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'rep': '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'hpProc':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (%)',
'mpProc':'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%)'
};
function linkGif (th){
$('#linkGo').attr('href', 'https://img.new-combats.com/i/obraz/0/'+$('input[name=obraz]').val()).html('Open '+$(th).val()).click();
}
function linkPng (th){
var t = $('input[name=obraz]').val(); t = t.split('.');
$('#linkGo').attr('href', 'https://img.new-combats.com/chars/0/'+t[0]+'.png').html('Open '+$(th).val()).click();
}
</script>
<form method="post" action="../../adminion/mod/index.php?mod=dungeon_bots"><hr>
<table valign="top" width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" >
<table width="400px">
<tbody>
<tr>
<td>ID: &nbsp; </td>
<td><input name="id_bot" value="<?=$sBot['id'];?>" type="text"></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><input name="login" value="<?=$sBot['login'];?>" type="text"></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><input name="name" value="<?=$sBot['name'];?>" type="text"></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><input name="level" value="<?=$sBot['level'];?>" type="text"></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><select name="align">
<option <? if($sBot['align']==0){ echo "selected"; } ?> value="0"><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option <? if($sBot['align']==1){ echo "selected"; } ?> value="1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option <? if($sBot['align']==2){ echo "selected"; } ?> value="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option <? if($sBot['align']==3){ echo "selected"; } ?> value="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option <? if($sBot['align']==7){ echo "selected"; } ?> value="7"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option <? if($sBot['align']==9){ echo "selected"; } ?> value="9"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option <? if($sBot['align']==10){ echo "selected"; } ?> value="10"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
</select></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><select name="sex"><option <? if($sBot['sex']==0){ echo "selected"; } ?> value="0"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option><option <? if($sBot['sex']==1){ echo "selected"; } ?> value="1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option></select></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td> <!-- Hors.gif -->
<td><input name="obraz" value="<?=$sBot['obraz'];?>" type="text"> <input type="button" value="GIF" onclick="linkGif(this)"> <input type="button" value="PNG" onclick="linkPng(this)"> <a style="font-size:11px;" id="linkGo" target="_blank" href="javascript:void();">&nbsp;</a></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><input name="city_reg" value="<?=$sBot['city_reg'];?>" type="text"> {thiscity}</td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><textarea style="min-height:60px;width: 270px;" id="statsLoad" name="stats" type="text"><?=$sBot['stats'];?></textarea></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><textarea style="min-height:42px;width: 270px;" id="useItemLoad" name="itemsUse" type="text"><?=$sBot['itemsUse'];?></textarea></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><textarea style="min-height:42px;width: 270px;" name="priemUse" type="text"><?=$sBot['priemUse'];?></textarea></td>
</tr>
<tr>
<td><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: &nbsp; </td>
<td><textarea style="min-height:42px;width: 270px;" id="dropLoad" name="p_items" type="text"><?=$sBot['p_items'];?></textarea></td>
</tr>
<tr>
<td></td>
<td>
<input type="hidden" name="botSelect" value="<?=$_POST['botSelect']?>">
<input type="hidden" name="dunSelect" value="<?=$_POST['dunSelect']?>">
<input type="submit" style="padding: 5px 12px;background: rgb(234, 234, 234);font-size: 14px;" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" width="55%" align="left">
<style>.brown {
border-color:#9C8265;
color:brown;
font-weight:bold;
}</style>
<input type="button" id="editStat" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"> <input type="button" id="editDrop" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"> <input type="button" id="editUseItem" value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
<div id="editorStats"></div>
<div id="editorDrop"></div>
<div id="editorUseItem"></div>
<script>
function loadItemInfo(th){
$.post('/adminion/lib/loadItemInfo.php', {item_id:$(th).parent('td').children('.items').val()}, function(data){
$(th).html(data);
});
}
function loadListItems(th){
$.post('/adminion/lib/loadItemInfo.php', {getListItems:true}, function(data){
$(th).html(data);
});
}
function StatsUp(){
var s1 = parseInt($('.stats[name=s1]').val()) * 6;
var s2 = parseInt($('.stats[name=s2]').val()) * 6;
var s3 = parseInt($('.stats[name=s3]').val()) * 4;
var s4 = (parseInt($('.stats[name=s4]').val()) * 6)+30;
var s5 = (parseInt($('.stats[name=s5]').val()) * 1);
var s6 = (parseInt($('.stats[name=s6]').val()) * 10);
var hpAll = parseInt($('.stats[name=hpAll]').val())+s4;
var mpAll = parseInt($('.stats[name=mpAll]').val())+s6;
var maxAtack = parseInt($('.stats[name=maxAtack]').val());
var minAtack = parseInt($('.stats[name=minAtack]').val());
var m1 = parseInt($('.stats[name=m1]').val())+s3;
var m2 = parseInt($('.stats[name=m2]').val())+s3;
var m3 = parseInt($('.stats[name=m3]').val());
var m4 = parseInt($('.stats[name=m4]').val())+s2;
var m5 = parseInt($('.stats[name=m5]').val())+s2;
var m7 = parseInt($('.stats[name=m7]').val());
var m10 = parseInt($('.stats[name=m10]').val());
var m11 = parseInt($('.stats[name=m11]').val());
var m14 = parseInt($('.stats[name=m14]').val());
var m15 = parseInt($('.stats[name=m15]').val());
var za = parseInt($('.stats[name=s4]').val()) * 1.5;
var zm = parseInt($('.stats[name=s4]').val()) * 1.5;
var zma = parseInt($('.stats[name=s4]').val()) * 1.5;
if (s1 >= 100) m10 += 25;
else if (s1 >= 75) m10 += 17;
else if (s1 >= 50) m10 += 10;
else if (s1 >= 25) m10 += 5;
if (s1 >= 125) {
maxAtack += 10;
minAtack += 10;
}
if (s5 >= 125) m11 += 35;
else if (s5 >= 100) m11 += 25;
else if (s5 >= 75) m11 += 17;
else if (s5 >= 50) m11 += 10;
else if (s5 >= 25) m11 += 5;
if (parseInt($('.stats[name=s4]').val()) >= 100) hpAll += 250;
else if (parseInt($('.stats[name=s4]').val()) >= 75) hpAll += 175;
else if (parseInt($('.stats[name=s4]').val()) >= 50) hpAll += 100;
else if (parseInt($('.stats[name=s4]').val()) >= 25) hpAll += 50;
if (parseInt($('.stats[name=s6]').val()) >= 100) mpAll += 250;
else if (parseInt($('.stats[name=s6]').val()) >= 75) mpAll += 175;
else if (parseInt($('.stats[name=s6]').val()) >= 50) mpAll += 100;
else if (parseInt($('.stats[name=s6]').val()) >= 25) mpAll += 50;
if (parseInt($('.stats[name=s2]').val()) >= 125) {
m7 += 15;
m4 += 105;
m2 += 40;
m15 += 5;
} else if (parseInt($('.stats[name=s2]').val()) >= 100) {
m7 += 15;
m4 += 105;
m2 += 40;
} else if (parseInt($('.stats[name=s2]').val()) >= 75) {
m7 += 15;
m4 += 35;
m2 += 15;
} else if (parseInt($('.stats[name=s2]').val()) >= 50) {
m7 += 5;
m4 += 35;
m2 += 15;
} else if (parseInt($('.stats[name=s2]').val()) >= 25) {
m7 += 5;
}
if (parseInt($('.stats[name=s3]').val()) >= 125) {
m3 += 25;
m1 += 105;
m5 += 45;
m14 += 5;
} else if (parseInt($('.stats[name=s3]').val()) >= 100) {
m3 += 25;
m1 += 105;
m5 += 45;
} else if (parseInt($('.stats[name=s3]').val()) >= 75) {
m3 += 25;
m1 += 35;
m5 += 15;
} else if (parseInt($('.stats[name=s3]').val()) >= 50) {
m3 += 10;
m1 += 35;
m5 += 15;
} else if (parseInt($('.stats[name=s3]').val()) >= 25) {
m3 +=10;
}
if (parseInt($('.stats[name=s4]').val()) >= 125) za += 25;
$('.stats[name=minAtack]').val(minAtack);
$('.stats[name=maxAtack]').val(maxAtack);
$('.stats[name=m1]').val(m1);
$('.stats[name=m2]').val(m2);
$('.stats[name=m3]').val(m3);
$('.stats[name=m4]').val(m4);
$('.stats[name=m5]').val(m5);
$('.stats[name=m7]').val(m7);
$('.stats[name=m10]').val(m10);
$('.stats[name=hpAll]').val(hpAll);
$('.stats[name=mpAll]').val(mpAll);
}
function StatsDown(){
}
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$('#add_save').live('click', function(){
StatsDown();
result = '';
$('#editorStats #listInputs .stats').each(function(){
if (result != '') result +='|';
result += $(this).attr('name')+'='+$(this).val()+'';
});
$('#statsLoad').val(result);
$('#editorStats').html('');
});
$('#add_attr').live('click', function(){
$('#listInputs .need').append('<tr><td><span style="font-size:11px;" class="'+$('#add_list').val() +'">'+ CharacterInfo[$('#add_list').val()] +':</span></td><td> <input class="stats" value="0" type="text" name="'+ $('#add_list').val() +'"/><input type="button" name="'+$('#add_list').val() +'" class="delete" value="X"><br/></td></tr>');
});
$('#listInputs .delete').live('click', function() {
$(this).parent().parent().remove();
});
$('#editStat').live('click', function() {
if ($('#editorStats').html() != '') {
$('#editorStats').html('');
} else {
var text = '';
$.each(CharacterBased, function( n, row ){
if (row=='zonb') {
text += '<tr><td><span style="font-size:11px;" class="'+row+'">'+CharacterInfo[row] + ':</span></td><td> <select class="stats brown" name="'+row+'"><option value="1">3</option><option value="0">2</option><option value="-1">1</option></select> <input type="button" name="'+row+'" class="delete" value="X"><br/></td></tr>';
} else {
text += '<tr><td><span style="font-size:11px;" class="'+row+'">'+CharacterInfo[row] + ':</span></td><td> <input class="stats brown" value="1" type="text" name="'+row+'"><input type="button" name="'+row+'" class="delete" value="X"><br/></td></tr>';
}
});
var add_list = '';
$.each(CharacterInfo, function( k , v ){
add_list += '<option value="'+k+'">'+v+'</option>';
});
$('#editorStats').html(' <div id="listInputs" ><table class="need" width="400px" valign="top" align="left" border="0" cellspacing="0" cellpadding="0"> '+text + ' </table><table><tr><td colspan="2"><hr></td></tr><tr><td><input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" name="add" id="add_attr"></td><td> <select id="add_list">'+add_list+'</select> <br/> </td></tr><tr><td colspan="2"><hr></td></tr><tr><td colspan="2"><input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" style="color:brown;" name="add" id="add_save"></td></tr></table></div> ');
text='';
stats = $('#statsLoad').val();
stats = stats.split('|');
stats.sort();
$.each(stats, function( n, row ){
row = row.split('=');
if ( $('input[name='+row[0]+'].stats').val() > 0 || row[0]=='zonb'){
if (row[0]=='zonb') {
$('select[name='+row[0]+'].stats').val(row[1]);
$('select[name='+row[0]+'].stats').removeClass('brown');
} else {
$('input[name='+row[0]+'].stats').val(row[1]);
$('input[name='+row[0]+'].stats').removeClass('brown');
}
} else {
text += '<tr><td><span style="font-size:11px;" class="'+row[0]+'">'+CharacterInfo[row[0]] + ':</span></td><td> <input class="stats" value="' + row[1] + '" type="text" name="'+row[0]+'"><input type="button" name="'+row[0]+'" class="delete" value="X"><br/></td></tr>';
}
});
$('#listInputs .need').append(text);
StatsUp();
}
});
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$('#add_saveDrop').live('click', function(){
result = '';
$('#editorDrop #listInputs td').each(function() {
if (result != '') result +='|';
result += $(this).children('input[name=itemsId]').val()+'='+$(this).children('input[name=itemsPerc]').val()+'';
if ($(this).children('input[name=itemsQuest]').val()) result += '='+$(this).children('input[name=itemsQuest]').val()+'';
});
$('#dropLoad').val(result);
$('#editorDrop').html('');
});
$('#editDrop').live('click', function() {
if ($('#editorDrop').html() != '') {
$('#editorDrop').html('');
} else {
var text = '';
drop = $('#dropLoad').val();
drop = drop.split('|');
drop.sort();
$.each(drop, function( n, row ){
row = row.split('='); //
if (row[1] == undefined) row[1] = '';
if (row[2] == undefined) row[2] = '';
if (row[0] !='') {
text += '<tr><td><input class="items" value="' + row[0] + '" type="text" name="itemsId" size="7"> <input size="5" class="itemsPerc" value="' + row[1] + '" type="text" name="itemsPerc"><input class="itemsQuest" size="14" value="' + row[2] + '" type="text" name="itemsQuest"><input type="button" name="delete" class="delete" value="X"> <a target="_blank" href="javascript:void(0);" id="'+ row[0] +'" onclick="loadItemInfo(this);">[load]</a> <br/></td></tr>';
}
});
$('#editorDrop').html(' <div id="listInputs" ><table class="need" width="100%" valign="top" align="left" border="0" cellspacing="0" cellpadding="0"> '+text + ' </table><br/><hr/><input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" style="color:brown;" name="add" id="add_saveDrop"> </div> ');
}
});
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$('#add_saveUseItem').live('click', function(){
result = '';
$('#editorUseItem #listInputs td').each(function() {
if (result != '') result +=',';
result += $(this).children('input[name=itemsId]').val();
});
$('#useItemLoad').val(result);
$('#editorUseItem').html('');
});
$('#add_useitem').live('click', function(){
$('#editorUseItem #listInputs .need').append('<tr><td><input class="items useItem" value="0" type="text" name="itemsId" size="7"> <input type="button" name="delete" class="delete" value="X"> <br/></td></tr>');
});
$('#editUseItem').live('click', function() {
if ($('#editorUseItem').html() != '') {
$('#editorUseItem').html('');
} else {
var text = '';
useItem = $('#useItemLoad').val();
useItem = useItem.split(',');
useItem.sort();
$.each(useItem, function( n, row ){
text += '<tr><td><input class="items useItem" value="' + row + '" type="text" name="itemsId" size="7"> <input type="button" name="delete" class="delete" value="X"> <a href="javascript:void(0);" id="'+ row +'" onclick="loadItemInfo(this);">[load]</a> or <a target="_blank" href="https://lib.new-combats.com/items_info.php?id='+ row +'" id="'+ row +'">[lib]</a> <br/></td></tr>';
});
$('#editorUseItem').html(' <div id="listInputs" ><table class="need" width="100%" valign="top" align="left" border="0" cellspacing="0" cellpadding="0"> '+text + ' </table><hr><input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" name="add" id="add_useitem"> <br/><hr/><input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" style="color:brown;" name="add" id="add_saveUseItem"> </div> ');
}
});
$(document).ready(function(){
});
</script>
</td>
</tr>
<tr>
<td align="right">
</td>
<td align="right">
<div id="testS"></div>
</td>
</tr>
</tbody>
</table>
</form>
<?
}
?>