I can't create a custom Guild because I KNOW something is wrong with a maple packet in CWvsContext.java (MaplePacketCreator.java) with the guild creation method. I have used the same custom guild method for v75+ and doesn't seem to work on v117.2. Screenshots of the fail can be seen here: http://imgur.com/pbuDX20,WTdhhIn#0
I have tried making a custom method of the original one and tweaked it to the max and ended up crashing non-stop (obviously maple packets be dangerous bruh) and sometimes just failing at creating a guild. I have tried auto entering a guild regardless of the text length but still failed.
The original Method:
Custom Guild Method:
I have tried making a custom method of the original one and tweaked it to the max and ended up crashing non-stop (obviously maple packets be dangerous bruh) and sometimes just failing at creating a guild. I have tried auto entering a guild regardless of the text length but still failed.
The original Method:
PHP Code:
public static byte[] newGuildInfo(MapleCharacter c) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.GUILD_OPERATION.getValue());
mplew.write(38);
if ((c == null) || (c.getMGC() == null)) {
return genericGuildMessage((byte) 37);
}
MapleGuild g = World.Guild.getGuild(c.getGuildId());
if (g == null) {
return genericGuildMessage((byte) 37);
}
getGuildInfo(mplew, g);
return mplew.getPacket();
}
PHP Code:
public static byte[] customGuildInfo(MapleCharacter c) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.GUILD_OPERATION.getValue());
mplew.write(38);
MapleGuild g = World.Guild.getGuild(c.getGuildId());
mplew.write(1);
getGuildInfo(mplew, g);
return mplew.getPacket();
}