- Joined
- Jun 8, 2007
- Messages
- 165
- Reaction score
- 8
Okay, it's a minor modification. But I thought why not release it, there might be people who need it.
This is for the rev 988 command system. But you're probably able to port it to older revision's command systems.
Not making a patch file because it's so small.
In client.messages.commands.MonsterInfoCommands.java (CommandProcessor.java for older revisions):
Replace:
With:
And add right below that:
EDIT: forgot this:
In MapleMonster.java
Change that to:
And done ;p
This is for the rev 988 command system. But you're probably able to port it to older revision's command systems.
Not making a patch file because it's so small.
In client.messages.commands.MonsterInfoCommands.java (CommandProcessor.java for older revisions):
Replace:
Code:
map.killMonster(monster, c.getPlayer(), false);
Code:
map.killMonster(monster, c.getPlayer(), true);
And add right below that:
Code:
monster.giveExpToCharacter(c.getPlayer(), monster.getExp(), true, 1);
EDIT: forgot this:
In MapleMonster.java
Code:
private void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {
Code:
public void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {
Last edited: