Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 30319

[Help] Guild Creation

$
0
0
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:
PHP Code:

public static byte[] newGuildInfo(MapleCharacter c) {
             
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

             
mplew.writeShort(SendPacketOpcode.GUILD_OPERATION.getValue());
             
mplew.write(38);
             if ((
== null) || (c.getMGC() == null)) {
                 return 
genericGuildMessage((byte37);
            }
             
MapleGuild g World.Guild.getGuild(c.getGuildId());
             if (
== null) {
                 return 
genericGuildMessage((byte37);
            }
             
getGuildInfo(mplewg);

             return 
mplew.getPacket();
        } 

Custom Guild Method:
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(mplewg);

            return 
mplew.getPacket();
        } 


Viewing all articles
Browse latest Browse all 30319


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>