2022-06-06 21:30:34 +00:00
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 != undefined )
{
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' ;
2022-12-19 18:26:14 +00:00
if ( whp > 32 ) chp = 'hp_2' ;
2022-06-06 21:30:34 +00:00
if ( whp > 65 ) chp = 'hp_3' ;
if ( wmp <= 0 ) cmp = 'hp_none' ;
if ( mpAll > 0 ) {
2023-01-10 16:29:32 +00:00
mbmp = ` <div title="Уровень маны" class="seemp" style="position:absolute; top:10px; width:120px; height:10px; z-index:12;"> ${ mp } / ${ mpAll } </div>
< div title = "Уровень маны" class = "hpborder" style = "position:absolute; top:10px; width:120px; height:9px; z-index:13;" > < img src = "https://${top.c.img}/1x1.gif" height = "9" width = "1" > < / d i v >
2022-06-06 21:30:34 +00:00
< div class = "${cmp} senohp" style = "height:9px; position:absolute; top:10px; width:${wmp}px; z-index:11;" id = "lmp4" > < img src = "https://${top.c.img}/1x1.gif" height = "9" width = "1" > < / d i v >
2023-01-10 16:29:32 +00:00
< div title = "Уровень маны" class = "hp_none" style = "position:absolute; top:10px; width:120px; height:10px; z-index:10;" > < / d i v > ` ;
2022-06-06 21:30:34 +00:00
} else nomp = 5 ;
if ( align == 9 ) {
hp = Math . floor ( hp / ( hpAll / 100 ) ) ;
hpAll = '100%' ;
}
var zaggg = '' , zggg1 = '' , zggg2 = '' , zggg3 , zggg4 = '' ;
if ( zag != undefined && zag != 0 && zag != '' ) {
zggg1 = 'class="inf2s"' ;
zggg2 = 'position:relative;height:280px;' ;
zggg3 = 'position:absolute;top:3px;left:3px;z-index:102;' ;
zggg4 = 'display:none;' ;
zaggg += '<style> .inf2s { position:relative; filter: alpha(opacity=10); -moz-opacity: 0.10; -khtml-opacity: 0.10; opacity: 0.10; } .inf2s:hover { background-color:#e2e0e0;filter: alpha(opacity=70); -moz-opacity: 0.70; -khtml-opacity: 0.70; opacity: 0.70; } </style>' ;
2023-03-31 18:30:14 +00:00
zaggg += ` <img style="position:absolute;top:1px;left:1px;z-index:100;" src="//img.new-combats.tech/i/zag/ ${ zag } "> ` ;
2022-06-06 21:30:34 +00:00
}
document . getElementById ( ` player ${ id _info } _login ` ) . innerHTML = up _info ;
d . innerHTML = ` <div align="left">
< div style = "width:240px; ${zggg2} padding:2px; border-bottom:1px solid #666666; border-right:1px solid #666666; border-left:1px solid #FFFFFF; border-top:1px solid #FFFFFF;" > $ { zaggg }
< div align = "center" >
<!-- blocked -- >
< / d i v >
< table style = "${zggg3}" width = "240" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
< td width = "60" valign = "top" > < table width = "60" height = "280" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "60" id = "${id_info}_itmSlot1" > < img style = "display:block;" title = "Пустой слот шлем" src = "https://${top.c.img}/i/items/w/w9.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "40" id = "${id_info}_itmSlot2" > < img style = "display:block;" title = "Пустой слот наручи" src = "https://${top.c.img}/i/items/w/w13.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "60" id = "${id_info}_itmSlot3" > < img style = "display:block;" title = "Пустой слот оружие" src = "https://${top.c.img}/i/items/w/w3.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "80" > < div id = "${id_info}_itmSlot4" > < img style = "display:block;" title = "Пустой слот броня" src = "https://${top.c.img}/i/items/w/w4.gif" > < / d i v > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "40" id = "${id_info}_itmSlot7" > < img style = "display:block;" title = "Пустой слот пояс" src = "https://${top.c.img}/i/items/w/w5.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< / t a b l e > < / t d >
< td height = "280" valign = "top" > < table width = "120" height = "280" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
< td height = "20" valign = "top" > <!-- HP and MP -- >
< div style = "position:relative;" >
2023-01-10 16:29:32 +00:00
< div title = "Уровень жизни" class = "seehp" style = "position:absolute; top:${nomp}px; width:120px; height:10px; z-index:12;" > $ { hp } / $ { hpAll } < / d i v >
< div title = "T Уровень жизни" class = "hpborder" style = "position:absolute; top:${nomp}px; width:120px; height:9px; z-index:13;" > < img style = "display:block;" src = "https://${top.c.img}/1x1.gif" height = "9" width = "1" > < / d i v >
2022-06-06 21:30:34 +00:00
< div class = "${chp} senohp" style = "height:9px; width:${whp}px; position:absolute; top:${nomp}px; z-index:11;" id = "lhp4" > < img style = "display:block;" src = "https://${top.c.img}/1x1.gif" height = "9" width = "1" > < / d i v >
2023-01-10 16:29:32 +00:00
< div title = "Уровень жизни" class = "hp_none" style = "position:absolute; top:${nomp}px; width:120px; height:10px; z-index:10;" > < img style = "display:block;" src = "https://${top.c.img}/1x1.gif" height = "10" > < / d i v >
2022-06-06 21:30:34 +00:00
$ { mbmp }
< / d i v >
<!-- -- >
< / t d >
< / t r >
< tr >
< td valign = "top" > < div style = "position:relative; height:220px;" >
2023-01-10 16:29:32 +00:00
<!-- образ -- >
2022-06-06 21:30:34 +00:00
< div style = "${zggg4}position:absolute; width:120px; height:220px; z-index:1;" onMouseOver = "top.hi(this,\'${ststua}\',event,0,1,1,1,\'\');" onMouseOut = "top.hic();" onMouseDown = "top.hic();" > < a href = "#obraz_pers" > < img style = "display:block;" width = "120" height = "220" src = "https://${top.c.img}/i/obraz/${sex}/${obraz}" > < / a > < / d i v >
< div style = "position:absolute; width:auto; height:auto; z-index:3;" > $ { eff } < / d i v >
< / d i v > < / t d >
< / t r >
< tr >
< td $ { zggg1 } height = "40" > < table width = "120" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
2023-01-10 16:29:32 +00:00
< td width = "40" id = "${id_info}_itmSlot53" height = "20" > < img style = "display:block;" title = "Пустой слот правый карман" src = "https://${top.c.img}/i/items/w/w15.gif" > < / t d >
< td width = "40" id = "${id_info}_itmSlot55" height = "20" > < img style = "display:block;" title = "Пустой слот центральный карман" src = "https://${top.c.img}/i/items/w/w15.gif" > < / t d >
< td width = "40" id = "${id_info}_itmSlot54" height = "20" > < img style = "display:block;" title = "Пустой слот левый карман" src = "https://${top.c.img}/i/items/w/w15.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td width = "40" id = "${id_info}_itmSlot56" height = "20" > < img style = "display:block;" title = "Пустой слот смена" src = "https://${top.c.img}/i/items/w/w20.gif" > < / t d >
< td width = "40" id = "${id_info}_itmSlot57" height = "20" > < img style = "display:block;" title = "Пустой слот смена" src = "https://${top.c.img}/i/items/w/w20.gif" > < / t d >
< td width = "40" id = "${id_info}_itmSlot58" height = "20" > < img style = "display:block;" title = "Пустой слот смена" src = "https://${top.c.img}/i/items/w/w20.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< / t a b l e > < / t d >
< / t r >
< / t a b l e > < / t d >
< td width = "60" valign = "top" > < table width = "60" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "20" id = "${id_info}_itmSlot8" > < img style = "display:block;" title = "Пустой слот серьги" src = "https://${top.c.img}/i/items/w/w1.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "20" id = "${id_info}_itmSlot9" > < img style = "display:block;" title = "Пустой слот ожерелье" src = "https://${top.c.img}/i/items/w/w2.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
< td $ { zggg1 } height = "20" > < table width = "60" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } width = "20" id = "${id_info}_itmSlot10" height = "20" > < img style = "display:block;" title = "Пустой слот кольцо" src = "https://${top.c.img}/i/items/w/w6.gif" > < / t d >
< td $ { zggg1 } width = "20" id = "${id_info}_itmSlot11" > < img style = "display:block;" title = "Пустой слот кольцо" src = "https://${top.c.img}/i/items/w/w6.gif" > < / t d >
< td $ { zggg1 } width = "20" id = "${id_info}_itmSlot12" > < img style = "display:block;" title = "Пустой слот кольцо" src = "https://${top.c.img}/i/items/w/w6.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< / t a b l e > < / t d >
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "40" id = "${id_info}_itmSlot13" > < img style = "display:block;" title = "Пустой слот перчатки" src = "https://${top.c.img}/i/items/w/w11.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "60" id = "${id_info}_itmSlot14" > < img style = "display:block;" title = "Пустой слот щит" src = "https://${top.c.img}/i/items/w/w10.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "80" id = "${id_info}_itmSlot16" > < img style = "display:block;" title = "Пустой слот поножи" src = "https://${top.c.img}/i/items/w/w19.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< tr >
2023-01-10 16:29:32 +00:00
< td $ { zggg1 } height = "40" id = "${id_info}_itmSlot17" > < img style = "display:block;" title = "Пустой слот обувь" src = "https://${top.c.img}/i/items/w/w12.gif" > < / t d >
2022-06-06 21:30:34 +00:00
< / t r >
< / t a b l e > < / t d >
< / t r >
< / t a b l e >
< / d i v >
< / d i v > ` ;
}
}
var img4 = '' ;
var lst4 = 0 ;
function abitms _work ( img , count ) {
img4 = img ;
lst4 = count ;
}
var hr = ` <div align= \\ \' center \\ \' style= \\ \' margin:4px; \\ \' ><img src= \\ \' https:// ${ top . c . img } /1x1.gif \\ \' height= \\ \' 1 \\ \' width= \\ \' 111 \\ \' style= \\ \' background-color:black; \\ \' ></div> ` ;
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 = ` <img style="display:block; ${ clck } " src="https:// ${ top . c . img } /i/items/ ${ img } " onMouseOver="top.hi(this, \' ${ title } \' ,event,3,1,1,1, \' \' );" onMouseOut="top.hic();" onMouseDown="top.hic();"> ` ;
}
}