|
<script type="text/Javascript"> // Simple RPG Stats v1 by Chris // Do not redistribute without permisison of the creator
// Scroll down to editing portion var aDI = document.getElementsByTagName("div"); function addStat(name,val){ for(a=0;a<aDI.length;a++){ if(aDI[a].className == "miniprofile" && aDI[a].innerHTML.match(/Posts: ([\d,]+)/i)){ var p = RegExp.$1.replace(/,/,""); aDI[a].innerHTML += "<br />"+name+": "+Math.floor(p*val); } } }
// EDIT HERE addStat("Money",15); addStat("Health",5); addStat("Magic",3); addStat("Level",0.1); </script> Put the hack in your global footers. EditingThe editing for this hack is fairly simple. Find the line that says "// EDIT HERE" On the lines below it, you'll see something like addStat("Name",#); That's how you edit it. Repeat that line for each additional stat. "Name" is obviously the name of the stat. "#" is the number of points gained per post. Decimals can be used and it will always round down.
|
|
|
|