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)
-   -   Mini-Hack -- HP/MP/EXP for VB 2.x.x (https://vborg.vbsupport.ru/showthread.php?t=31575)

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

Quote:

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

Code:

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

Code:

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 and do what the page says. :)

merltock 10-29-2001 04:15 PM

Quote:

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 10-29-2001 04:44 PM

Yeah... i've been working whole day figuring how all those things are being calculated.....

opensource r0x0rz :D


All times are GMT. The time now is 01:23 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.01094 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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