[HELP] Exp MopleDEV

Results 1 to 10 of 10
  1. #1
    Elite Member deregudegu is offline
    Member +Rank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    [HELP] Exp MopleDEV

    Hello,

    I put reborn in my server but the mobs don't give all exp.
    For exemple, I'm level 160 and killed Pianus but I didn't receive all exp that it would give me.

    Could anyone help me?


  2. #2
    Elite Member AngryPepe is offline
    Member +Rank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: [HELP] Exp MopleDEV

    "I didn't receive all exp that it would give me."
    So according to what you said, you received only some of the EXP ? 0.0

  3. #3
    Elite Member deregudegu is offline
    Member +Rank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    Re: [HELP] Exp MopleDEV

    Some players say: "as the boss hold exp".
    For exemple, when I killed Pianus in level 160 I received 1 level and 99,98% exp.
    Last edited by deregudegu; 13-05-12 at 08:42 PM.

  4. #4
    Elite Member AngryPepe is offline
    Member +Rank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: [HELP] Exp MopleDEV

    Oh lol, you just don't have Multi Level in your server :)

    Change your gainExp method and add to it:

    PHP Code:
              while (exp.get() >= ExpTable.getExpNeededForLevel(level)) {
                    
    levelUp(true);
                    } 

  5. #5
    Elite Member deregudegu is offline
    Member +Rank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    Re: [HELP] Exp MopleDEV

    GainExp method was as follows:
    PHP Code:
        public void gainExp(int gainboolean showboolean inChatboolean white) {
            
    int equip = (gain 10) * pendantExp;
            
    int total gain equip;

            if (
    level getMaxLevel()) {
                if ((
    longthis.exp.get() + (longtotal > (longInteger.MAX_VALUE) {
                    
    int gainFirst ExpTable.getExpNeededForLevel(level) - this.exp.get();
                    
    total -= gainFirst 1;
                    
    this.gainExp(gainFirst 1falseinChatwhite);
                }
                
    updateSingleStat(MapleStat.EXPthis.exp.addAndGet(total));
                if (
    show && gain != 0) {
                    
    client.announce(MaplePacketCreator.getShowExpGain(gainequipinChatwhite));
                }
                if (
    exp.get() >= ExpTable.getExpNeededForLevel(level)) {
                    
    levelUp(true);
                    
    int need ExpTable.getExpNeededForLevel(level);
                    if (
    exp.get() >= need) {
                        
    setExp(need 1);
                        
    updateSingleStat(MapleStat.EXPneed);
                    }
                }
                while (
    exp.get() >= ExpTable.getExpNeededForLevel(level)) { 
                    
    levelUp(true); 
                }  
            }
        } 

  6. #6
    Elite Member AngryPepe is offline
    Member +Rank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: [HELP] Exp MopleDEV

    If you are using MoopleDev (that's what u said) than your gainExp method suppose to look like that:

    PHP Code:
        public void gainExp(int gainboolean showboolean inChatboolean white) {
            
    int equip = (gain 10) * pendantExp;
            
    int total gain equip;

            if (
    level getMaxLevel()) {
                if ((
    longthis.exp.get() + (longtotal > (longInteger.MAX_VALUE) {
                    
    int gainFirst ExpTable.getExpNeededForLevel(level) - this.exp.get();
                    
    total -= gainFirst 1;
                    
    this.gainExp(gainFirst 1falseinChatwhite);
                }
                
    updateSingleStat(MapleStat.EXPthis.exp.addAndGet(total));
                if (
    show && gain != 0) {
                    
    client.announce(MaplePacketCreator.getShowExpGain(gainequipinChatwhite));
                }
                if (
    exp.get() >= ExpTable.getExpNeededForLevel(level)) {
                    
    levelUp(true);
                    
    int need ExpTable.getExpNeededForLevel(level);
                    if (
    exp.get() >= need) {
                        
    setExp(need 1);
                        
    updateSingleStat(MapleStat.EXPneed);
                    }
                }
            }
        } 

    If you changed it, you MUST COMPILE!

  7. #7
    Elite Member deregudegu is offline
    Member +Rank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    Re: [HELP] Exp MopleDEV

    I know I have to compile.
    I'll test and post results here.
    Thanks.

  8. #8
    Elite Member AngryPepe is offline
    Member +Rank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: [HELP] Exp MopleDEV

    Don't use the code I posted in the last comment lol 0.0
    It was just to show you how your code is suppose to look according to what you said.

    If you are using MoopleDev just add:

    PHP Code:
              while (exp.get() >= ExpTable.getExpNeededForLevel(level)) { 
                    
    levelUp(true); 
                    } 
    To your gainExp method.

  9. #9
    Elite Member deregudegu is offline
    Member +Rank
    Apr 2012 Join Date
    BrazilLocation
    127Posts

    Re: [HELP] Exp MopleDEV

    I use this code:
    PHP Code:
    public void gainExp(int gainboolean showboolean inChatboolean white) { 
            
    int equip = (gain 10) * pendantExp
            
    int total gain equip

            if (
    level getMaxLevel()) { 
                if ((
    longthis.exp.get() + (longtotal > (longInteger.MAX_VALUE) { 
                    
    int gainFirst ExpTable.getExpNeededForLevel(level) - this.exp.get(); 
                    
    total -= gainFirst 1
                    
    this.gainExp(gainFirst 1falseinChatwhite); 
                } 
                
    updateSingleStat(MapleStat.EXPthis.exp.addAndGet(total)); 
                if (
    show && gain != 0) { 
                    
    client.announce(MaplePacketCreator.getShowExpGain(gainequipinChatwhite)); 
                } 
                while (
    exp.get() >= ExpTable.getExpNeededForLevel(level)) {  
                     
    levelUp(true);  
                }
            } 
        } 

  10. #10
    Elite Member AngryPepe is offline
    Member +Rank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: [HELP] Exp MopleDEV

    Then your multi-level should work if u compiled after the change.



Advertisement