|
Post by Reverse Blade on Apr 8, 2007 22:46:34 GMT -5
Basic RPG Code Might make a better one later CrossBrowser: yes Put in: Global Footers Preview <script> /* By Retribution */
//Enter Money Symbol Below var ms='$'
//Don't Edit any Further var d=document.getElementsByTagName('td') for(t=0;t<d.length;t++) { if(d[t].width=="20%" && d[t].innerHTML.match(/Posts/i)) { var w=d[t].innerHTML.match(/Posts: (.+?)</i) ? RegExp.$1: ''
var r=parseInt(RegExp.$1)*5 var q=parseInt(RegExp.$1)*4.5 var y=parseInt(RegExp.$1)*4 var a=parseInt(RegExp.$1)*2 var k=parseInt(RegExp.$1)*1
d[t].innerHTML+='<br />Money: '+ ms +''+ r +'<br />Attack: '+ q +'<br />Defense: '+ y +'<br />Agility: '+ a +'<br />Level: '+ k +''; }} </script>
|
|
|
Post by Wrighty on Apr 11, 2007 14:06:19 GMT -5
lol nice code... however could be improved if you give users option to edit how much money per post etc..
|
|
|
Post by Reverse Blade on Apr 11, 2007 18:05:14 GMT -5
Yeah, I was trying a function but the code wasn't working so I deleted it out of the code and it still wasn't working. When I fixed it I didn't feel like adding it again =P
|
|
|
Post by Wrighty on Apr 11, 2007 18:22:19 GMT -5
lol always happens, there is always one small thing annoying people in a code!
|
|
|
Post by Reverse Blade on Apr 11, 2007 18:25:13 GMT -5
yeah
|
|