Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 15043

!level command

$
0
0
I don't know what the hell is up but when I do !level 200 it goes to level 201. Why is that?
Can someone please explain. :D.
This is the command btw:
PHP Code:

     public static class Level extends CommandExecute {

        @
Override
        
public int execute(MapleClient cString[] splitted) {
            
c.getPlayer().setLevel(Short.parseShort(splitted[1]));
            
c.getPlayer().levelUp();
            if (
c.getPlayer().getExp() < 0) {
                
c.getPlayer().gainExp(-c.getPlayer().getExp(), falsefalsetrue);
            }
            return 
1;
        }
    } 

Edit: Fixed it. NVM.

Viewing all articles
Browse latest Browse all 15043

Trending Articles