[ABD] HP/MP/EXP Level Bar MOD [0.0.1]

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Kendy.9xvn
Registered User
Posts: 14
Joined: Mon Dec 28, 2009 4:20 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Kendy.9xvn » Mon Jan 04, 2010 4:14 pm

Nice mod! I have waited this for along time ^^

starwar
Registered User
Posts: 99
Joined: Tue Nov 21, 2006 7:22 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by starwar » Thu Jan 14, 2010 5:12 am

Where can download this mod?
All download link were dead.

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Thu Jan 14, 2010 9:23 am

starwar wrote:Where can download this mod?
All download link were dead.
download link works without problems

starwar
Registered User
Posts: 99
Joined: Tue Nov 21, 2006 7:22 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by starwar » Thu Jan 14, 2010 2:39 pm

Download Link 1: http://www.teskilatforum.net/resources/file/39
Download Link 2: http://www.esmerozcan.net/resources/file/123


Both link don't work for me.

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Thu Jan 14, 2010 3:25 pm

starwar wrote:Download Link 1: http://www.teskilatforum.net/resources/file/39
Download Link 2: http://www.esmerozcan.net/resources/file/123


Both link don't work for me.
hmm, i have re-upload for you (:

http://www.mediafire.com/?nxnmiuczyjm

starwar
Registered User
Posts: 99
Joined: Tue Nov 21, 2006 7:22 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by starwar » Thu Jan 14, 2010 7:29 pm

Thank you,it work fine with 3.0.6

Trokal
Registered User
Posts: 399
Joined: Fri Oct 23, 2009 5:13 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Trokal » Sat Jan 30, 2010 5:34 pm

when is this going to be released?
thanks

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Sat Jan 30, 2010 11:26 pm

Trokal wrote:when is this going to be released?
thanks
viewtopic.php 100%
memberlist.php 65%
language and styles 80%

kevin90
Registered User
Posts: 11
Joined: Mon Feb 08, 2010 3:40 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by kevin90 » Mon Mar 01, 2010 7:12 am

can u show me calculation post to up level ?

NguyTieuNhan
Registered User
Posts: 96
Joined: Fri Nov 21, 2008 12:31 am

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by NguyTieuNhan » Fri Mar 05, 2010 10:58 am

Add star with level:
Open viewtopic.php find:

Code: Select all

  //
   // Level Bar 0.0.1 [ www.TeskilatForum.neT ] - Start
   //

   /* Determine Level
   *
   * A users level is determined by their total number of posts.
   * We use a nice mathmatical formula to translate a post count
   * into a level.
   * Note, a user with zero posts is level 0
   *
   */
   
   if($user_cache[$poster_id]['posts'] < 1)
   {
         $level_level = 0;
   }
   else
   {
         $level_level = floor( pow( log10( $user_cache[$poster_id]['posts'] ), 3 ) ) + 1;
   }

   /* Determine HP
   *
   * HP is based on user activity.
   * Max HP is based on the users level, and will be the same for
   * all users of the same level.
   *
   * Current HP is based on the users posts per day.
   * The higher the users posts per day (ppd), the more hp
   * they will have. A user with average ppd (as set below)
   * will have 50% of their hp. As a user goes over the average
   * ppd, they will have more hp, but the gains will lessen
   * as the users ppd goes up. This makes it difficult, but not
   * impossible to have 100% hp.
   *
   * For users with under the average ppd, they will have
   * hp equal to 1/2 the percentage their ppd is of average.
   * ie- a user with 2.5 ppd, and an average ppd of 5
   * will have 25% hp.
   *
   * Users who miraculously manage to get higher than 100%
   * of their max health. (by posting far more than average)
   * will get a bonus to their max hp.
   *
   * Note that a user with a level of zero, has 0 / 0 hp.
   *
   */

   /*
   * This value determines what the 'average' posts per day is
   * Users above this value will have more hp, and users below
   * will have less. A user with exactly this posts per day
   * will have 50% of his max hp.
   *
   * This variable should NOT be zero.
   * You may set this to a decimal amount (eg 5.1, 2.35)
   */
      $level_avg_ppd = 5;

   /*
   * this value sets how hard it is to achieve 100%
   * hp. The higher you set it, the harder it is to
   * get full hp.
   *
   * to judge how high to set it, a user must have
   * posts per day equal to the $level_avg_ppd plus
   * the number set below.
   *
   * This should NOT be zero.
   */
      $level_bonus_redux = 5;

   /*
   * We need to calculate the user's
   * posts per day because it's not done for us,
   * unlike in profile.php
   */
     $level_user_ppd = ($user_cache[$poster_id]['posts'] / max(1, round( ( time() - $user_cache[$poster_id]['user_regdate'] ) / 86400 )));

   if($level_level < 1)
   {
         $level_hp = '0 / 0';
         $level_hp_percent = 0;
   }
   else
   {
         $level_max_hp = floor( (pow( $level_level, (1/4) ) ) * (pow( 10, pow( $level_level+2, (1/3) ) ) ) / (1.5) );
   
         if($posts_per_day >= $level_avg_ppd)
         {
               $level_hp_percent = floor( (.5 + (($level_user_ppd - $level_avg_ppd) / ($level_bonus_redux * 2)) ) * 100);
         }
         else
         {
               $level_hp_percent = floor( $level_user_ppd / ($level_avg_ppd / 50) );
         }
   
         if($level_hp_percent > 100)
         {
               //Give the User bonus max HP if they have more than 100% hp
               $level_max_hp += floor( ($level_hp_percent - 100) * pi() );
               $level_hp_percent = 100;
         }
         else
         {
               $level_hp_percent = max(0, $level_hp_percent);
         }
   
         $level_cur_hp = floor($level_max_hp * ($level_hp_percent / 100) );
   
         //Be sure that a user has no more than max
         //and no less than zero hp.
         $level_cur_hp = max(0, $level_cur_hp);
         $level_cur_hp = min($level_max_hp, $level_cur_hp);
   
         $level_hp = $level_cur_hp . ' / ' . $level_max_hp;
   }


   /* Determine MP
   *
   * MP is calculated by how long the user has been around
   * and how often they post.
   *
   * Max MP is based on level, and increases with level
   * Each post a user makes costs them mp,
   * and a user regenerates mp proportional to how
   * many days they have been registered
   *
   */

   //Number of days the user has been at the forums.
   $level_user_days = max(1, round( ( time() - $user_cache[$poster_id]['user_regdate'] ) / 86400 ));

   //The mp cost for one post.
   //Raising this value will generally decrease the current
   // mp for most posters.
   //This may be set to a decimal value (eg, 2, 2.1, 3.141596)
   //This should NOT be set to 0
   $level_post_mp_cost = 1;

   //This determines how much mp a user regenerates per day
   //Raising this value will generally increase the current
   // mp for most posters.
   //This may be set to a decimal value (eg, 3, 3.5, 2.71828)
   //This should NOT be set to 0
   $level_mp_regen_per_day = 4;

   if($level_level < 1)
   {
         $level_mp = '0 / 0';
         $level_mp_percent = 100;
   }
   else
   {
         $level_max_mp = floor( (pow( $level_level, (1/4) ) ) * (pow( 10, pow( $level_level+2, (1/3) ) ) ) / (pi()) );
   
         $level_mp_cost = $user_cache[$poster_id]['posts'] * $level_post_mp_cost;
   
         $level_mp_regen = max(1, $level_user_days * $level_mp_regen_per_day);
   
         $level_cur_mp = floor($level_max_mp - $level_mp_cost + $level_mp_regen);
         $level_cur_mp = max(0, $level_cur_mp);
         $level_cur_mp = min($level_max_mp, $level_cur_mp);
   
         $level_mp = $level_cur_mp . ' / ' . $level_max_mp;
   
         $level_mp_percent = floor($level_cur_mp / $level_max_mp * 100);
   }


   /* Determine EXP percentage
   *
   * Experience is determined by how far the user is away
   * from the next level. This is expressed as a percentage.
   *
   * Note, a user of level 0 has 100% experience. Making one post
   * will put them at level 1. Also, a user that is shown to have 100%
   * experience, will go up a level on their next post.
   *
   */

   if($level_level == 0)
   {
         $level_exp = '0 / 0';
         $level_exp_percent = 100;
   }
   else
   {
         $level_posts_for_next = floor( pow( 10, pow( $level_level, (1/3) ) ) );

      $level_exp = $user_cache[$poster_id]['posts'] . ' / ' . $level_posts_for_next;
      $level_exp_percent = floor( ($user_cache[$poster_id]['posts'] - $level_posts_for_this) / max(1,($level_posts_for_next - $level_posts_for_this)) * 100);   
   }

   //
   // Level Bar 0.0.1 [ www.TeskilatForum.neT ] - End
   //
   //
Add After:

Code: Select all

//
// Level Bar 0.0.1 [ www.TeskilatForum.neT ] - Start
//   
  $stars = ($level_level/3)*2;
  // Get level
  if($stars >= 20){
  if($stars >= 25){$stars = 25;}
  $starsc = $stars-20;
  $s_ext = "red";
  }elseif($stars >= 15){
  $starsc = $stars-15;
  $s_ext = "blue";
  }elseif($stars >= 10){
  $starsc = $stars-10;
  $s_ext = "green";
  }elseif($stars >= 5){
  $starsc = $stars-5;
  $s_ext = "grey";
  }else{
  $starsc = $stars;
  $s_ext = "yellow";
  }
  if($starsc < 1){
  $starsc = 1;
  }
  for($iCount=0; $iCount<$starsc; $iCount++){
  $sao = "<img src='images/level/s_{$s_ext}.gif' alt='HAGIANGPRO'>";
  } 
   //
   // Level Bar 0.0.1 [ www.TeskilatForum.neT] - End
   // 
Find:

Code: Select all

      'POSTER_LEVEL' => $level_level,
Add After:

Code: Select all

     'POSTER_STAR' => $sao,
Open viewtopic_body.html Find:

Code: Select all

{postrow.POSTER_LEVEL}
Add After:

Code: Select all

[{postrow.POSTER_STAR}]
Upload this folder level to images of root
Download: http://www.mediafire.com/?td5mgz2vzjz
Demo: http://forum.hagiangpro.com

kevin90
Registered User
Posts: 11
Joined: Mon Feb 08, 2010 3:40 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by kevin90 » Sat Mar 06, 2010 4:45 am

thanks Nguy for support
more question !
how to set max level for administrator ?

User avatar
Ahri89
Registered User
Posts: 516
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Ahri89 » Sun Mar 07, 2010 1:38 am

EsmerÖzcan wrote:
Trokal wrote:when is this going to be released?
thanks
viewtopic.php 100%
memberlist.php 65%
language and styles 80%
and now? :P

works on 3.0.7? Thanks!
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD

zorohu
Registered User
Posts: 10
Joined: Wed Mar 10, 2010 8:10 am

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by zorohu » Thu Mar 11, 2010 5:20 am

It works fine with my phpbb3.0.7!! Great Mod!!

Is there any possible make LevelBar Mod add more function like this developing mod ([DEV] Role Playing Forum - The "Script" - v. Pre-Dev)?
# Performing actions costs MP (Edit Signature, post, vote)
# Gain levels and experience through posting
# Gain exp by people replying to your topics (up to a set amount per day)
Because i think there is no need to get more function. Simple is great :D

User avatar
T3h Antek
Registered User
Posts: 97
Joined: Tue Feb 02, 2010 4:26 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by T3h Antek » Thu Mar 11, 2010 1:40 pm

Amazing mod and it's really nice.

andrius757
Registered User
Posts: 117
Joined: Wed Dec 02, 2009 10:05 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by andrius757 » Sun Mar 14, 2010 2:18 pm

Is it possible to decrease those vlaues somehow or afect them by other users?

Locked

Return to “[3.0.x] Abandoned MODs”