Money Code

Justin

Nefarious did this.
Staff
Administrator
Joined
Jun 11, 2005
Posts
17,311
Bells
640
Points
0
Switch
4135-9919-0984
Chomp Call
Golden Salmonid Egg
Pinky
Smash Ball
Tera Orb
Sweet Feather
Glam Feather
Fresh Feather
Cool Feather
Hot Feather
What money code does tbt use?

What the code?

And if anyone else knows one please tell me.
 
it says"You do not have permission to see this topic."
 
Storm please post which money code tbt uses. Not a link to it. Just post the code. Copy and paste it from the Board Wrappers to here.

Please storm.
 
Code:
<script>
// Money code by MattB22890 of the Nintendo Forums. Do not take this code without permission.
var sign = "";
var name = "<br><br>Bells";
var PerPost = 2;
var default_amount = 850;

var MID=[];
MID["case"]="0"
MID["STORMTROOPER88888"]="210527820"
MID["Bulerias"]="120090441"


</script>
<script>
if(! default_amount) { var default_amount = 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
}}
</script>

You can probably figure out how to edit all the stuff.
 
I know how to edit it all. and should I ask Matt first like it says or not.
 
How do you take/give money from your members? Can't figure it out.
 
ok where it says
MID["STORMTROOPER88888"]="210527820"
you make one for everymember
to add $20 to say me, make it
MID["zeldafreak104"]="20"
to add 20 more make it
MID["zeldafreak104"]="40"
to subtract 10 make it
MID["zeldafreak104"]="30"
oh and you an change stuff here
var sign = "";
var name = "<br><br>Bells";
var PerPost = 2;
var default_amount = 850;

var sign is like $
var name is bells or dollars
var per post is how many per post
vard default_amout is how many people start with
 
ZELDAFREAK104 said:
ok where it says
MID["STORMTROOPER88888"]="210527820"
you make one for everymember
to add $20 to say me, make it
MID["zeldafreak104"]="20"
to add 20 more make it
MID["zeldafreak104"]="40"
to subtract 10 make it
MID["zeldafreak104"]="30"
oh and you an change stuff here
var sign = "";
var name = "<br><br>Bells";
var PerPost = 2;
var default_amount = 850;

var sign is like $
var name is bells or dollars
var per post is how many per post
vard default_amout is how many people start with
There must be a easyir way then that. because I don't think matt from Nintendo forums would do that for all his members and same with the bell tree.
 
Bull or storm please tell me if there is a eaiser way to take/give money to members?
 
Back
Top