game/img.new-combats.com/js/commoninf.js
2023-01-10 18:30:35 +02:00

3 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function getalign(al){ var n=parseFloat(al); if (n>=1 && n<2) return("Белое братство"); if (n>=2 && n<3) return("Ангел"); if (n>=3 && n<4) return("Темное братство"); if (n==7) return("Нейтральное братство"); if (n>7 && n<8) return("Орден Очищения Стихий"); if (n>=50 && n<51) return("Алхимики"); return("");}
function getalignurl(al){ var n=parseFloat(al); if (n==50) return "https://new-combats.com/encicl/alchemist.html"; return "https://new-combats.com/encicl/alignment.html";}
function drwfl(name, id, level, align, klan, img, sex){ var s=""; if (align!="0") s+="<A HREF='"+getalignurl(align)+"' target=_blank><IMG SRC='http://img.new-combats.com/i/align/align"+align+".gif' WIDTH=12 HEIGHT=15 ALT=\""+getalign(align)+"\"></A>"; if (klan) s+="<A HREF='/claninf.php?"+klan+"' target=_blank><IMG SRC='http://img.new-combats.com/i/clan/"+klan+".gif' WIDTH=24 HEIGHT=15 ALT=''></A>"; s+="<B>"+name+"</B>"; if (level!=-1) s+=" ["+level+"]"; if (id!=-1 && !img) s+="<A HREF='/inf.php?"+id+"' target='_blank'><IMG SRC=http://img.new-combats.com/i/inf_capitalcity.gif WIDTH=12 HEIGHT=11 ALT='Инф. о "+name+"'></A>"; if (img) s+="<A HREF='http://capitalcity.new-combats.com/encicl/obraz_"+(sex?"w":"m")+"1.html?l="+img+"' target='_blank'><IMG SRC=http://capitalcity.new-combats.com/img/i/inf.gif WIDTH=12 HEIGHT=11 ALT='Образ "+name+"'></A>"; document.write(s);}