• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Help with v40b Minigames

Newbie Spellweaver
Joined
May 14, 2015
Messages
26
Reaction score
1
So I'm literally at my wits end here. For some reason whenever I start a minigame (omok / matchcard) the timer gets set to null and the game crashes. Anyone have any ideas?

newbane2 - Help with v40b Minigames - RaGEZONE Forums
 
Newbie Spellweaver
Joined
May 14, 2015
Messages
26
Reaction score
1
Here is the packet, and the card id's range from 0-15. I think it might be a client bug.

Code:
[COLOR=#839496]public static MaplePacket getMatchCardStart(MapleMiniGame game) {
            MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
            mplew.write(SendPacketOpcode.PLAYER_INTERACTION.getValue());
            mplew.write(0x23);
            mplew.write(game.getWinnerIndex());
            int times;
            if (game.getMatchesToWin() > 10) {
                times = 30;
            } else if (game.getMatchesToWin() > 6) {
                times = 20;
            } else {
                times = 12;
            }
            mplew.write(times);
            for (int i = 1; i <= times; i++) {
                mplew.writeInt(game.getCardId(i));
            }
            return mplew.getPacket();
        }[/COLOR]
 
Upvote 0
Back
Top