PDA

View Full Version : Mini-Hack -- HP/MP/EXP for VB 2.x.x


Dunny
Sun 28th Oct '01, 5:16am
updated with better instructions, sorry for any confusion I only tested on VB 2.0.0

Dunny
Sun 28th Oct '01, 5:17am
screenshot

Russell
Sun 28th Oct '01, 5:37am
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

Mega
Sun 28th Oct '01, 7:39am
HP is health Points and MP is Magic Points

MW[MWGN]
Sun 28th Oct '01, 8:29am
How are those points calculated? Or you justs make it up?

Mega
Sun 28th Oct '01, 9:44am
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
Sun 28th Oct '01, 10:06am
I was going to do something like this myself, but this saves me some trouble :)

nuno
Sun 28th Oct '01, 10:15am
nice hack
tx

UOSaint
Sun 28th Oct '01, 10:18am
Which part of the postbit section to insert pls?

and

Which part of showthread.php to insert?


thanks

Dunny
Sun 28th Oct '01, 11:03am
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?

Chen
Sun 28th Oct '01, 11:07am
Maybe you can enter your username here (http://www.vbulletin.com/members/forums.php), dunny?

UOSaint
Sun 28th Oct '01, 11:34am
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
Sun 28th Oct '01, 12:01pm
Does anyone know where in showthread.php is this information entered? Thanks!

WEBDosser
Sun 28th Oct '01, 12:09pm
Would be a great hack if it worked with 2.0.3 but i have tested it and it don't. :(

snyx
Sun 28th Oct '01, 12:21pm
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
Sun 28th Oct '01, 12:30pm
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.

neogeniseva
Sun 28th Oct '01, 12:36pm
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?

nuno
Sun 28th Oct '01, 1:05pm
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

nuno
Sun 28th Oct '01, 1:22pm
http://www.vbulletin.com/forum/showthread.php?threadid=31618

The Realist
Sun 28th Oct '01, 1:50pm
Possibly a working version for 2.0.3:

http://www.vbulletin.com/forum/showthread.php?threadid=31618

:)

Dunny
Sun 28th Oct '01, 3:21pm
if you want your bars to appear vertical try adding the below in your postbit instead,

hofan41
Sun 28th Oct '01, 3:50pm
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
Sun 28th Oct '01, 4:13pm
make it work 4 vb 2.0.3 plz

WEBDosser
Sun 28th Oct '01, 5:42pm
It does now take a look here (http://www.thecoolspot.co.uk/forums/)

And here is the file:

F_O_G
Sun 28th Oct '01, 6:11pm
great hack, i complete it all in one try

look :)

Steve Machol
Sun 28th Oct '01, 6:21pm
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
Sun 28th Oct '01, 6:24pm
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
Sun 28th Oct '01, 6:28pm
Perhaps you could at least give me the URL to that board. I asked once before but you declined.

TheComputerGuy
Sun 28th Oct '01, 6:36pm
Steve get him...

You know I bet the vertical thing could be used for the stars hack also....Hmmm...

***runs off to try it

neogeniseva
Sun 28th Oct '01, 6:55pm
how would i add more user levels... or have it so that the number of levels are unlimated...

The Realist
Sun 28th Oct '01, 8:55pm
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
Mon 29th Oct '01, 12:13am
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
Mon 29th Oct '01, 1:53am
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
Mon 29th Oct '01, 2:24am
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
Mon 29th Oct '01, 2:37am
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
Mon 29th Oct '01, 3:54am
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
Mon 29th Oct '01, 10:09am
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>

Chen
Mon 29th Oct '01, 11:16am
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
Mon 29th Oct '01, 2:15pm
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!

Mega
Mon 29th Oct '01, 2:44pm
Yeah... i've been working whole day figuring how all those things are being calculated.....

opensource r0x0rz :D