View Full Version : Mini-Hack -- HP/MP/EXP for VB 2.x.x
Dunny
10-27-2001, 10:00 PM
updated with better instructions, sorry for any confusion I only tested on VB 2.0.0
Dunny
10-28-2001, 07:17 AM
screenshot
Russell
10-28-2001, 07:37 AM
OK, so I assume, EX = experience... what do the others stand for.
man I feel stupid.
http://buffy.inscifi.net/forums/images/smilies/chicken.gif
HP is health Points and MP is Magic Points
MW[MWGN]
10-28-2001, 10:29 AM
How are those points calculated? Or you justs make it up?
looking at the code it calculates it using the time since you joined and the number of posts you have.
MP = jointime / level
(level depends on the number of posts)
HP = posts / 4
EX = (MP * HP) / 100
Pingu
10-28-2001, 12:06 PM
I was going to do something like this myself, but this saves me some trouble :)
UOSaint
10-28-2001, 12:18 PM
Which part of the postbit section to insert pls?
and
Which part of showthread.php to insert?
thanks
Dunny
10-28-2001, 01:03 PM
i dont know if it goes into showthread.php with VB 2.0.3, I tested it on VB 2.0.0 and it worked alright, maybe someone can confirm?
Admin
10-28-2001, 01:07 PM
Maybe you can enter your username here (http://www.vbulletin.com/members/forums.php), dunny?
UOSaint
10-28-2001, 01:34 PM
Originally posted by Dunny
i dont know if it goes into showthread.php with VB 2.0.3, I tested it on VB 2.0.0 and it worked alright, maybe someone can confirm?
ok,
just let me know which past of postbit and showthread u add in
the code and I'll test it out.
:D
Gamingforce
10-28-2001, 02:01 PM
Does anyone know where in showthread.php is this information entered? Thanks!
WEBDosser
10-28-2001, 02:09 PM
Would be a great hack if it worked with 2.0.3 but i have tested it and it don't. :(
could someone please explain a little more clearly what this hacks bases its points on, and why have it?
sorry, im a little skecthy right now :D
snyx
UOSaint
10-28-2001, 02:30 PM
Originally posted by snyx
could someone please explain a little more clearly what this hacks bases its points on, and why have it?
sorry, im a little skecthy right now :D
snyx
It's more for gaming forums,
where they adds in stuffs for Hp (hitpoints) Mp ( int/mana)
Exp (experience points)
Mp = jointime / level (level depends on the number of posts)
HP = posts / 4
Exp = (MP * HP) / 100
so it based it points on the number of posts
and the different level u specififed accoding to the post.
cool hack, i am glad someone finally ago enought enery to make it and post it get negtive HP / MP like without taking post counts or Exp down?
Originally posted by WEBDosser
Would be a great hack if it worked with 2.0.3 but i have tested it and it don't. :(
yes it does
i'll fix it and post it in a new thread :D
<a href="http://www.vbulletin.com/forum/showthread.php?threadid=31618" target="_blank">http://www.vbulletin.com/forum/showt...threadid=31618</a>
The Realist
10-28-2001, 03:50 PM
Possibly a working version for 2.0.3:
http://www.vbulletin.com/forum/showthread.php?threadid=31618
:)
Dunny
10-28-2001, 05:21 PM
if you want your bars to appear vertical try adding the below in your postbit instead,
hofan41
10-28-2001, 05:50 PM
Dunny: The picture you included had it set up like HP: 400/800 . Your hack doesn't have a current/max system setup, since the table width of each bar is 90%. Or does it?
fireman
10-28-2001, 06:13 PM
make it work 4 vb 2.0.3 plz
WEBDosser
10-28-2001, 07:42 PM
It does now take a look here (http://www.thecoolspot.co.uk/forums/)
And here is the file:
F_O_G
10-28-2001, 08:11 PM
great hack, i complete it all in one try
look :)
Steve Machol
10-28-2001, 08:21 PM
F_O_G,
Once again could you go to the link in the last line of my sig and enter your username. This way we'll know you are a licensed customer. Thanks.
F_O_G
10-28-2001, 08:24 PM
oh sorry for the delay, but i'm still waiting to get that information from a friend of mine (it's his board)
are you going to ban me?
Steve Machol
10-28-2001, 08:28 PM
Perhaps you could at least give me the URL to that board. I asked once before but you declined.
TheComputerGuy
10-28-2001, 08:36 PM
Steve get him...
You know I bet the vertical thing could be used for the stars hack also....Hmmm...
***runs off to try it
how would i add more user levels... or have it so that the number of levels are unlimated...
The Realist
10-28-2001, 10:55 PM
I have done the following:
//START GOBLINS USER LEVELS
$level = "";
$level1 = '1';
$level2 = '2';
$level3 = '3';
$level4 = '4';
$level5 = '5';
$level6 = '6';
$level7 = '7';
$level8 = '8';
$level9 = '9';
$level10 ='10';
$level11 = '11';
$level12 = '12';
$level13 = '13';
$level14 = '14';
$level15 = '15';
$level16 = '16';
$level17 = '17';
$level18 = '18';
$level19 = '19';
$level20 = '20';
$level21 = '21';
$level22 = '22';
$level23 = '23';
$level24 = '24';
$level25 = '25';
$level26 = '26';
$level27 = '27';
$level28 = '28';
$level29 = '29';
$level30 = '30';
if ($post[posts] > 5000 )
{ $level .= $level30; }
elseif ($post[posts] > 4800 )
{ $level .= $level29; }
elseif ($post[posts] > 4600 )
{ $level .= $level28; }
elseif ($post[posts] > 4300 )
{ $level .= $level27; }
elseif ($post[posts] > 4000 )
{ $level .= $level26; }
elseif ($post[posts] > 3800 )
{ $level .= $level25; }
elseif ($post[posts] > 3700 )
{ $level .= $level24; }
elseif ($post[posts] > 3500 )
{ $level .= $level23; }
elseif ($post[posts] > 3400 )
{ $level .= $level22; }
elseif ($post[posts] > 3300 )
{ $level .= $level21; }
elseif ($post[posts] > 3200 )
{ $level .= $level20; }
elseif ($post[posts] > 3000 )
{ $level .= $level19; }
elseif ($post[posts] > 2800 )
{ $level .= $level18; }
elseif ($post[posts] > 2600)
{ $level .= $level17; }
elseif ($post[posts] > 2400 )
{ $level .= $level16; }
elseif ($post[posts] > 2200 )
{ $level .= $level15; }
elseif ($post[posts] > 1900 )
{ $level .= $level14; }
elseif ($post[posts] > 1400)
{ $level .= $level13; }
elseif ($post[posts] > 1200 )
{ $level .= $level12; }
elseif ($post[posts] > 1000 )
{ $level .= $level11; }
elseif ($post[posts] > 900 )
{ $level .= $level10; }
elseif ($post[posts] > 700)
{ $level .= $level9; }
elseif ($post[posts] > 500 )
{ $level .= $level8; }
elseif ($post[posts] > 300 )
{ $level .= $level7; }
elseif ($post[posts] > 100 )
{ $level .= $level6; }
elseif ($post[posts] > 80)
{ $level .= $level5; }
elseif ($post[posts] > 50 )
{ $level .= $level4; }
elseif ($post[posts] > 30 )
{ $level .= $level3; }
elseif ($post[posts] > 10 )
{ $level .= $level2; }
elseif ($post[posts] > 0)
{ $level .= $level1; }
But what is not working for me is the colours of the bars are staying fully up to max with high posts.
Also I have lost my text that shows how many posts a user has, anyone can tell me how to put it back ploease.
Thanks,
:)
UOSaint
10-29-2001, 02:13 AM
The bar is showing Max because there isn't a calculation to determine the max hp, mp and exp for version 2.0.3
It shows in percentage.
As to the number of post missing.
can you post it on here where you added the code?
Thanks
Knoman
10-29-2001, 03:53 AM
THIS IS OUTRAGEOUS!!!
He posted this hack without my permission. I am the creator of this hack and I told him explicitly not to give it out. I only gave it to him to use for his forums.
my forums are
www.allsquare.net/forums
I go by the name Avalon there. Please, Moderators, delete this thread.
Dakota
10-29-2001, 04:24 AM
Well... Knoman, great hack, I love it. I just gotta get it working better with users with high posts, and also implement some little moderator, administrator stats. :)
Knoman
10-29-2001, 04:37 AM
That problem lies on his half of the hack. The only code of mine that he posted would be the MP part. My Leveling system is done automatically through a logarithm rather than doing it manually like his.
Dunny
10-29-2001, 05:54 AM
Originally posted by Knoman
THIS IS OUTRAGEOUS!!!
He posted this hack without my permission. I am the creator of this hack and I told him explicitly not to give it out. I only gave it to him to use for his forums.
my forums are
www.allsquare.net/forums
I go by the name Avalon there. Please, Moderators, delete this thread.
No dont delete this thread, I dont even know who you are :D
You never game me nothing, I seen a picture of this hack over at Hololith and some part of the code and then I took it from there.
Dakota
10-29-2001, 12:09 PM
I don't like the leveling system, I changed it so its also done by a logarithm on my forum too. I just can't get the administrator stats to work.
I tried
if ($bbuserinfo[usergroupid] = 6) {
$level = 100
$hp = 1000
$mp = 1000
$exp = 1000
}
else
{
.
.
.
}
It looks to me like it should work, but where should I put it?
to put the post count back in, put this in the postbit template
Posts: $post[posts]<br>
Admin
10-29-2001, 01:16 PM
F_O_G, please do what Steve asked. And yes, I will ban you if you don't comply.
hofan41, please go here (http://www.vbulletin.com/members/forums.php) and do what the page says. :)
merltock
10-29-2001, 04:15 PM
Originally posted by Knoman
THIS IS OUTRAGEOUS!!!
He posted this hack without my permission. I am the creator of this hack and I told him explicitly not to give it out. I only gave it to him to use for his forums.
my forums are
www.allsquare.net/forums
I go by the name Avalon there. Please, Moderators, delete this thread.
Knoman/avalon: I think the person you are referring to is me. You gave me the source code yesterday, but I certainely did not post it here. Cause you told me not to...:D
btw if you released the code it would be absolutely great. :) OpenSource ROX!
Yeah... i've been working whole day figuring how all those things are being calculated.....
opensource r0x0rz :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.