TA的每日心情 | 衰 2022-12-15 19:48 |
---|
签到天数: 6 天 [LV.2]偶尔看看I
中级会员
- 积分
- 355
|
修復前提: 先照著kaokao的修復方法弄到可以進商城 sendops.properties 內修改
CS_UPDATE = 0x157CS_OPERATION = 0x158CashShopOperation.java內EnterCS函數[Java] 纯文本查看 复制代码 c.getSession().write(MaplePacketCreator.serverBlocked(2));
‐ c.getSession().write(MaplePacketCreator.enableActions());
‐ /* CashShopServer.getPlayerStorage().registerPlayer(chr);
‐ c.getSession().write(MTSCSPacket.warpCS(c));
‐ CSUpdate(c);*/
+ CashShopServer.getPlayerStorage().registerPlayer(chr);
+ c.getSession().write(MTSCSPacket.warpCS(c));
+ CSUpdate(c); CashShopOperation.java內BuyCashItem函數[Java] 纯文本查看 复制代码 } else if (action == 14) { //get item from csinventory
+ } else if (action == 13) { //get item from csinventory
...
‐ } else if (action == 15) { //put item in cash inventory
+ } else if (action == 14) { //get item from csinventory
...
‐ } else if (action == 36) { //36 = friendship, 30 = crush
+ } else if (action == 35 || action == 29 ) { //35 = friendship, 29 = crush
...
‐ } else if (action == 31) {
+ } else if (action == 30) {
...
‐ } else if (action == 33) {
+ } else if (action == 32) { MTSCSPacket.java 下方函數覆蓋[Java] 纯文本查看 复制代码 MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.CS_OPERATION.getValue());
mplew.write(0x59);
mplew.writeShort(slots);
return mplew.getPacket();
}
public static MaplePacket confirmToCSInventory(IItem item, int accId, int sn) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.CS_OPERATION.getValue());
mplew.write(0x61);
addCashItemInfo(mplew, item, accId, sn, false);
return mplew.getPacket();
}
public static MaplePacket confirmFromCSInventory(IItem item, short pos) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.CS_OPERATION.getValue());
mplew.write(0x5F);
mplew.writeShort(pos);
PacketHelper.addItemInfo(mplew, item, true, true); 至於新增商城道具,SQL[SQL] 纯文本查看 复制代码 gender,count,meso,discount_price,mark, unk_1, unk_2, unk_3 ) VALUES ( 10000198, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0); 價格也在Commodity.img.xml裡面設定
|
|