Skip to content

Commit

Permalink
Merge pull request #117 from trojal/patch-1
Browse files Browse the repository at this point in the history
Add support for 20150513 and other 2014 client packets
  • Loading branch information
vthibault committed Jun 30, 2015
2 parents 3d04c6b + 6030a90 commit 82c6fe7
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 30 deletions.
5 changes: 3 additions & 2 deletions src/Network/PacketCrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ define(['Core/Configs'], function( Configs )
20140402: [0x15D3271C,0x004D725B,0x111A3A37],
20140416: [0x04810281,0x42814281,0x42814281],
20141016: [0x2DFF467C,0x444B37EE,0x2C1B634F],
20141022: [0x290551EA,0x2B952C75,0x2D67669B]
20141022: [0x290551EA,0x2B952C75,0x2D67669B],
20150513: [0x62C86D09,0x75944F17,0x112C133D]
};


Expand Down Expand Up @@ -202,4 +203,4 @@ define(['Core/Configs'], function( Configs )
init: Init,
process: Process
};
});
});
116 changes: 88 additions & 28 deletions src/Network/PacketVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,24 +980,6 @@ define( ['./PacketStructure'], function( PACKET )
],


// Bank system
20130724: [
/*
[0x09A6,12], // ZC_BANKING_CHECK
[0x09A7,10,clif->pBankDeposit,2,4,6],
[0x09A8,16], // ZC_ACK_BANKING_DEPOSIT
[0x09A9,10,clif->pBankWithdraw,2,4,6],
[0x09AA,16], // ZC_ACK_BANKING_WITHDRAW
[0x09AB,6,clif->pBankCheck,2,4],
[0x09B6,6,clif->pBankOpen,2,4],
[0x09B7,4], // ZC_ACK_OPEN_BANKING
[0x09B8,6,clif->pBankClose,2,4],
[0x09B9,4], // ZC_ACK_CLOSE_BANKING
*/
],


//2013-07-03Ragexe
20130703: [
[PACKET.CZ.CHANGE_DIRECTION,0x0930,5,2,4],
Expand Down Expand Up @@ -1025,6 +1007,24 @@ define( ['./PacketStructure'], function( PACKET )
],


// Bank system
20130724: [
/*
[0x09A6,12], // ZC_BANKING_CHECK
[0x09A7,10,clif->pBankDeposit,2,4,6],
[0x09A8,16], // ZC_ACK_BANKING_DEPOSIT
[0x09A9,10,clif->pBankWithdraw,2,4,6],
[0x09AA,16], // ZC_ACK_BANKING_WITHDRAW
[0x09AB,6,clif->pBankCheck,2,4],
[0x09B6,6,clif->pBankOpen,2,4],
[0x09B7,4], // ZC_ACK_OPEN_BANKING
[0x09B8,6,clif->pBankClose,2,4],
[0x09B9,4], // ZC_ACK_CLOSE_BANKING
*/
],


//2013-08-07Ragexe
20130807: [
[PACKET.CZ.REQUEST_ACT,0x0369,7,2,6],
Expand Down Expand Up @@ -1145,9 +1145,30 @@ define( ['./PacketStructure'], function( PACKET )

// 2013-12-23cRagexe
20131223: [
[PACKET.CZ.REQUEST_ACT,0x0369,7,2,6],
[PACKET.CZ.USE_SKILL,0x083C,10,2,4,6],
[PACKET.CZ.REQUEST_MOVE,0x0437,5,2],
[PACKET.CZ.REQUEST_TIME,0x035F,6,2],
[PACKET.CZ.CHANGE_DIRECTION,0x0202,5,2,4],
[PACKET.CZ.ITEM_PICKUP,0x07E4,6,2],
[PACKET.CZ.ITEM_THROW,0x0362,6,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x07EC,8,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x0364,8,2,4],
[PACKET.CZ.USE_SKILL_TOGROUND,0x0438,10,2,4,6,8],
[PACKET.CZ.USE_SKILL_TOGROUNDMoreInfo,0x0366,90,2,4,6,8,10],
[PACKET.CZ.REQNAME,0x096A,6,2],
[PACKET.CZ.REQNAME_BYGID,0x0368,6,2],
[PACKET.CZ.SSILIST_ITEM_CLICK,0x0838,12,2,6,10],
[PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0835,2,0],
[PACKET.CZ.SEARCH_STORE_INFO,0x0819,-1,2,4,5,9,13,14,15],
[PACKET.CZ.REQ_TRADE_BUYING_STORE,0x0811,-1,2,4,8,12],
[PACKET.CZ.REQ_CLICK_TO_BUYING_STORE,0x0360,6,2],
[PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x0817,2,0],
[PACKET.CZ.REQ_OPEN_BUYING_STORE,0x0815,-1,2,4,8,9,89],
[PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0365,18,2,4],
[PACKET.CZ.ITEMLISTWIN_RES,0x0281,-1,2,4,8],
[PACKET.CZ.ENTER,0x022d,19,2,6,10,14,18],
[PACKET.CZ.PARTY_JOIN_REQ,0x0802,26,2],
[PACKET.CZ.ADD_FRIENDS,0x023B,26,2],
[PACKET.CZ.COMMAND_MER,0x0361,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x08A4,36,0],
Expand Down Expand Up @@ -1180,7 +1201,7 @@ define( ['./PacketStructure'], function( PACKET )
// packet(0x093E,8); // CZ_JOIN_BATTLE_FIELD
[PACKET.CZ.ITEMLISTWIN_RES,0x022D,-1,2,4,8],
[PACKET.CZ.ENTER,0x089C,19,2,6,10,14,18],
[PACKET.CZ.PARTY_JOIN_REQ,0x088A9,26,2],
[PACKET.CZ.PARTY_JOIN_REQ,0x08A9,26,2],
// packet(0x087E,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x0943,26,2],
[PACKET.CZ.COMMAND_MER,0x0949,5,2,4],
Expand Down Expand Up @@ -1253,7 +1274,6 @@ define( ['./PacketStructure'], function( PACKET )
[PACKET.CZ.ADD_FRIENDS,0x023B,26,2],
[PACKET.CZ.COMMAND_MER,0x0361,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x0938,36,0],
// packet(0x09df,7);
],


Expand Down Expand Up @@ -1283,13 +1303,14 @@ define( ['./PacketStructure'], function( PACKET )
// packet(0x0363,8); // CZ_JOIN_BATTLE_FIELD
[PACKET.CZ.ITEMLISTWIN_RES,0x0281,-1,2,4,8],
[PACKET.CZ.ENTER,0x0438,19,2,6,10,14,18],
[PACKET.CZ.PARTY_JOIN_REQ,26,0x0802,2],
[PACKET.CZ.PARTY_JOIN_REQ,0x0802,26,2],
// packet(0x0878,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x07E4,26,2],
[PACKET.CZ.COMMAND_MER,0x0934,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x095e,36,0]
[PACKET.CZ.ACK_STORE_PASSWORD,0x095e,36,0],
],


// 2014-04-02gRagexe
20140402: [
[PACKET.CZ.REQUEST_ACT,0x0946,7,2,6],
Expand Down Expand Up @@ -1320,9 +1341,10 @@ define( ['./PacketStructure'], function( PACKET )
// packet(0x088C,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x089A,26,2],
[PACKET.CZ.COMMAND_MER,0x0896,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x0926,36,0]
[PACKET.CZ.ACK_STORE_PASSWORD,0x0926,36,0],
],


// 2014-04-16aRagexe
20140416: [
[PACKET.CZ.REQUEST_ACT,0x0369,7,2,6],
Expand Down Expand Up @@ -1353,29 +1375,42 @@ define( ['./PacketStructure'], function( PACKET )
// packet(0x0436,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x023B,26,2],
[PACKET.CZ.COMMAND_MER,0x0361,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x095C,36,0]
[PACKET.CZ.ACK_STORE_PASSWORD,0x095C,36,0],
],


// 2014-10-16aRagexe
20141016: [
[PACKET.CZ.CHANGE_DIRECTION,0x0967,5,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x022D,8,2,4],
// packet(0x0363,8); // CZ_JOIN_BATTLE_FIELD
[PACKET.CZ.ENTER,0x086E,19,2,6,10,14,18],
// packet(0x0922,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x094B,26,2],
[PACKET.CZ.COMMAND_MER,0x0364,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x0936,36,0]
[PACKET.CZ.ACK_STORE_PASSWORD,0x0936,36,0],
// packet(0x09DF,7);
// packet(0x0a00,269);
// packet(0x0A19,2,clif->pRouletteOpen,0); // HEADER_CZ_REQ_OPEN_ROULETTE
// packet(0x0A1A,23); // HEADER_ZC_ACK_OPEN_ROULETTE
// packet(0x0A1B,2,clif->pRouletteInfo,0); // HEADER_CZ_REQ_ROULETTE_INFO
// packet(0x0A1C,-1); // HEADER_ZC_ACK_ROULEITTE_INFO
// packet(0x0A1D,2,clif->pRouletteClose,0); // HEADER_CZ_REQ_CLOSE_ROULETTE
// packet(0x0A1E,3); // HEADER_ZC_ACK_CLOSE_ROULETTE
// packet(0x0A1F,2,clif->pRouletteGenerate,0); // HEADER_CZ_REQ_GENERATE_ROULETTE
// packet(0x0A20,21); // HEADER_ZC_ACK_GENERATE_ROULETTE
// packet(0x0A21,3,clif->pRouletteRecvItem,2); // HEADER_CZ_RECV_ROULETTE_ITEM
// packet(0x0A22,5); // HEADER_ZC_RECV_ROULETTE_ITEM
],


// 2014-10-22bRagexe
20141022: [
[PACKET.CZ.CHANGE_DIRECTION,0x08AD,5,2,4],
[PACKET.CZ.ITEM_PICKUP,0x094E,6,2],
[PACKET.CZ.ITEM_THROW,0x087D,6,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0878,8,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x0811,8,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x08AA,8,2,4],
[PACKET.CZ.USE_SKILL_TOGROUND,0x023B,10,2,4,6,8],
[PACKET.CZ.SSILIST_ITEM_CLICK,0x0835,12,2,6,10],
[PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0940,2,0],
Expand All @@ -1386,7 +1421,32 @@ define( ['./PacketStructure'], function( PACKET )
// packet(0x08AB,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x091A,26,2],
[PACKET.CZ.COMMAND_MER,0x0899,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x0438,36,0]
[PACKET.CZ.ACK_STORE_PASSWORD,0x0438,36,0],
],


// 2015-05-13aRagexe
20150513: [
[PACKET.CZ.CHANGE_DIRECTION,0x0924,5,2,4],
[PACKET.CZ.ITEM_PICKUP,0x0958,6,2],
[PACKET.CZ.ITEM_THROW,0x0885,6,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_BODY_TO_STORE,0x0879,8,2,4],
[PACKET.CZ.MOVE_ITEM_FROM_STORE_TO_BODY,0x0864,8,2,4],
[PACKET.CZ.USE_SKILL_TOGROUND,0x0438,10,2,4,6,8],
[PACKET.CZ.SSILIST_ITEM_CLICK,0x0838,12,2,6,10],
[PACKET.CZ.SEARCH_STORE_INFO_NEXT_PAGE,0x0835,2,0],
[PACKET.CZ.REQ_CLOSE_BUYING_STORE,0x022D,2,0],
[PACKET.CZ.PARTY_BOOKING_REQ_REGISTER,0x0883,18,2,4],
// packet(0x02C4,8); // CZ_JOIN_BATTLE_FIELD
[PACKET.CZ.ITEMLISTWIN_RES,0x0960,-1,2,4,8],
[PACKET.CZ.ENTER,0x0363,19,2,6,10,14,18],
[PACKET.CZ.PARTY_JOIN_REQ,0x094A,26,2],
// packet(0x0927,4); // CZ_GANGSI_RANK
[PACKET.CZ.ADD_FRIENDS,0x08A8,26,2],
[PACKET.CZ.COMMAND_MER,0x0817,5,2,4],
[PACKET.CZ.ACK_STORE_PASSWORD,0x0923,36,0],
// packet(0x09e8,11); //CZ_OPEN_MAILBOX
// packet(0x0a2e,6); //TITLE
],
};
});
});

0 comments on commit 82c6fe7

Please sign in to comment.