Added meso drop data for many mobs that were missing mesos. Enhanced arrow drop data, now dropping bundles instead of unitary items. Fixed issues with several Aran change jobs crashing the player shortly after changing jobs. Improved concurrency in MapleGuild, MapleAlliance and MaplePlayerShop. New tools: MapleArrowFetcher and MapleMesoFetcher, that were used to compile the updated drop data info.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
Add field:
|
|
PHP Code:
|
|
private int team = -1;
|
|
Add constructor:
|
|
PHP Code:
|
|
public SpawnPoint(MapleMonster monster, Point pos, int mobTime, int team) { super();
|
|
this.monster = monster;
|
|
this.pos = new Point(pos);
|
|
this.mobTime = mobTime;
|
|
this.immobile = !monster.isMobile();
|
|
this.nextPossibleSpawn = System.currentTimeMillis();
|
|
this.team = team;
|
|
}
|
|
Add monster death listener under spawnMonster():
|
|
PHP Code:
|
|
if (team > -1) { final int cp = mob.getCP();
|
|
mob.addListener(new MonsterListener() {
|
|
|
|
@Override
|
|
public void monsterKilled(MapleMonster monster, MapleCharacter highestDamageChar) {
|
|
if (highestDamageChar == null) {
|
|
return;
|
|
}
|
|
|
|
if (highestDamageChar.getMCPQParty() == null) {
|
|
MCTracker.log("Attempted to give CP to character without assigned MCPQ Party.");
|
|
return;
|
|
}
|
|
|
|
highestDamageChar.getMCPQField().monsterKilled(highestDamageChar, cp);
|
|
|
|
}
|
|
});
|
|
mob.setTeam(team);
|
|
} |