Post by Jye. on Mar 18, 2009 3:12:22 GMT -5
Version 3 of the Jye role play stats. Again, the general part of this was made by me a while back on another forum i was an administrator at.
Updates:
- Role play stats edited a bit from the other versions
- Members can now choose their role play race in their profile from a drop down selection box, which will then be displayed on their mini profile once chosen.
If you would like any of the races changed or you want more added please feel free to reply and let me know.
Placement: Global Footers
Previews:
Mini Profile:
Choose race section in profile:
Updates:
- Role play stats edited a bit from the other versions
- Members can now choose their role play race in their profile from a drop down selection box, which will then be displayed on their mini profile once chosen.
If you would like any of the races changed or you want more added please feel free to reply and let me know.
Placement: Global Footers
<script>
// Jye Role Play Stats V3
// By Jye
// http://tsstudios.proboards.com
// Do not re-post or claim as your own
var veTD=document.getElementsByTagName('td');
for(t=0;t<veTD.length;t++){
if(veTD[t].width=="20%" && veTD[t].innerHTML.match(/Posts/i)){
var PostAmount=veTD[t].innerHTML.split("Posts:")[1]
var Money=parseInt(PostAmount)*6
var Level=parseInt(PostAmount)*0.5
var Defense=parseInt(PostAmount)*5
var Power=parseInt(PostAmount)*4
var Agility=parseInt(PostAmount)*3
var Magic=parseInt(PostAmount)*2
var Items=parseInt(PostAmount)*1
veTD[t].innerHTML+="<br/><br/><table border='0' class='bordercolor cellpadding='1' cellspacing='1' align='center' width='100%' height='100'><tr><td colspan='2' class='titlebg' align='left'><center><font size='1'><b>RPG Stats</b> <br /><tr><td colspan='2' class='windowbg' align='left'><b>Money:</b> "+Money+"<br /><tr><td colspan='2' class='windowbg' align='left'><b>Level:</b> "+Level+"<br /><tr><td colspan='2' class='windowbg' align='left'><b>Defense:</b> "+Defense+"<br /><tr><td colspan='2' class='windowbg' align='left'><b>Power:</b> "+Power+"<br /><tr><td colspan='2' class='windowbg' align='left'><b>Agility:</b> "+Agility+"<br /><tr><td colspan='2' class='windowbg' align='left'><b>Magic:</b> "+Magic+"<br /><tr><td colspan='2' class='windowbg' align='left'><b>Items:</b> "+Items+"<br /></font></center></left></td></tr></td></tr></td></tr></td></tr></table>"
}}
if(location.href.match(/action=modifyprofile/i)){
document.modifyForm.personaltext.maxLength="84";
var tab = document.modifyForm.signature.parentNode.parentNode.parentNode.parentNode;
var row = tab.insertRow(-1)
var cel1 = row.insertCell(0)
var cel2 = row.insertCell(1)
var cel3 = row.insertCell(2)
cel1.innerHTML ='<font size="2">RPG Race:</font>';
cel2.innerHTML ='<select name="group"><option value="Human">Human</option><option value="Elf">Elf</opiton><option value="Orc">Orc</option><option value="Dwarf">Dwarf</option><option value="Gnome">Gnome</option></select>';
cel3.innerHTML='<font size="1">Please Select Your RPG Race Here.</font>';
if(document.modifyForm.personaltext.value.match(/\|group=(.*)\|/i)){
var group = RegExp.$1
document.modifyForm.group.value = group;
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace('|group='+group+'|','');
}
function addClass() {
document.modifyForm.personaltext.maxLength="100";
document.modifyForm.personaltext.value += "|group="+document.modifyForm.group.options[document.modifyForm.group.selectedIndex].value+"|";
document.modifyForm.submit();
}
document.modifyForm.onsubmit = addClass;
}
var veTD = document.getElementsByTagName("TD");
for(t=0;t<veTD.length;t++){
if(veTD[t].innerHTML.match(/\|group=(.+?)\|/i) && veTD[t].width=="20%"){
var group = RegExp.$1;
var replace = veTD[t].innerHTML.replace('|group='+group+'|','');
veTD[t].innerHTML = replace;
veTD[t].innerHTML+="</br><table border='0' class='bordercolor cellpadding='1' cellspacing='1' align='center' width='100%' height='20'><tr><td colspan='2' class='titlebg' align='left'><center><font size='1'><b>Race</b> <br /><tr><td colspan='2' class='windowbg' align='left'><b>Race:</b> "+group+"<br /></font></center></left></td></tr></table>"
}}
//-->
</script>
Previews:
Mini Profile:
Choose race section in profile: