I tried to use the following code:
Code:
for (Player mc : party.getPartyMembers()) {
if(mc.getParty().getLeader() != null || mc.getParty() != null) {
mc.getClient().getSession().write(MaplePacketCreator.sendInviteGuildTest(party, gName, nameLeader, mc.getName() == nameLeader));
}
}
And this too:
´
Code:
public static MaplePacket sendInviteGuildTest(MapleParty party, String gName, String nameLeader, boolean isLeader) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew .writeShort(SendPacketOpcode.GUILD_OPERATION.getValue());
mplew .write(0x03);
if (!isLeader) {
mplew .writeInt(party.getId());
mplew .writeMapleAsciiString(nameLeader);
mplew.writeMapleAsciiString(gName);
}
The code works only for the leader of the party, for the others nothing happens. Is there any information missing?