PDA

View Full Version : HP/MP/EXP for VB 2.0.3


nuno
Sun 28th Oct '01, 1:16pm
REDOCUMENTED

The Realist
Sun 28th Oct '01, 1:49pm
Were does the showthread.php and Postbit info go?

:)

WEBDosser
Sun 28th Oct '01, 2:17pm
Mmmm. i just reinstalled it because you said it works?. well it still don't work :( next time please post a link we can see it working in.

Thanx

The Realist
Sun 28th Oct '01, 2:18pm
Same here, it does not work :mad: :confused:

WEBDosser
Sun 28th Oct '01, 2:45pm
MMm. BUMP.

nuno
Sun 28th Oct '01, 2:54pm
redownload zip :rolleyes:

PS:sorry guys

Pingu
Sun 28th Oct '01, 2:59pm
Well, got this one working, and here's how I did it:

Open admin/functions.php

Find (around line 170):
$post[joindate]=vbdate($registereddateformat,$post[joindate]);


And add the entire "//START GOBLINS USER LEVELS" under that line and above this line:
if ($post[showemail] and $displayemails) {

That should work...

WEBDosser
Sun 28th Oct '01, 3:02pm
Thankyou Thankyou Thankyou:D:D :D :)

Mike Gaidin
Sun 28th Oct '01, 3:20pm
I know this may seem a stupid question, so please forgive me, but can I add more levels? How would I do it? I think I know, but I want to be sure.

Dunny
Sun 28th Oct '01, 3:24pm
just follow the pattern mate, i added one level so you can see

$level = "";
$level1 = '1';
$level2 = '2';
$level3 = '3';
$level4 = '4';
$level5 = '5';
$level6 = '6';
if ($post[posts] > 900 )
{ $level .= $level6; }
elseif ($post[posts] > 800 )
{ $level .= $level5; }
elseif ($post[posts] > 400 )
{ $level .= $level4; }
elseif ($post[posts] > 200 )
{ $level .= $level3; }
elseif ($post[posts] > 100 )
{ $level .= $level3; }
else // ($post[posts] > 0)
{ $level .= $level1; }

merltock
Sun 28th Oct '01, 3:28pm
I noticed that this hack was in percent...which makes it look very odd when you have something like 1000posts+ :)

So I wonder could you make it a little more similar to the hack at allsquare.net..

Thanks :D

Maverick1236
Sun 28th Oct '01, 6:17pm
for some reason the MP calculates-but the bar doesnt move

the other 2 bars work fine

TheComputerGuy
Sun 28th Oct '01, 6:33pm
I hope this works in 2.2, if it does I luv ya :)

DarkReaper
Sun 28th Oct '01, 6:37pm
What does this do? What's MP/HP/EXP stand for?

Knoman
Mon 29th Oct '01, 2:01am
The MP was stolen from my forums. www.allsquare.net/forums
i gave meltek (or what ever his name was) the code to use on his forums. i told him NOT to give it out. Moderators, please delete this thread.

Mega
Mon 29th Oct '01, 2:37am
It is not the same hack..

yours works with numbers for HP. MP and EX this one works with percentage.

Knoman
Mon 29th Oct '01, 2:39am
The MP code is EXACTLY mine. Just because you put a % in the template does not make it original!

UOSaint
Mon 29th Oct '01, 2:44am
The hack belongs to Knoman.

A guy named Dunny posted it though is for version 2.0.0
We did some editing to make it work for version 2.0.3,
but instead showed in percentage.

Well since the Dunny posted it without permission,
I've alreay deleted my post containing the download to the 2.0.3 version.

Mega
Mon 29th Oct '01, 3:30am
What I'm saying is that the percentage thing wont work correct..

dunno much about vBulletin, but I do know it is possible to get percentages over 100.

Dunny
Mon 29th Oct '01, 3:58am
I wrote the bleeding thing, I seen the request for it on Hololith forums so I just went by the Picture, the only part of the hack from the original was the MP part, if this bothers you so much Im sure it can be changed to something else!

I have never spoke to you before, and seen as how you never posted your hack I did a similiar one and posted that!

Seifer
Mon 29th Oct '01, 4:46am
My MP is a LOT different...just a number equal to the number of days you've been registered. I made it by just doing this:

Find:

$postsperday = sprintf("%.2f",($post[posts] / $jointime));

in showthread.php

and under it put:

// MP

$past = date($post[joindate]);

$present = date(time());

$mp = floor(($present - $past) / (3600 * 24));

// STOP MP

Then, in the postbit template I put "MP: $mp" (minus quotes of course) under HP...and HP is just posts...no fancy bar. My board is quasi ghetto ;)

That may seem easy for some of you people, but with my limited PHP skill that took me forever!!!

Mega
Mon 29th Oct '01, 6:43am
And everybody that have played games with HP,MP and EXP know EXP is calculated using MP and HP...
So i guess MP * HP / 100 is the most simple way os calculating it.


I dont think you can call this stolen or anything..

Dunny
Mon 29th Oct '01, 8:09am
its not stolen matey, he has obviously gave his hack to someone and he thought it was me....

I wrote the hack going by his pic to share it on this forum! ;)

UOSaint
Mon 29th Oct '01, 8:16am
Ok , guess all a misunderstanding then
:D

back to the drawing board.

Need to find a way so that it doesn't show
percentage on version 2.0.3

cos if the post is high the bar is max out
and the percentage exceeds 100. :mad:

anyone with any ideas?

The Realist
Mon 29th Oct '01, 8:26am
Please, there gota be some smart ass somewere LoL

:)

Originally posted by UOSaint
Ok , guess all a misunderstanding then
:D

back to the drawing board.

Need to find a way so that it doesn't show
percentage on version 2.0.3

cos if the post is high the bar is max out
and the percentage exceeds 100. :mad:

anyone with any ideas?

Mega
Mon 29th Oct '01, 9:14am
Knoman: I did some searching on your forum and I got almost all of the code.
It is just posted all over the forum.

So ANYONE could have taken it and used it...

I got everything BUT MaxHP from the forums..

Knoman
Mon 29th Oct '01, 9:51am
BAH! The codes were posted there to get ideas from my members. Ya know what? If you can't beat them, join them. I've always been an open sourse kinda guy. I'll post my version of the code later today. Still, it would've been nice if someone asked me first.:rolleyes:

HairyMonster
Mon 29th Oct '01, 10:15am
This is one pretty neat little hack and I would like to say thanks to both knoman and dunny :) and thanks for releasing it to the public.

HM

The Realist
Mon 29th Oct '01, 10:54am
Well I am asking nicely. Please will you post your version for us mear mortals to have a go.

Thanks M8,

:)

Originally posted by Knoman
BAH! I'll post my version of the code later today. Still, it would've been nice if someone asked me first.:rolleyes:

Mega
Mon 29th Oct '01, 11:07am
yeah.. that would be best...

I still haven't figured out how to calculate the MaxHP.. so that will still be a suprise

Chen
Mon 29th Oct '01, 11:12am
What would really be best is if Dunny, merltock, Mega and Seifer go here (http://www.vbulletin.com/members/forums.php) and do what it says.

Mega
Mon 29th Oct '01, 12:04pm
Ehh I dont own a copy of vBulletin (nor have I got an illegal version)
I just like to puzzle and i'm trying to learn PHP on the way..

neogeniseva
Mon 29th Oct '01, 1:22pm
Originally posted by Knoman
BAH! The codes were posted there to get ideas from my members. Ya know what? If you can't beat them, join them. I've always been an open sourse kinda guy. I'll post my version of the code later today. Still, it would've been nice if someone asked me first.:rolleyes:
you would be my god if i could get the code:D

merltock
Mon 29th Oct '01, 2:06pm
Firefly: i've done it..:D

Chen
Mon 29th Oct '01, 2:08pm
Thanks merltock. :)

Team36
Tue 30th Oct '01, 12:29am
Dunny wrote this code for hololith, it was a request from NanoEntity as i see it on his forum.

Idea was taken from square forums. : )

Knoman
Tue 30th Oct '01, 12:31am
well... i released my FULL hack, if anyones interested:rolleyes:

http://vbulletin.com/forums/showthread.php?threadid=31775