|
Post by Infection X on Jul 31, 2004 16:43:24 GMT -8
w00t,my noob rpg code Put this code in your Board Footers<script> // RPG Dragon v1 Created by Gamefreak /*This script must not be posted anyway outside of SSD without permission from it's creator*/
var sign = "$" // Sign of the currency you want. var money = "Cash" // What you want the name of your money to be
Td = document.getElementsByTagName("Td") for(i=0;i<Td.length;i++){ if(Td[i].width=="20%" && !Td[i].innerHTML.match(/author/i)){ Td[i].innerHTML.match(/posts: (\d+)/i) var postCount = parseInt(RegExp.$1);var moneyCount = postCount * 3; Td[i].innerHTML = Td[i].innerHTML.replace("Posts: "+postCount,"Posts: "+postCount+"<br /><b>"+money+":</b>"+sign+""+moneyCount) }} Td = document.getElementsByTagName("Td") for(i=0;i<Td.length;i++){ if(Td[i].width=="20%" && !Td[i].innerHTML.match(/author/i)){ Td[i].innerHTML.match(/posts: (\d+)/i) var postCount = parseInt(RegExp.$1);var atkCount = postCount * 4; Td[i].innerHTML = Td[i].innerHTML.replace("Posts: "+postCount,"Posts: "+postCount+"<br /><b>Attack Points:</b>"+atkCount) }} Td = document.getElementsByTagName("Td") for(i=0;i<Td.length;i++){ if(Td[i].width=="20%" && !Td[i].innerHTML.match(/author/i)){ Td[i].innerHTML.match(/posts: (\d+)/i) var postCount = parseInt(RegExp.$1);var defCount = postCount * 2; Td[i].innerHTML = Td[i].innerHTML.replace("Posts: "+postCount,"Posts: "+postCount+"<br /><b>Defense Points:</b>"+defCount) }} Td = document.getElementsByTagName("Td") for(i=0;i<Td.length;i++){ if(Td[i].width=="20%" && !Td[i].innerHTML.match(/author/i)){ Td[i].innerHTML.match(/posts: (\d+)/i) var postCount = parseInt(RegExp.$1);var mgcCount = postCount * 5; Td[i].innerHTML = Td[i].innerHTML.replace("Posts: "+postCount,"Posts: "+postCount+"<br /><b>Magic Points:</b>"+mgcCount) }} Td = document.getElementsByTagName("Td") for(i=0;i<Td.length;i++){ if(Td[i].width=="20%" && !Td[i].innerHTML.match(/author/i)){ Td[i].innerHTML.match(/posts: (\d+)/i) var postCount = parseInt(RegExp.$1);var hpCount = postCount * 8; Td[i].innerHTML = Td[i].innerHTML.replace("Posts: "+postCount,"Posts: "+postCount+"<br /><b>HP Points:</b>"+hpCount) }} </script> Preview:http://img.photobucket.com/albums/v143/jumba/Codes/dragon.png it's a bit messy but v2 wil be a lot better.
|
|
BLADE
New Member
Posts: 42
|
Post by BLADE on Aug 28, 2004 20:17:58 GMT -8
i cant get this to work on my board
|
|
|
Post by ShadowyOne on Aug 29, 2004 9:45:06 GMT -8
Pretty nice, I do have a suggestion though. I'm not sure if the stats are spaced from the stat name itself, but I think it should be.
Example:
HP:874
to
HP: 874
|
|
|
Post by chronix on Apr 24, 2005 9:22:54 GMT -8
yes pretty nice
|
|
|
Post by CrAzY_J on Apr 24, 2005 10:16:40 GMT -8
Ganefreak's first code....the old times
|
|