yes this locate i add two writeD(0);
effect work but i not use coupon
when i respawn map he seeding info i use coupon but i' am not using coupon
Код:
public class SM_ROOM_INFO extends ServerPacket {
private final Room room;
public SM_ROOM_INFO(Room room) {
super(0xf15);
this.room = room;
}
@Override
public void writeImpl() {
if(room.getRoomSlotByPlayer(room.getLeader()) == null)
room.setNewLeader();
writeD(room.getRoomSlotByPlayer(room.getLeader()).getId());
writeD(0); // Effect Coupon but i'm not equiped Coupon he seend info i'm using coupon but i' am not equiped coupon
writeD(0);// Effect Coupon but i'm not equiped Coupon he seend info i'm using coupon but i' am not equiped coupon
for(int i = 0; i < 16; i++) {
RoomSlot slot = room.getRoomSlot(i);
if(slot.getPlayer() != null) {
writeC(slot.getState().ordinal());
writeC((byte) (slot.getPlayer() == null ? 0 : slot.getPlayer().getRank()));
writeB(new byte[9]);
writeC(slot.getPlayer() == null || slot.getPlayer().getClan() == null ? 0xff : slot.getPlayer().getClan().getLogo1());
writeC(slot.getPlayer() == null || slot.getPlayer().getClan() == null ? 0xff : slot.getPlayer().getClan().getLogo2());
writeC(slot.getPlayer() == null || slot.getPlayer().getClan() == null ? 0xff : slot.getPlayer().getClan().getLogo3());
writeC(slot.getPlayer() == null || slot.getPlayer().getClan() == null ? 0xff : slot.getPlayer().getClan().getLogo4());
writeC(slot.getPlayer() == null || slot.getPlayer().getClan() == null ? 0 : slot.getPlayer().getClan().getColor());
writeB(new byte[6]);
writeS(slot.getPlayer() == null || slot.getPlayer().getClan() == null ? "" : slot.getPlayer().getClan().getName(), Clan.CLAN_NAME_SIZE);
writeH(0);
writeC(0);
writeC(0);
}
}
}
how i can fix he right man for work right effect