本文整理汇总了Java中tools.packet.JobPacket.AngelicPacket类的典型用法代码示例。如果您正苦于以下问题:Java AngelicPacket类的具体用法?Java AngelicPacket怎么用?Java AngelicPacket使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AngelicPacket类属于tools.packet.JobPacket包,在下文中一共展示了AngelicPacket类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DressUpTime
import tools.packet.JobPacket.AngelicPacket; //导入依赖的package包/类
public static void DressUpTime(LittleEndianAccessor slea, final MapleClient c) {
byte type = slea.readByte();
// System.out.println("abtype " + type);
if (type == 1) {
// PlayerHandler.AngelicChange(slea, c, chr);
if (GameConstants.isAngelicBuster(c.getPlayer().getJob())) {
c.getSession().write(JobPacket.AngelicPacket.DressUpTime(type));
c.getSession().write(JobPacket.AngelicPacket.updateDress(5010094, c.getPlayer()));
// }
} else {
c.getSession().write(CWvsContext.enableActions());
// return;
}
}
}
示例2: absorbingDF
import tools.packet.JobPacket.AngelicPacket; //导入依赖的package包/类
public static void absorbingDF(LittleEndianAccessor slea, final MapleClient c) {
int size = slea.readInt();
int room = 0;
byte unk = 0;
int sn;
for (int i = 0; i < size; i++) {
room = GameConstants.isDemonAvenger(c.getPlayer().getJob()) || c.getPlayer().getJob() == 212 ? 0
: slea.readInt();
unk = slea.readByte();
sn = slea.readInt();
if (GameConstants.isDemonSlayer(c.getPlayer().getJob())) {
// c.getPlayer().addMP(c.getPlayer().getStat().getForce(room));
}
if (GameConstants.isAngelicBuster(c.getPlayer().getJob())) {
boolean rand = Randomizer.isSuccess(80);
if (sn > 0) {
if (rand) {
c.getSession().write(JobPacket.AngelicPacket.SoulSeekerRegen(c.getPlayer(), sn));
}
}
}
if ((GameConstants.isDemonAvenger(c.getPlayer().getJob())) && slea.available() >= 8) {
// c.getPlayer().getMap().broadcastMessage(MainPacketCreator.ShieldChacingRe(c.getPlayer().getId(),
// slea.readInt(), slea.readInt(), unk,
// c.getPlayer().getKeyValue2("schacing")));
}
if (c.getPlayer().getJob() == 212) {
// c.getPlayer().getMap().broadcastMessage(MainPacketCreator.MegidoFlameRe(c.getPlayer().getId(),
// unk, slea.readInt()));
}
}
}
示例3: DressUpTime
import tools.packet.JobPacket.AngelicPacket; //导入依赖的package包/类
public static void DressUpTime(LittleEndianAccessor slea, final MapleClient c) {
byte type = slea.readByte();
// System.out.println("abtype " + type);
if (type == 1) {
// PlayerHandler.AngelicChange(slea, c, chr);
if (GameConstants.isAngelicBuster(c.getPlayer().getJob())) {
c.getSession().write(JobPacket.AngelicPacket.DressUpTime(type));
c.getSession().write(JobPacket.AngelicPacket.updateDress(5010094, c.getPlayer()));
// }
} else {
c.getSession().write(CWvsContext.enableActions());
// return;
}
}
}
示例4: absorbingDF
import tools.packet.JobPacket.AngelicPacket; //导入依赖的package包/类
public static void absorbingDF(LittleEndianAccessor slea, final MapleClient c) {
int size = slea.readInt();
int room = 0;
byte unk = 0;
int sn;
for (int i = 0; i < size; i++) {
room = GameConstants.isDemonAvenger(c.getPlayer().getJob()) || c.getPlayer().getJob() == 212 ? 0 : slea.readInt();
unk = slea.readByte();
sn = slea.readInt();
if (GameConstants.isDemonSlayer(c.getPlayer().getJob())) {
// c.getPlayer().addMP(c.getPlayer().getStat().getForce(room));
}
if (GameConstants.isAngelicBuster(c.getPlayer().getJob())) {
boolean rand = Randomizer.isSuccess(80);
if (sn > 0) {
if (rand) {
c.getSession().write(JobPacket.AngelicPacket.SoulSeekerRegen(c.getPlayer(), sn));
}
}
}
if ((GameConstants.isDemonAvenger(c.getPlayer().getJob())) && slea.available() >= 8) {
// c.getPlayer().getMap().broadcastMessage(MainPacketCreator.ShieldChacingRe(c.getPlayer().getId(), slea.readInt(), slea.readInt(), unk, c.getPlayer().getKeyValue2("schacing")));
}
if (c.getPlayer().getJob() == 212) {
// c.getPlayer().getMap().broadcastMessage(MainPacketCreator.MegidoFlameRe(c.getPlayer().getId(), unk, slea.readInt()));
}
}
}