vBulletin Modifications

RPG Stats - Adding to Vb3.6.4

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 02-21-2007, 10:41 AM   #1
vB Newbie
Join Date: Feb 2007
ZeeKee is on a distinguished road

Default RPG Stats - Adding to Vb3.6.4
Version: 3.6.x
Hack Category: Mini Mods

Hi!

I'm trying to insert a RPG mini mod in my vb forum, but I have a old code:

You must first be a registered member to view any code.
I need know where can I insert "// ## Start RPG Stats Function ## //..." because on 3.6.4 there aren't the file: "include/functions_showthread.php".

The moddification of the template runs very well but stats are always on 0. Because I can't instert the mod text on "functions_showthread.php" file.

Please help me!

P.D. Im spanish, and my english is very bad!

Thanks!:alien:




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02-28-2007, 12:04 PM   #2
vB Rookie
Join Date: Feb 2007
Location: Puerto Rico
mastmetal is on a distinguished road

Default

when they help you, they help me.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-28-2007, 02:14 PM   #3
Michael Biddle
Staff
Michael Biddle's Avatar
Join Date: Feb 2005
Real Name: Michael Biddle
Location: Anaheim
Michael Biddle is on a distinguished road

Default

*might* be a part of a hook, showthread_ what ever, youd have to test it though. not sure if this would work but its a shot
__________________
Support will ONLY be offered through forums
Michael Biddle / vBHackers.com
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-27-2007, 07:50 AM   #4
vB Newbie
Join Date: Jun 2007
zikon is on a distinguished road

Default

i know i'm posting in an old thread but i am trying to get this mod. and i heard from another site that it should go into the includes/functions_newpost.php

but i cant get it to work, i think the code is old. can anyone remake the code for v3.6.5??




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-27-2007, 01:17 PM   #5
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

By the looks of things it's probably for vb3.0. Which RPG are you using?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-27-2007, 02:48 PM   #6
vB Newbie
Join Date: Jun 2007
zikon is on a distinguished road

Default

this is the code i am using, and it wont work.

i put that into includes/functions_newpost.php

EDIT: it told me to put it after this line.
$show['messageicon'] = iif($post['iconpath'], true, false);
but i couldnt find that line, i found one a little different
$show['messageicon'] = iif($newpost['iconpath'], true, false);

// ## Start RPG Stats Function ## //
$rpglvl = str_replace(array(' ', ',', '.'), '', $post[posts]);
$level = pow (log10 ($rpglvl), 3);
$ep = floor (100 * ($level - floor ($level)));
$showlevel = floor ($level + 1);
$hpmulti =round ($postsperday / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}

$maxhp = $level * 25 * $hpmulti;
$hp= $postsperday / 4;
if ($hp >= 1) {
$hp= $maxhp;
} else {
$hp= floor ($hp * $maxhp);
}
$hp= floor ($hp);
$maxhp= floor ($maxhp);
if ($maxhp <= 0) {
$zhp = 1;
} else {
$zhp = $maxhp;
}
$hpf= floor (100 * ($hp / $zhp)) - 1;

$maxmp= ($jointime * $level) / 5;
$mp= $rpglvl / 3;
if ($mp >= $maxmp) {
$mp = $maxmp;
}
$maxmp = floor ($maxmp);
$mp = floor ($mp);
if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
$mpf= floor (100 * ($mp / $zmp)) - 1;

// ## End RPG Stats Function ## //

and i added this to the postbit_legacy

<br>
<div class="smallfont">Level: $showlevel<br />
HP: $hp / $maxhp<br />
MP: $mp / $maxmp<br />
EXP: $ep% <br />
</div>

it shows up on the post, but the values are blank.
this is what i see




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are you adding content daily? Rex Growing Your vB Forum 3 06-05-2006 01:33 PM
Top 5 stats B|0$ vBulletin Modification Requests 2 04-30-2005 11:15 AM
RPG Inferno Full XtAzY vBulletin Modification Requests 1 04-19-2005 05:29 PM
RPG Integration with vBulletin hack pippin vBulletin Modification Requests 0 06-26-2004 07:42 PM


All times are GMT -3. The time now is 10:31 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)