Vegas's spell + pet/mounts schedule revamp + CafePQ
Added Vega's Spell feature. Refactored mounts and pets schedules (now one thread runs globally updating stats). Fixed Pet Ignore now saving to DB. Fixed Flash Jump animation not appearing for other players just after changing jobs. Fixed 3rd job, now as a proper event with timeout. Introducing Brand-new PQ: CafePQ.
This commit is contained in:
@@ -22,18 +22,35 @@
|
||||
package net.server.channel.handlers;
|
||||
|
||||
import client.MapleClient;
|
||||
import client.MapleCharacter;
|
||||
import client.inventory.MaplePet;
|
||||
import net.AbstractMaplePacketHandler;
|
||||
import tools.data.input.SeekableLittleEndianAccessor;
|
||||
//import tools.MaplePacketCreator;
|
||||
|
||||
/**
|
||||
* @author BubblesDev
|
||||
* @author Ronan
|
||||
*/
|
||||
public final class PetExcludeItemsHandler extends AbstractMaplePacketHandler {
|
||||
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
|
||||
slea.readLong();
|
||||
final int petId = slea.readInt();
|
||||
slea.skip(4);
|
||||
|
||||
MapleCharacter chr = c.getPlayer();
|
||||
byte petIndex = (byte)chr.getPetIndex(petId);
|
||||
if (petIndex < 0) return;
|
||||
|
||||
final MaplePet pet = chr.getPet(petIndex);
|
||||
if (pet == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
chr.resetExcluded(petId);
|
||||
byte amount = slea.readByte();
|
||||
for (int i = 0; i < amount; i++) {
|
||||
c.getPlayer().addExcluded(slea.readInt());
|
||||
chr.addExcluded(petId, slea.readInt());
|
||||
}
|
||||
chr.commitExcludedItems();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user