PDA

View Full Version : HP/MP/EXP


nuno
10-27-2001, 10:00 PM
REDOCUMENTED

The Realist
10-28-2001, 03:49 PM
Were does the showthread.php and Postbit info go?

:)

WEBDosser
10-28-2001, 04:17 PM
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
10-28-2001, 04:18 PM
Same here, it does not work :mad: :confused:

WEBDosser
10-28-2001, 04:45 PM
MMm. BUMP.

nuno
10-28-2001, 04:54 PM
redownload zip :rolleyes:

PS:sorry guys

Pingu
10-28-2001, 04:59 PM
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
10-28-2001, 05:02 PM
Thankyou Thankyou Thankyou:D:D :D :)

Mike Gaidin
10-28-2001, 05:20 PM
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
10-28-2001, 05:24 PM
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
10-28-2001, 05:28 PM
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
10-28-2001, 08:17 PM
for some reason the MP calculates-but the bar doesnt move

the other 2 bars work fine

TheComputerGuy
10-28-2001, 08:33 PM
I hope this works in 2.2, if it does I luv ya :)

DarkReaper
10-28-2001, 08:37 PM
What does this do? What's MP/HP/EXP stand for?

Knoman
10-29-2001, 04:01 AM
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
10-29-2001, 04:37 AM
It is not the same hack..

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

Knoman
10-29-2001, 04:39 AM
The MP code is EXACTLY mine. Just because you put a % in the template does not make it original!

UOSaint
10-29-2001, 04:44 AM
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
10-29-2001, 05:30 AM
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
10-29-2001, 05:58 AM
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
10-29-2001, 06:46 AM
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
10-29-2001, 08:43 AM
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
10-29-2001, 10:09 AM
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
10-29-2001, 10:16 AM
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
10-29-2001, 10:26 AM
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
10-29-2001, 11:14 AM
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
10-29-2001, 11:51 AM
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
10-29-2001, 12:15 PM
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
10-29-2001, 12:54 PM
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
10-29-2001, 01:07 PM
yeah.. that would be best...

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

Admin
10-29-2001, 01:12 PM
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
10-29-2001, 02:04 PM
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..

Neo
10-29-2001, 03:22 PM
[QUOTE]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:

merltock
10-29-2001, 04:06 PM
Firefly: i've done it..:D

Admin
10-29-2001, 04:08 PM
Thanks merltock. :)

Team36
10-30-2001, 02:29 AM
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
10-30-2001, 02:31 AM
well... i released my FULL hack, if anyones interested:rolleyes:

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

|DarkManX|
11-04-2001, 10:34 PM
Originally posted by Knoman
well... i released my FULL hack, if anyones interested:rolleyes:

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


i'm registered at vbulletin.com, but it says i don't have permission to view this thread.....

Reeve of shinra
11-05-2001, 12:26 AM
All the hacks were moved to vb.org.

You can find the thread in question here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=31775)