var stl4 = { 1:0,2:0 };
stl4[1] = { 4:'',5:'',6:'' };
stl4[2] = { 4:'',5:'',6:'' };
function info_reflesh(id_info,uid,up_info,obraz,hp,hpAll,mp,mpAll,invis,sex,eff,ststua,align,zag)
{
stl4[id_info] = { 4:'',5:'',6:'' }; img4 = ''; lst4 = 0;
var d = document.getElementById(`player${id_info}`);
if(d)
{
var mbmp = '';
var nomp = 0;
var whp = Math.floor(hp/hpAll*120);
var wmp = Math.floor(mp/mpAll*120);
var chp = 'hp_3';
var cmp = 'hp_mp';
if(whp<1) chp = 'hp_none';
if(whp>0) chp = 'hp_1';
if(whp>32) chp = 'hp_2';
if(whp>65) chp = 'hp_3';
if(wmp<=0) cmp = 'hp_none';
if (mpAll > 0) {
mbmp = `
${mp}/${mpAll}
`;
} else nomp = 5;
if (align==9){
hp = Math.floor(hp/(hpAll/100));
hpAll = '100%';
}
var zaggg = '',zggg1 = '',zggg2 = '',zggg3,zggg4 = '';
if(zag) {
zggg1 = 'class="inf2s"';
zggg2 = 'position:relative;height:280px;';
zggg3 = 'position:absolute;top:3px;left:3px;z-index:102;';
zggg4 = 'display:none;';
zaggg += '';
zaggg += ``;
}
document.getElementById(`player${id_info}_login`).innerHTML = up_info;
d.innerHTML = ``;
}
}
var img4 = '';
var lst4 = 0;
function abitms_work (img, count) {
img4 = img;
lst4 = count;
}
var hr = ``;
function abitms(id_pers, uid, id, slot, name, title, img, clck) {
if (slot >= 4 && slot <= 6) {
if (slot == 4 && lst4 == 0) abitms_work(img, 4)
else if (slot == 5 && lst4 < 5) abitms_work(img, 5)
else if (slot == 6 && lst4 < 6) abitms_work(img, 6)
stl4[id_pers][slot] = title;
slot = 4;
var ltt4 = '';
if (stl4[id_pers][6] != '') {
ltt4 += stl4[id_pers][6];
if (stl4[id_pers][4] != '' || stl4[id_pers][5] != '') {
ltt4 += hr;
}
}
if (stl4[id_pers][5] != '') {
ltt4 += stl4[id_pers][5];
if (stl4[id_pers][4] != '') {
ltt4 += hr;
}
}
if (stl4[id_pers][4] != '') {
ltt4 += stl4[id_pers][4];
}
title = ltt4;
img = img4;
}
if (slot == 52) {
if (slot == 52) abitms_work(img, 1)
slot = 1;
ltt4 += stl4[id_pers][4]
title = ltt4;
img = img4;
}
var itm = document.getElementById(`${id_pers}_itmSlot${slot}`);
if (itm != undefined) {
if (clck != undefined && clck != '') {
clck = `cursor:pointer;" onclick="${clck}`;
}
itm.innerHTML = ``;
}
}