- Joined
- Jun 22, 2008
- Messages
- 50
- Reaction score
- 0
I made some simple edit to the GM command, to set HP or MP, useful when you use for debugging.
Go to src\net\sf\odinms\client\messages\CommandProcessor.java and find
Replace it or add below it
Compile, then enjoy debugging XD
Go to src\net\sf\odinms\client\messages\CommandProcessor.java and find
Code:
} else if (splitted[0].equals("!lowhp")) {
player.setHp(1);
player.setMp(500);
player.updateSingleStat(MapleStat.HP, 1);
player.updateSingleStat(MapleStat.MP, 500);
Replace it or add below it
Code:
} else if (splitted[0].equals("!sethp")) {
int hp = Integer.parseInt(splitted[1]);
if(hp > player.getMaxHp()) {
player.setHp(player.getMaxHp());
player.updateSingleStat(MapleStat.HP, player.getMaxHp());
} else {
player.setHp(hp);
player.updateSingleStat(MapleStat.HP, hp);
}
} else if (splitted[0].equals("!setmp")) {
int mp = Integer.parseInt(splitted[1]);
if(mp > player.getMaxMp()) {
player.setMp(player.getMaxMp());
player.updateSingleStat(MapleStat.MP, player.getMaxMp());
} else {
player.setMp(mp);
player.updateSingleStat(MapleStat.MP, mp);
}
Compile, then enjoy debugging XD