[Code] Simple Money Mod
Page 1 of 1
[Code] Simple Money Mod
Simple Money Mod
- adds 'Money' per post, nothing more
Place in Footers/Wrappers
amoney.js:
- adds 'Money' per post, nothing more
Place in Footers/Wrappers
- Code:
<script>
// Money mod
// By Bad Wolf of Dark eFfectX
// https://darkfx.darkbb.com
var sign = "$";
var name = "Money";
var PerPost = "25";
var default_amount = 0
document.write('<script src="https://amoney.js"><\/script>');
</script>
amoney.js:
- Code:
if(! default_amount) { var default_amount = 0; var MID=[]
MID["members"]="0" }
td=document.body.getElementsByTagName("TD")
for(i=0;i<td.length;i++) {
if((td[i].className=="post1"||td[i].className=="post2")&&td[i].innerHTML.match("Posts: ")&&td[i].width!="100%") {
sPost=td[i].getElementsByTagName("SPAN")[0]
if(sPost.innerHTML.replace(",","").match(/Posts: (\d+)/)) Posts = parseInt(RegExp.$1)
uname = td[i-2].innerHTML.replace(/<[^>]+>/g,"").replace(/ /g,"")
if(MID[uname] > 0 || MID[uname] < 0){ EXP = (parseInt(MID[uname]) + (Posts * PerPost))+parseInt(default_amount) }
else{ EXP = (Posts * PerPost)+parseInt(default_amount) }
var midR="Group: " + sPost.innerHTML.split('Group: ')[1]
var topR=sPost.innerHTML.split('Group: ')[0]
if(sPost.innerHTML.match('<!-- PLACEHOLDER -->')) {
NewCode = sPost.innerHTML.replace("<!-- PLACEHOLDER -->", ""+name + ": " + sign + EXP + "<br><!-- PLACEHOLDER -->")
}
else {
NewCode = topR
NewCode += midR
NewCode += ""+name + ": " + sign + EXP + "<br>"
NewCode += "<!-- PLACEHOLDER -->"
NewCode += "<br><br>"
}
sPost.innerHTML = NewCode
}}
Bad Wolf- Designer GFX
-
Level : 46
Number of posts : 3398
Location : Satellite V
Rank : 7
Experience : 3021
Registration Date : 2006-12-24
Cprofile
Title: The Digital Alchemist
Luck:
(588/588)
Karma:
(530/777)
Similar topics
» [Code] Shoutbox with IFrame
» [Code] False Forum
» [Code] Page Transition
» [Code] Maplesea Inferno
» [Code] Transformers Beta
» [Code] False Forum
» [Code] Page Transition
» [Code] Maplesea Inferno
» [Code] Transformers Beta
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum