[Add-On]Exp rate per Rebirth

Results 1 to 13 of 13
  1. #1
    Banned snitch360 is offline
    BannedRank
    Feb 2010 Join Date
    33Posts

    [Add-On]Exp rate per Rebirth


    RaGEZONE Recommends

    RaGEZONE Recommends

    I decided to help out the community since I am quitting my server. (Aka: My first release on ragezone)

    This is for high rate server who want EXP rate to decrease for each Rebirth they do.

    Sorry about the messiness, My coding is always messy

    Add this in your MapleCharacter.Java, Inside setRates()

    PHP Code:
    int newexprate ServerConstants.EXP_RATE;
            
    int numReborns getReborns();
            
    int looper 0;
            while (
    numReborns 1000 0){
                    
    numReborns -= 1000;
                    
    looper++;
                }
            
    int rb1000 1000;

            if (
    looper == 0){ // 1-1000rb
                
    while ((numReborns 5) >= 0) {
                    
    numReborns -= 5;
                
    newexprate = (newexprate 1);
                }
                }
            if (
    looper == 1){ // 1000-2000 rb
                
    while ((rb1000 5) >= 0) {
                    
    rb1000 -= 5;
                
    newexprate = (newexprate 1);
                }
                
    rb1000 1000;
                while ((
    numReborns 10) >= 0) {
                    
    numReborns -= 10;
                
    newexprate = (newexprate 1);
                }
                }
            if (
    looper == 2){ // 2000-3000rb
                
    while ((rb1000 5) >= 0) {
                
    rb1000 -= 5;
                
    newexprate = (newexprate 1);
                }
                
    rb1000 1000;

                while ((
    rb1000 10) >= 0) {
                
    rb1000 -= 10;
                
    newexprate = (newexprate 1);
                }
                
    rb1000 1000;

                while ((
    numReborns 100) >= 0) {
                
    numReborns -= 100;
                
    newexprate = (newexprate 1);
                }
                
    this.dropRate 2;
                }

                if (
    looper >= 3){ // 3000rb+
                    
    while ((rb1000 5) >= 0) { // 1-1000
                    
    rb1000 -= 5;
                    
    newexprate = (newexprate 1);
                    }
                    
    rb1000 1000;
                    while ((
    rb1000 10) >= 0) { // 1000-2000
                    
    rb1000 -= 10;
                    
    newexprate = (newexprate 1);
                    }
                    
    rb1000 1000;
                    while ((
    rb1000 20) >= 0) { // 3000-4000
                    
    rb1000 -= 20;
                    
    newexprate = (newexprate 1);
                    }
                    
    rb1000 1000;

                    while ((
    numReborns 50) >= && newexprate >= 50) {//4000+
                    
    numReborns -= 50;
                    
    newexprate = (newexprate 1);
                    }
                    
    this.dropRate 1;
                    }
            if (
    newexprate 50){
                
    newexprate 50;
            }
            
    this.expRate newexprate;
            
    message("Your Rates are currently :" getRates()); 
    And Don't forget to add
    PHP Code:
    setRates(); 
    into your
    PHP Code:
    doReborn() 
    Credits : Me

    Don't forget to thank me if this helped :]
    Last edited by Shawn; 22-01-11 at 06:24 PM.


  2. #2
    Alpha Member Soulfist is offline
    Alpha MaleRank
    Dec 2010 Join Date
    a hovelLocation
    1,835Posts

    Re: -Exp rate per Rebirth

    LOLOL at

    "credits : me"

    Good job tho, i dont need it but its nice

  3. #3
    Account Inactive TehZonex is offline
    InactiveRank
    Jan 2011 Join Date
    SingaporeLocation
    11Posts

    Re: -Exp rate per Rebirth

    Thx i was waiting for this :P

  4. #4
    Banned snitch360 is offline
    BannedRank
    Feb 2010 Join Date
    33Posts

    Re: -Exp rate per Rebirth

    Quote Originally Posted by Soulfist View Post
    LOLOL at

    "credits : me"

    Good job tho, i dont need it but its nice
    What's so funny about the credits?

    I coded it for my own server but I don't need it anymore.

    I usually keep my source private, but this is the first time releasing it :]
    Last edited by snitch360; 22-01-11 at 04:40 AM.

  5. #5
    Why you look? johnnyrocks is offline
    True MemberRank
    Nov 2007 Join Date
    396Posts

    Re: -Exp rate per Rebirth

    I remembered I did this on an old source a long time ago, I wanted to test out my coding ability and well, they're still horrible now.

  6. #6
    Account Inactive ProGamerForLife is offline
    InactiveRank
    Sep 2008 Join Date
    iTouchMsLocation
    1,205Posts

    Re: -Exp rate per Rebirth

    Code:
    int newexprate = ServerConstants.EXP_RATE;
            int numReborns = getReborns();
            int looper = 0;
            while (numReborns - 1000 > 0){
                    numReborns -= 1000;
                    looper++;
                }
            int rb1000 = 1000;
                 Switch(looper)
                { 
                 case 0;
                 while ((numReborns - 5) >= 0) {
                 numReborns -= 5;
                 newexprate = (newexprate - 1);
                 break:
                 case 1;
                 while ((rb1000 - 5) >= 0) {
                    rb1000 -= 5;
                newexprate = (newexprate - 1);
                }
                rb1000 = 1000;
                while ((numReborns - 10) >= 0) {
                    numReborns -= 10;
                newexprate = (newexprate - 1);
                }
                break:
                case 2;
                while ((rb1000 - 5) >= 0) {
                rb1000 -= 5;
                newexprate = (newexprate - 1);
                }
                rb1000 = 1000;
    
                while ((rb1000 - 10) >= 0) {
                rb1000 -= 10;
                newexprate = (newexprate - 1);
                }
                rb1000 = 1000;
    
                while ((numReborns - 100) >= 0) {
                numReborns -= 100;
                newexprate = (newexprate - 1);
                }
                this.dropRate = 2;
                break:
                case 3;
                    while ((rb1000 - 5) >= 0) { // 1-1000
                    rb1000 -= 5;
                    newexprate = (newexprate - 1);
                    }
                    rb1000 = 1000;
                    while ((rb1000 - 10) >= 0) { // 1000-2000
                    rb1000 -= 10;
                    newexprate = (newexprate - 1);
                    }
                    rb1000 = 1000;
                    while ((rb1000 - 20) >= 0) { // 3000-4000
                    rb1000 -= 20;
                    newexprate = (newexprate - 1);
                    }
                    rb1000 = 1000;
    
                    while ((numReborns - 50) >= 0 && newexprate >= 50) {//4000+
                    numReborns -= 50;
                    newexprate = (newexprate - 1);
                    }
                    this.dropRate = 1;
                    break:
    }
            if (newexprate < 50){
                newexprate = 50;
            }
            this.expRate = newexprate;
            message("Your Rates are currently :" + getRates());
    LolWhut


    If you're gonna do it with if statements rather than a switch, atleast use else if...
    lolololol
    Last edited by ProGamerForLife; 22-01-11 at 05:13 AM.

  7. #7
    Account Upgraded | Title Enabled! Sharky is offline
    True MemberRank
    Dec 2010 Join Date
    Ur Mom's Pants.Location
    927Posts

    Re: -Exp rate per Rebirth

    Haha nice. Mine's a bit better, but this is still good =P

  8. #8
    Banned snitch360 is offline
    BannedRank
    Feb 2010 Join Date
    33Posts

    Re: -Exp rate per Rebirth

    Quote Originally Posted by ProGamerForLife View Post
    Code:
    int newexprate = ServerConstants.EXP_RATE;
            int numReborns = getReborns();
            int looper = 0;
            while (numReborns - 1000 > 0){
                    numReborns -= 1000;
                    looper++;
                }
            int rb1000 = 1000;
                 Switch(looper)
                { 
                 case 0;
                 while ((numReborns - 5) >= 0) {
                 numReborns -= 5;
                 newexprate = (newexprate - 1);
                 break:
                 case 1;
                 while ((rb1000 - 5) >= 0) {
                    rb1000 -= 5;
                newexprate = (newexprate - 1);
                }
                rb1000 = 1000;
                while ((numReborns - 10) >= 0) {
                    numReborns -= 10;
                newexprate = (newexprate - 1);
                }
                break:
                case 2;
                while ((rb1000 - 5) >= 0) {
                rb1000 -= 5;
                newexprate = (newexprate - 1);
                }
                rb1000 = 1000;
    
                while ((rb1000 - 10) >= 0) {
                rb1000 -= 10;
                newexprate = (newexprate - 1);
                }
                rb1000 = 1000;
    
                while ((numReborns - 100) >= 0) {
                numReborns -= 100;
                newexprate = (newexprate - 1);
                }
                this.dropRate = 2;
                break:
                case 3;
                    while ((rb1000 - 5) >= 0) { // 1-1000
                    rb1000 -= 5;
                    newexprate = (newexprate - 1);
                    }
                    rb1000 = 1000;
                    while ((rb1000 - 10) >= 0) { // 1000-2000
                    rb1000 -= 10;
                    newexprate = (newexprate - 1);
                    }
                    rb1000 = 1000;
                    while ((rb1000 - 20) >= 0) { // 3000-4000
                    rb1000 -= 20;
                    newexprate = (newexprate - 1);
                    }
                    rb1000 = 1000;
    
                    while ((numReborns - 50) >= 0 && newexprate >= 50) {//4000+
                    numReborns -= 50;
                    newexprate = (newexprate - 1);
                    }
                    this.dropRate = 1;
                    break:
    }
            if (newexprate < 50){
                newexprate = 50;
            }
            this.expRate = newexprate;
            message("Your Rates are currently :" + getRates());
    LolWhut


    If you're gonna do it with if statements rather than a switch, atleast use else if...
    lolololol
    Yeah, I know... I'm a very lazy/messy coder.

    but I had a different idea in mind while I was coding it but I changed my mind during it.

  9. #9
    Account Inactive iCris is offline
    InactiveRank
    Oct 2008 Join Date
    251Posts

    Re: -Exp rate per Rebirth

    On mine it just lowers your experience rate by 45% for each rebirth you have. It's fairly evil, especially with a base exp rate of 40x. :D

  10. #10
    Account Inactive Wingx is offline
    InactiveRank
    Oct 2010 Join Date
    Western AusLocation
    269Posts

    Re: -Exp rate per Rebirth

    Anyway , good for the first release !!! Good luck

  11. #11
    Banned snitch360 is offline
    BannedRank
    Feb 2010 Join Date
    33Posts

    Re: -Exp rate per Rebirth

    Quote Originally Posted by Wingx View Post
    Anyway , good for the first release !!! Good luck
    Thanks :]

  12. #12
    Account Inactive iCris is offline
    InactiveRank
    Oct 2008 Join Date
    251Posts

    Re: [Add-On]Exp rate per Rebirth


  13. #13
    Account Inactive HorrorChix89 is offline
    InactiveRank
    May 2010 Join Date
    ArkansasLocation
    1,279Posts

    Re: [Add-On]Exp rate per Rebirth





Advertisement