Post by Matt on Aug 17, 2006 19:46:19 GMT -5
Created By : Serket
Title: Dark Reign RPG v1
Creator: Serket
Placement: Global Footers
Preview: img11.imageshack.us/img11/4014/11cg.png
Description: A basic rpg that has health, strength, magic, defense, and gold. This also has a working health bar. Each time you post, the health bar with raise.
Title: Dark Reign RPG v1
Creator: Serket
Placement: Global Footers
Preview: img11.imageshack.us/img11/4014/11cg.png
Description: A basic rpg that has health, strength, magic, defense, and gold. This also has a working health bar. Each time you post, the health bar with raise.
<script type="text/javascript">
//Dark Reign RPG v1 - Global Footers
//Created By §erket
//Keep this copyright intact at all times!
var TD=document.getElementsByTagName('td');
for(t=0;t <TD.length;t++){
if(TD[t].width=="20%" && TD[t].innerHTML.match(/Posts/i)){
var rpg=TD[t].innerHTML.split("Posts:")[1]
//DO NOT EDIT UNLESS YOU KNOW WHAT YOU ARE DOING!
//Character Status
var Level = parseInt(rpg)/2;
var HPbar = parseInt(rpg)/2;
var Health = parseInt(rpg)*10;
var Strength = parseInt(rpg)*5;
var Defense = parseInt(rpg)*6;
var Magic = parseInt(rpg)*4;
var Gold = parseInt(rpg)*7;
//Maximum Numbers
if(Level > 100)
Level = 100;
if(Health > 2000)
Health = 2000;
if(Strength > 1000)
Strength = 1000;
if(Defense > 1200)
Defense = 1200;
if(Magic > 800)
Magic = 800;
TD[t].innerHTML+="<br><br><table border=0 cellspacing=1 cellpadding=2 width=100% class='bordercolor'><tr><td class='titlebg'><font size=-2><center><b>RPG Status</b></center></tr></td></table><table border=0 cellspacing=1 cellpadding=2 width=100%><tr><td></tr></td></table><table border=0 cellspacing=1 cellpadding=2 bgcolor=#000000 width=100% class='bordercolor'><tr><td class='windowbg'><font size=-2><b>Level:</b> "+Level+"</table><table border=0 cellspacing=1 cellpadding=2 width=100%><tr><td></tr></td></table><table border=0 cellspacing=1 cellpadding=2 bgcolor=#000000 width=100% class='bordercolor'><tr><td class='windowbg'><font size=-2><b>Health:</b><br><table style='border: solid 1px #000000' bgcolor='#aaaaaa' cellpadding='0' cellspacing='0' width='70' height='6'><tr><td width='"+HPbar+"%' bgcolor='#00ff00'></td><td width='100%'></td></tr></table>"+Health+"/2000</table><table border=0 cellspacing=1 cellpadding=2 width=100%><tr><td></tr></td></table><table border=0 cellspacing=1 cellpadding=2 bgcolor=#000000 width=100% class='bordercolor'><tr><td class='windowbg'><font size=-2><b>Strength:</b> "+Strength+"/1000</table><table border=0 cellspacing=1 cellpadding=2 width=100%><tr><td></tr></td></table><table border=0 cellspacing=1 cellpadding=2 bgcolor=#000000 width=100% class='bordercolor'><tr><td class='windowbg'><font size=-2><b>Defense:</b> "+Defense+"/1200</table><table border=0 cellspacing=1 cellpadding=2 width=100%><tr><td></tr></td></table><table border=0 cellspacing=1 cellpadding=2 bgcolor=#000000 width=100% class='bordercolor'><tr><td class='windowbg'><font size=-2><b>Magic:</b> "+Magic+"/800</table><table border=0 cellspacing=1 cellpadding=2 width=100%><tr><td></tr></td></table><table border=0 cellspacing=1 cellpadding=2 bgcolor=#000000 width=100% class='bordercolor'><tr><td class='windowbg'><font size=-2><b>Gold:</b> "+Gold+"g</table>";
}}
</script>