vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   HP/MP/EXP (https://vborg.vbsupport.ru/showthread.php?t=31618)

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:

PHP Code:

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

in showthread.php

and under it put:

PHP Code:

// 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

:)

Quote:

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,

:)

Quote:

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


All times are GMT. The time now is 07:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01864 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete