SuperJedi224
Not New Member
Posts: 10
SuperJedi224 said 0 great things
|
Post by SuperJedi224 on Sept 7, 2012 14:42:16 GMT -8
I've noticed a lot of RPG codes based on post count, but have been unable to find any based on post ranks. Any ideas?
Also, I'd prefer one without a money stat because I don't need a third money stat (I'm already using "Karma-Post Money" and "Money Hack V3")
|
|
|
Post by Wormopolis on Sept 7, 2012 19:47:57 GMT -8
Im not sure what you mean? you want a second label to show up if a certain post rank is achieved?
|
|
SuperJedi224
Not New Member
Posts: 10
SuperJedi224 said 0 great things
|
Post by SuperJedi224 on Sept 8, 2012 3:07:43 GMT -8
Im not sure what you mean? you want a second label to show up if a certain post rank is achieved? RPG stats based on your rank instead of your post count.
|
|
|
Post by Wormopolis on Sept 8, 2012 12:24:16 GMT -8
so basically... anyone who has 1-20 posts has strength 5. 21-50 posts has strength 10. 51-100 posts has strength 15...
like that?
|
|
SuperJedi224
Not New Member
Posts: 10
SuperJedi224 said 0 great things
|
Post by SuperJedi224 on Sept 8, 2012 17:19:12 GMT -8
so basically... anyone who has 1-20 posts has strength 5. 21-50 posts has strength 10. 51-100 posts has strength 15... like that? Pretty much.
|
|
|
Post by Wormopolis on Sept 8, 2012 18:22:02 GMT -8
alright. and where in the MP will this show? at the bottom?
|
|
|
Post by Wormopolis on Sept 9, 2012 2:25:40 GMT -8
so if you look at our MPs, you will see the basic table. ignoring styling, is that pretty much what you were after?
|
|
SuperJedi224
Not New Member
Posts: 10
SuperJedi224 said 0 great things
|
Post by SuperJedi224 on Sept 9, 2012 10:41:06 GMT -8
1. Yes, the bottom of the MP would work. 2. Okay.
|
|
|
Post by Wormopolis on Sept 10, 2012 22:31:41 GMT -8
<style type="text/css"> .statsTable {width:80%; background-color:#0044FF; border: 1px solid #AAAAAA;} .statsTableHeader {background-color: #111111; font-weight: bold; text-align: center;} .statsTableCells {background-color: #222222; } </style>
<script type="text/javascript"> <!-- // RPG stats - logarithm based // v1.0 // by Wormopolis - www.wormocodes.com
var postRankStats=[ [0, ['Strength: 1','Dexterity: 1','Wisdom: 1','Charisma: 1']], //post count , [stats seperated by commas] [10, ['Strength: 2','Dexterity: 1','Wisdom: 1','Charisma: 2']], [20, ['Strength: 2','Dexterity: 2','Wisdom: 2','Charisma: 2']], [50, ['Strength: 3','Dexterity: 2','Wisdom: 2','Charisma: 3']], [100, ['Strength: 3','Dexterity: 3','Wisdom: 3','Charisma: 4']], [200, ['Strength: 4','Dexterity: 3','Wisdom: 3','Charisma: 4']], [500, ['Strength: 4','Dexterity: 4','Wisdom: 4','Charisma: 5']], [1000, ['Strength: 5','Dexterity: 4','Wisdom: 4','Charisma: 5']], [2000, ['Strength: 6','Dexterity: 5','Wisdom: 5','Charisma: 5']], [5000, ['Strength: 7','Dexterity: 6','Wisdom: 6','Charisma: 6']], [10000, ['Strength: 8','Dexterity: 7','Wisdom: 7','Charisma: 7']], [20000, ['Strength: 9','Dexterity: 8','Wisdom: 8','Charisma: 8']], [50000, ['Strength: 10','Dexterity: 9','Wisdom: 9','Charisma: 9']], [100000, ['Strength: 10','Dexterity: 10','Wisdom: 10','Charisma: 10']] //no comma last entry ];
//no need to edit below
(function (){if (pb_action.match(/(display|viewprofile|search2|pmview|calendarview)/)) { for (tds=document.getElementsByTagName('td'), tt=0; tt<tds.length; tt++) { if (tds[tt].width=='20%' && tds[tt].vAlign=='top' && tds[tt].innerHTML.match(/posts: (.*?)(\n?)</i)) { var pstcnt=parseInt(RegExp.$1.replace(/\,/g,'')); var mplnks=tds[tt].getElementsByTagName('a'), st=0; var statTable=document.createElement('table'); statTable.className='statsTable'; statTable.align='center'; statTable.insertRow(0); statheader= statTable.rows[0].insertCell(0); statheader.className='statsTableHeader'; statheader.colSpan="2"; statheader.innerHTML="RPG Stats"; for (schk=postRankStats.length-1; schk>=0; schk--) { if (pstcnt>postRankStats[schk][0]) { var statresults=postRankStats[schk][1]; for (ss=0; ss<statresults.length; ss++) { var statrow=statTable.insertRow(-1); statrow.insertCell(0); statrow.insertCell(0); statrow.cells[0].className = statrow.cells[1].className = 'statsTableCells'; statrow.cells[0].innerHTML=statresults[ss].split(':')[0]; statrow.cells[1].innerHTML=statresults[ss].split(':')[1]; } break; } } tds[tt].appendChild(statTable); } } } })(); //--> </script>
|
|
SuperJedi224
Not New Member
Posts: 10
SuperJedi224 said 0 great things
|
Post by SuperJedi224 on Sept 11, 2012 11:30:35 GMT -8
Thanks.
|
|
Bones
Code Helper
Posts: 131
Bones said 0 great things
|
Post by Bones on Sept 11, 2012 15:08:46 GMT -8
(先生) "You really are the one!" Sensei Wormo, what made you decide to encapsulate?
|
|
|
Post by Wormopolis on Sept 11, 2012 18:57:21 GMT -8
you did alright! I learned it by watching you!
that and firebug still wont let me step through unless its encapsulated. maybe a future version... but Im ok with how this is. reading up on it, it makes the variables inside sorta protected. which means I have a few older codes I should probably go back and rewrite.
|
|