killall gives exp and drops

🚫
Exiled
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:
Code:
map.killMonster(monster, c.getPlayer(), false);
With:
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) {
Change that to:
Code:
public void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {
And done ;p
 
Last edited:
Re: [RELEASE]!killall gives exp and drops

forgot this:
In MapleMonster.java
Code:
private void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {
Change that to:
Code:
public void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {
 
Re: [RELEASE]!killall gives exp and drops

i use sean repack and i dont find that file is sean repack base on rev 988????
 
Re: [RELEASE]!killall gives exp and drops

Okay, thanks for telling the filename.
Added (CommandProcessor.java for older revisions) in first post.
 
Re: [RELEASE]!killall gives exp and drops

Nice Release... but many Re-packs now has this command... =]
 
Back