Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

All CPQ Packets

Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
PHP:
    public static MaplePacket startCPQ() {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_START.getValue());
        mplew.write(0); //team
        mplew.writeShort(0); //Obtained CP - Used CP
        mplew.writeShort(0); //Total Obtained CP
        mplew.writeShort(0); //Obtained CP - Used CP of the team
        mplew.writeShort(0); //Total Obtained CP of the team
        mplew.writeShort(0); //Obtained CP - Used CP of the team
        mplew.writeShort(0); //Total Obtained CP of the team
        mplew.writeShort(0); //Probably useless nexon poop
        mplew.writeLong(0); //Probably useless nexon poop
        return mplew.getPacket();
    }

    public static MaplePacket obtainCP() {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_OBTAINED_CP.getValue());
        mplew.writeShort(0); //Obtained CP - Used CP
        mplew.writeShort(0); //Total Obtained CP
        return mplew.getPacket();
    }

    public static MaplePacket obtainPartyCP() {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_PARTY_CP.getValue());
        mplew.write(0); //Team where the points are given to.
        mplew.writeShort(0); //Obtained CP - Used CP
        mplew.writeShort(0); //Total Obtained CP
        return mplew.getPacket();
    }

    public static MaplePacket CPQSummon() {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_SUMMON.getValue());
        mplew.write(0); //Tab
        mplew.write(0); //Number of summon inside the tab
        mplew.writeMapleAsciiString(""); //Name of the player that summons
        return mplew.getPacket();
    }

    public static MaplePacket CPQDied() {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_SUMMON.getValue());
        mplew.write(0); //Team
        mplew.writeMapleAsciiString(""); //Name of the player that died
        mplew.write(0); //Lost CP
        return mplew.getPacket();
    }

    /**
     * Sends a CPQ Message
     *
     * Possible values for <code>message</code>:<br>
     * 1: You don't have enough CP to continue.
     * 2: You can no longer summon the Monster.
     * 3: You can no longer summon the being.
     * 4: This being is already summoned.
     * 5:     This request has failed due to an unknown error.
     *
     * @param message Displays a message inside Carnival PQ
     **/
    public static MaplePacket CPQMessage(byte message) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_MESSAGE.getValue());
        mplew.write(message); //Message
        return mplew.getPacket();
    }
    
    public static MaplePacket leaveCPQ() {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendOpcode.MONSTER_CARNIVAL_LEAVE.getValue());
        mplew.write(0); //Something?
        mplew.write(0); //Team
        mplew.writeMapleAsciiString(""); //Player name
        return mplew.getPacket();
    }
v83:
PHP:
    MONSTER_CARNIVAL_START(0x121),
    MONSTER_CARNIVAL_OBTAINED_CP(0x122),
    MONSTER_CARNIVAL_PARTY_CP(0x123),
    MONSTER_CARNIVAL_SUMMON(0x124),
    MONSTER_CARNIVAL_MESSAGE(0x125),
    MONSTER_CARNIVAL_DIED(0x126),
    MONSTER_CARNIVAL_LEAVE(0x127),

v75:
PHP:
    MONSTER_CARNIVAL_START(0x103),
    MONSTER_CARNIVAL_OBTAINED_CP(0x104),
    MONSTER_CARNIVAL_PARTY_CP(0x105),
    MONSTER_CARNIVAL_SUMMON(0x106),
    MONSTER_CARNIVAL_MESSAGE(0x07),
    MONSTER_CARNIVAL_DIED(0x108),
    MONSTER_CARNIVAL_LEAVE(0x109),

v62:
PHP:
    MONSTER_CARNIVAL_START(0xE3),
    MONSTER_CARNIVAL_OBTAINED_CP(0xE4),
    MONSTER_CARNIVAL_PARTY_CP(0xE5),
    MONSTER_CARNIVAL_SUMMON(0xE6),
    MONSTER_CARNIVAL_MESSAGE(0xE7),
    MONSTER_CARNIVAL_DIED(0xE8),
    MONSTER_CARNIVAL_LEAVE(0xE9),

Someone requested them. Checked all of them, and found out that some packets were missing.

Thanks Zygon, for letting me recheck the leave CPQ packet. Thanks :)
Good Luck coding CPQ, won't be hard by the way. And no I did not include the spawn CPQ monster packet. Get it yourself.
 
Last edited:
may web.very maple.pls.
Loyal Member
Joined
Aug 12, 2009
Messages
1,810
Reaction score
606
Thanks for this i was looking for them xD
what version is this??
 
Burn the land,
Loyal Member
Joined
Aug 7, 2008
Messages
1,903
Reaction score
17
We both know, you should give credits for Bassoe's work. ;)

EDIT:
I can provide the download link if you want. It's very old, but looks exactly the same as this. ;)
 
Junior Spellweaver
Joined
Sep 30, 2009
Messages
180
Reaction score
76
thanks a bawwwnch, i found the spawnmonster packet, so as promised i'll release it next week i guess
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Jun 1, 2008
Messages
2,232
Reaction score
1,007
Hurray, nicely done.

:), you people are sooo slow :O
Hmmm, can people suggest some things to code. I'm bored and I wanna code something tomorrow. I'm going to bed now. Good Night guys.

Maybe something like a PQ? There is only the KPQ and some Haloween PQ out there. Most of them aren't complete.
(I don't have a server (or going to make one), so don't come to me with: "Yus.. for leeching!" )
 
Newbie Spellweaver
Joined
Nov 27, 2009
Messages
94
Reaction score
58
Great release, but can I ask how you get the headers of previous versions?
 
Newbie Spellweaver
Joined
Jul 18, 2008
Messages
30
Reaction score
0
i think you need to fix the card game. There is something wrong with the match card.
 
Joined
Aug 10, 2008
Messages
858
Reaction score
516
brent pm me your new msn.
Same as my old one... o_O watchmystarz@hotmail.com

It's kind of funny that I had completely different packet structures than you and they still worked for MCPQ1 on v83...
Code:
    /**
     * 1 - You don't have enough CP to continue.
     * 2 - You can no longer summon the Monster.
     * 3 - You can no longer summon the being.
     * 4 - This being is already summoned.
     * 5 - This request has failed due to an unknown error.
     */
    public static MaplePacket showMCPQMessage(int type) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_MESSAGE);
        mplew.writeShort(type);
        return mplew.getPacket();
    }

    /**
     * @param spot 1 or 6
     * 1 = the regular player.
     * 6 = party leader left and then the name is the new leader.
     */
    public static MaplePacket playerLeftMCPQ(int team, int spot, String name) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_PLAYER_LEFT);
        mplew.write(spot);
        mplew.write(team);
        mplew.writeMapleAsciiString(name);
        return mplew.getPacket();
    }

    public static MaplePacket updatePlayerCP(int un, int total) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_PLAYER_CP);
        mplew.writeShort(un);
        mplew.writeShort(total);
        return mplew.getPacket();
    }

    public static MaplePacket updatePartyCP(int team, int un, int total) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendPacketOpcode.MONSTER_CARNIVAL_PARTY_CP);
        mplew.write(team);
        mplew.writeShort(un);
        mplew.writeShort(total);
        return mplew.getPacket();
    }

@Off-topic
Happy birthday shoot source. o_O
 
Custom Title Activated
Loyal Member
Joined
Jun 30, 2008
Messages
3,451
Reaction score
1,616
We both know, you should give credits for Bassoe's work. ;)

EDIT:
I can provide the download link if you want. It's very old, but looks exactly the same as this. ;)
Not really, Bassoe doesn't give a poop anymore. And I knew there were packets on the internet. but I have used them. Just used header + lots of bytes. Then delete bytes till you crash so you know the length. Then play around with the packet. And some were missing.
 
Custom Title Activated
Loyal Member
Joined
Mar 17, 2009
Messages
1,911
Reaction score
538
Why do you love me again? I love you 24/7 :(
And hmmmm, let me go check the leaveCPQ packet.

Well, what I meant was. I love you all the time, but this release made me love you more xD
 
Back
Top