function changeImg(){ x = document.getElementsByTagName('span') for(i=0;i" + "" + x[i].innerHTML} else if((x[i].style.color=="rgb(0, 4, 255)")||(x[i].style.color=="#0004ff")) {newHTML = "" + "" + x[i].innerHTML} else {newHTML= x[i].innerHTML}} x[i].innerHTML = newHTML; } } function init(){ dir="https://i292.photobucket.com/albums/mm30/huylordno1/pet/" var avatarname="" var title1="Level" var title2="strenght"; var title3="defense"; var title4=""; var xperpost="8" var xperexp="100" var xperreptt="12" var xpneeded="4390" var aqname="Intelligent"; var aqsign=" point"; var aq=[]; var display=[]; var level=[]; var posts=[]; var repts=[]; var cts=[]; var firstchar=[]; var gendervn = new Array() gendervn[0]=""; gendervn[1]=""; gendervn[2]=""; gendervn[3]=""; gendervn[4]=""; gendervn[5]=""; gendervn[6]=""; gendervn[7]=""; gendervn[8]=""; gendervn[9]=""; gendervn[10]=""; gendervn[11]=""; gendervn[12]=""; gendervn[13]=""; gendervn[14]=""; gendervn[15]=""; gendervn[16]=""; gendervn[17]=""; gendervn[18]=""; gendervn[19]=""; aqperpost="7" x = document.getElementsByTagName('div') for(y=0;y: ")[1]); nic= x[y].parentNode.parentNode.parentNode.getElementsByTagName("A")[0].innerHTML; repts[nic]=parseInt(x[y].innerHTML.toLowerCase().split("points: ")[1]); nict= x[y].parentNode.parentNode.parentNode.getElementsByTagName("A")[0].innerHTML; cts[nict]=parseInt(x[y].innerHTML.toLowerCase().split("gender: ")[1]); var levell=[]; var xp=[]; var firstchar=[]; xp[nick]=posts[nick]*xperpost+repts[nic]*xperreptt level[nick]=(xp[nick]/xpneeded) var exp = Math.floor((level[nick]-Math.floor(level[nick]))*xperexp) var phansonguyen = Math.floor(level[nick]+parseInt(1)); var xptogo = Math.floor(level[nick]+parseInt(1))*xpneeded firstchar[nick]=nick.charAt(0); aq[nick]="YĂªu cầu vĂ o lĂ½ lịch cập nhật giá»›i tĂ­nh (gender) cho mình" aq[nick]=(aqperpost*posts[nick]) var avatar=[]; if (cts[nict] == 1) { if (phansonguyen==1) {avatar[nick]=gendervn[0]} if (phansonguyen==2) {avatar[nick]=gendervn[1]} if (phansonguyen==3) {avatar[nick]=gendervn[2]} if (phansonguyen==4) {avatar[nick]=gendervn[3]} if (phansonguyen==5) {avatar[nick]=gendervn[4]} if (phansonguyen==6) {avatar[nick]=gendervn[5]} if (phansonguyen==7) {avatar[nick]=gendervn[6]} if (phansonguyen==8) {avatar[nick]=gendervn[7]} if (phansonguyen==9) {avatar[nick]=gendervn[8]} if (phansonguyen>=10) {avatar[nick]=gendervn[9]} } else { if (cts[nict] == 2) { if (phansonguyen==1) {avatar[nick]=gendervn[10]} if (phansonguyen==2) {avatar[nick]=gendervn[11]} if (phansonguyen==3) {avatar[nick]=gendervn[12]} if (phansonguyen==4) {avatar[nick]=gendervn[13]} if (phansonguyen==5) {avatar[nick]=gendervn[14]} if (phansonguyen==6) {avatar[nick]=gendervn[15]} if (phansonguyen==7) {avatar[nick]=gendervn[16]} if (phansonguyen==8) {avatar[nick]=gendervn[17]} if (phansonguyen==9) {avatar[nick]=gendervn[18]} if (phansonguyen>=10) {avatar[nick]=gendervn[19]} } } expgender=""; expgender2=""; expss= "
"+expgender+""+expgender2+"
"; stats=""+avatarname+""+avatar[nick]+"
"+title1+": "+ phansonguyen +" (+"+exp+"%)"+expss+"" if(x[y].innerHTML.match(/Choice/i)){ x[y].innerHTML +="
You do not have genders
";} else{x[y].innerHTML +="
" + stats+"
";} }} } function start() {changeImg(); init();} window.onload = start();