Mini-Hack -- HP/MP/EXP for VB 2.x.x

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • The Realist
    Senior Member
    • Jul 2001
    • 653
    • 4.0.x

    #31
    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,

    Comment

    • UOSaint
      Member
      • Oct 2001
      • 41

      #32
      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

      Comment

      • Knoman
        Member
        • Apr 2001
        • 60

        #33
        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


        I go by the name Avalon there. Please, Moderators, delete this thread.
        www.allsquare.net

        Comment

        • Dakota
          Senior Member
          • Feb 2001
          • 135

          #34
          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.
          Bid For Power - Bid For Power Forums
          =======================
          Anime Academy - Anime Academy Forums

          Comment

          • Knoman
            Member
            • Apr 2001
            • 60

            #35
            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.
            www.allsquare.net

            Comment

            • Dunny
              Member
              • Aug 2001
              • 50

              #36
              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


              I go by the name Avalon there. Please, Moderators, delete this thread.
              No dont delete this thread, I dont even know who you are
              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.

              Comment

              • Dakota
                Senior Member
                • Feb 2001
                • 135

                #37
                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>
                Last edited by Dakota; Mon 29 Oct '01, 5:12am.
                Bid For Power - Bid For Power Forums
                =======================
                Anime Academy - Anime Academy Forums

                Comment

                • Chen
                  Senior Member
                  • Jun 2001
                  • 8388

                  #38
                  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.
                  Chen Avinadav
                  Better to remain silent and be thought a fool than to speak out and remove all doubt.

                  גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                  Comment

                  • merltock
                    New Member
                    • Mar 2001
                    • 24

                    #39
                    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


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

                    btw if you released the code it would be absolutely great. OpenSource ROX!
                    Last edited by merltock; Mon 29 Oct '01, 9:36am.

                    Comment

                    • Mega
                      Member
                      • Apr 2001
                      • 94

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

                      opensource r0x0rz

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...