Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-07-2000 Last Update: Never Installs: 0
 
No support by the author.

Ok, this is a suggestion a member came up with about this during the last few days. I help out on a vB, but have no idea if this could be implemented. For reference, what we're wanting to do is get an experience system that is based on post number and how long they've been registered.

Anyway, the EXP could be calculated like this:

[(posts³)×(days)]^0.5

And from this I got a simple but very efficient way to calculate the Level:

[(posts³)×(days)]^(1/7) = EXP^(1 / 3.5)

And then the post count would almost make sense as Hit Points!

Here's how it would look with a few of the users here (copied from that post I did yesterday evening):

Acmlm
Moderator
Super Knight
Level: 29
HP: 821
EXP: 137168
Registered: Oct 2000

Drex
Bard
Level: 7
HP: 40
EXP: 1102
Registered: Oct 2000

Doctor Q5
Master Surgeon
Level: 13
HP: 125
EXP: 8149
Registered: Oct 2000

cloud120122
Moogle
Level: 4
HP: 16
EXP: 181
Registered: Oct 2000

Coach
Moderator
Level: 27
HP: 697
EXP: 108863
Registered: Oct 2000

Phoenix
Moderator
Level: 32
HP: 1028
EXP: 192189
Registered: Oct 2000

It would take just 1 EXP to get to LV 1, about 11 EXP to go up to LV 2, 46 EXP for LV 3, 3162 EXP for LV 10, 147885 EXP for LV 30, 883883 EXP for LV 50 and exactly 10000000 EXP for LV 100 ... so that pretty much makes a lot of sense, no?

Yeah, it's a bit confusing, but is it possible?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-10-2000, 08:38 PM
Guest
 
Posts: n/a
Default

You guys are great! I'll see about getting something like this in place.
Reply With Quote
  #13  
Old 11-10-2000, 09:09 PM
Guest
 
Posts: n/a
Default

Cool! I see you're doing a roleplay thing huh? I'm sort of on the same boat
Reply With Quote
  #14  
Old 11-10-2000, 10:07 PM
Guest
 
Posts: n/a
Default

Something to that effect...

This is the error I'm getting though...

Fatal error: Call to unsupported or undefined function unixtojd() in /home/sites/site114/web/forums/showthread.php on line 235

I get the same thing with the original code posted and with the line that said looks better...
Reply With Quote
  #15  
Old 11-11-2000, 07:13 AM
Guest
 
Posts: n/a
Default

There must be something with your PHP version
Reply With Quote
  #16  
Old 11-11-2000, 01:32 PM
Guest
 
Posts: n/a
Default

Coach - if you're running PHP3, then you won't be able to use unixtojd(). It may not even work if you're running PHP4 - you must have the Calendar extensions compiled into your PHP installation.
Reply With Quote
  #17  
Old 11-11-2000, 03:26 PM
Guest
 
Posts: n/a
Default

Try this then. Slightly adapted from Wayne's code:

Look for:
$userpostcount=$userinfo[posts];

After this put:
$days = (time()-$userinfo[joindate])/86400;
$userexp = round(pow(((pow($userpostcount,3))*($days)),0.5));
$userlevel = round(pow($userexp,(1 / 3.5)));
Reply With Quote
  #18  
Old 11-11-2000, 08:57 PM
Guest
 
Posts: n/a
Default

Thanks Ed.

That is what I came up with last night after playing with it for a while.

Sorry about the function. I downloaded the indexed manual so I know which versions different functions are introduced in.
Reply With Quote
  #19  
Old 11-13-2000, 10:02 PM
Guest
 
Posts: n/a
Default

Yep, it's working perfectly now!

By the way, I've been working on some other hack, and it involves saving two new Yes/No values on the user profile. How can this be done? (just adding the "valuename=$valuename" thing on the "$DB_site->query("UPDATE user SET") line resulted in a database error)
Reply With Quote
  #20  
Old 12-08-2000, 04:48 AM
Guest
 
Posts: n/a
Default

I have tried using Ed's code and added it into my vB. everything works fine. but somehow when i registered a new member and started posting with that one, the $userlevel and $userexp only showed 0 ... even after 4 posts. Any ideas?

[extra] Ohhh, Is it because in the code for EXP , it takes into account of the number of days you have been registered? and since the new member only just registered, the exp rises slowly? If thats the case ! Great! amazing ! This 'kinda' prevents posters to keep posting nonsense just to get exp ...! [/extra]

[Edited by ryany on 12-08-2000 at 02:12 AM]
Reply With Quote
  #21  
Old 02-04-2001, 12:37 PM
Guest
 
Posts: n/a
Default

this seems to be what i need as well.. does it work with 1.1.5 ?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05097 seconds
  • Memory Usage 2,264KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete