Do any of you know......

sunate

Senior Member
Joined
May 24, 2005
Posts
1,266
Bells
2,263
Lucky Coins
0
Gems
0
what money code this place uses like the script i mean you know the bell's we have what code did storm use
 
here it is... just replace member1 with the member's name, and the number is how much you want to add or subtract, not how much they have.
Code:
<script type="text/javascript">
// Money code
// By Gornakle of InvisionFree.com

var sign = "$";
var name = "<br><br>Money";
var PerPost = 10;
var default_amount = 500;

var MID=[];
MID["member1"]="100"
MID["Member0"]="-1700"


// No need to edit below this line!
td=document.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(",","").replace('.','').replace(' ','').match(/Posts: (\d+)/)) Posts = parseInt(RegExp.$1) 
 uname = td[i-2].innerHTML.replace(/<[^>]+>/g,"").replace(/ /g,"")
 if(MID[uname]){ 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 + midR +name + ": " + sign + EXP + "<br><!-- placeholder --><br><br>"
}

sPost.innerHTML = NewCode
}}
</script>
 
Also you can change the stuff in red ;). Also, I'll explain how you work the blue line ;).


<script type="text/javascript">
// Money code
// By Gornakle of InvisionFree.com

var sign = "$";
var name = "<br><br>Money";
var PerPost = 10;
var default_amount = 500;

var MID=[];
MID["member1"]="100"
MID["Member0"]="-1700
"


// No need to edit below this line!
td=document.getElementsByTagName("TD")
for(i=0;i<td.length;i++) {
if((td.className=="post1"||td.className=="post2")&&td.innerHTML.match("Posts: ")&&td.width!="100%") {
sPost=td.getElementsByTagName("SPAN")[0]
if(sPost.innerHTML.replace(",","").replace('.','').replace(' ','').match(/Posts: (\d+)/)) Posts = parseInt(RegExp.$1)
uname = td[i-2].innerHTML.replace(/<[^>]+>/g,"").replace(/ /g,"")
if(MID[uname]){ 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 + midR +name + ": " + sign + EXP + "<br><!-- placeholder --><br><br>"
}

sPost.innerHTML = NewCode
}}
</script>



See the blue line? Well...wait, I forgot...well, it's the line where you can edit people's amount of money ;). There's just a special way to do it. Okay, I think I know now. See how it says "MID["member1"]="100" well, that means member1 gained 100, and if they need to subtract you put - in front of it. It's also only one per line.
 
Oh well I did it with out the qoute's and it wroked just fine but anyway's thank you guy's so much.
 
Back
Top