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.
32 lines
799 B
Plaintext
32 lines
799 B
Plaintext
Add fields:
|
|
PHP Code:
|
|
private int team = -1;
|
|
|
|
Add methods:
|
|
PHP Code:
|
|
public int getCP() { return stats.getCp();
|
|
}
|
|
|
|
public int getTeam() {
|
|
return team;
|
|
}
|
|
|
|
public void setTeam(int team) {
|
|
this.team = team;
|
|
}
|
|
|
|
public void dispel() {
|
|
if (!isAlive()) return;
|
|
|
|
for (MonsterStatus i : MonsterStatus.values()) {
|
|
if (monsterBuffs.contains(i)) {
|
|
removeMonsterBuff(i);
|
|
MaplePacket packet = MaplePacketCreator.cancelMonsterStatus(getObjectId(), Collections.singletonMap(i, Integer.valueOf(1)));
|
|
map.broadcastMessage(packet, getPosition());
|
|
if (getController() != null && !getController().isMapObjectVisible(MapleMonster.this)) {
|
|
getController().getClient().getSession().write(packet);
|
|
}
|
|
}
|
|
}
|
|
}
|