Class MTSCSPacket
java.lang.Object
tools.packet.MTSCSPacket
現金商城(Cash Shop)與楓幣交易市場(MTS)相關封包的建構器。
本類別以靜態方法提供 CashShopServer 所需的所有送出封包,包括:
- 進入 / 離開現金商城:
warpCS寫入完整角色資訊,sendCSData回傳商品目錄。 - 商城資訊
getCSInfo:商品清單、隱藏品項、自訂品項(CashModItem) 及隨機禮盒(randomItemInfo)。 - MTS 拍賣市場:物品上架、搜尋結果、購買確認、已購清單等封包。
- 現金庫存操作:購買確認、贈送道具、商城幣扣除通知。
送出 opcode 來自 SendPacketOpcode;角色資料序列化委由
PacketHelper.addCharacterInfo(MaplePacketLittleEndianWriter, MapleCharacter) 完成;道具資訊讀取自
CashItemFactory。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidaddCashItemInfo(MaplePacketLittleEndianWriter mplew, int uniqueid, int accId, int itemid, int sn, int quantity, String sender, long expire) static final voidaddCashItemInfo(MaplePacketLittleEndianWriter mplew, int uniqueid, int accId, int itemid, int sn, int quantity, String sender, long expire, boolean isFirst) static final voidaddCashItemInfo(MaplePacketLittleEndianWriter mplew, Item item, int accId, int sn) static final voidaddCashItemInfo(MaplePacketLittleEndianWriter mplew, Item item, int accId, int sn, boolean isFirst) static final byte[]addToCartMessage(boolean fail, boolean remove) static byte[]cashItemDelete(int uniqueid) static byte[]cashItemExpired(int uniqueid) static byte[]changeNameCheck(String charname, boolean nameUsed) static byte[]changeNameResponse(int mode, int pic) static byte[]changePetFlag(int uniqueId, boolean added, int flagAdded) static byte[]changePetName(MapleCharacter chr, String newname, int slot) static byte[]static byte[]confirmFromCSInventory(Item item, short pos) static byte[]confirmToCSInventory(Item item, int accId, int sn) static byte[]static byte[]freeCashItem(int itemId) static byte[]getBoosterPack(int f1, int f2, int f3) static byte[]static byte[]static byte[]static byte[]static byte[]static byte[]static final byte[]static final byte[]static final byte[]static final byte[]getMTSConfirmTransfer(int quantity, int pos) static final byte[]static final byte[]static final byte[]static final byte[]getMTSWantedListingOver(int nx, int items) static final byte[]static final byte[]getTransferInventory(List<Item> items, boolean changed) static byte[]getTrockMessage(byte op) static byte[]increasedInvSlots(int inv, int slots) static byte[]static byte[]increasedStorageSlots(int slots, boolean characterSlots) static byte[]static byte[]NewViciousHammer(boolean start, int hammered) static byte[]OnMapTransferResult(MapleCharacter chr, byte vip, boolean delete) static byte[]OnMemoResult(byte act, byte mode) static byte[]playCashSong(int itemid, String name) static byte[]static byte[]receiveFreeCSItem(Item item, int sn, int accid) static byte[]receiveGachaStamps(boolean invfull, int amount) static byte[]sendBoughtMaplePoints(int maplePoints) static byte[]sendBoughtRings(boolean couple, Item item, int sn, int accid, String receiver) static byte[]sendCashGachapon(boolean cashItem, int idFirst, Item item, int accid) static byte[]sendCashRefund(int cash) static byte[]sendCSFail(int err) static byte[]static byte[]sendMesobagFailed(boolean random) static byte[]sendMesobagSuccess(int mesos) static final byte[]sendMTS(List<MTSStorage.MTSItemInfo> items, int tab, int type, int page, int pages) static byte[]sendRandomBox(int uniqueid, Item item, short pos) static byte[]sendRandomMesobagSuccess(int size, int mesos) static byte[]sendTwinDragonEgg(boolean test1, boolean test2, int idFirst, Item item, int accid) static byte[]sendWishList(MapleCharacter chr, boolean update) static byte[]showBoughtCSItem(int itemid, int sn, int uniqueid, int accid, int quantity, String giftFrom, long expire) static byte[]showBoughtCSItem(Item item, int sn, int accid) static byte[]showBoughtCSItemFailed(int mode, int sn) static byte[]showBoughtCSPackage(Map<Integer, Item> ccc, int accid) static byte[]showBoughtCSQuestItem(int price, short quantity, byte position, int itemid) static byte[]showCouponGifted(Map<Integer, Item> items, String receiver, MapleClient c) static byte[]showCouponRedeemedItem(Map<Integer, Item> items, int mesos, int maplePoints, MapleClient c) static final byte[]static byte[]static byte[]static byte[]showOneADayInfo(boolean show, int sn) static byte[]showXmasSurprise(boolean full, int idFirst, Item item, int accid) static final byte[]startMTS(MapleCharacter chr) static byte[]updatePurchaseRecord(int value) static byte[]useAlienSocket(boolean start) static byte[]useChalkboard(int charid, String msg) static byte[]VegaResult(byte result) static byte[]ViciousHammer(boolean start, int hammered) static byte[]
-
Constructor Details
-
MTSCSPacket
public MTSCSPacket()
-
-
Method Details
-
warpCS
-
getCSInfo
-
getCSAccountName
-
chargeCash
public static byte[] chargeCash() -
showNXMapleTokens
-
LimitGoodsCountChanged
public static byte[] LimitGoodsCountChanged() -
getCSInventory
-
getCSGifts
-
sendWishList
-
showBoughtCSItem
-
showBoughtCSItem
public static byte[] showBoughtCSItem(int itemid, int sn, int uniqueid, int accid, int quantity, String giftFrom, long expire) -
showBoughtCSItemFailed
public static byte[] showBoughtCSItemFailed(int mode, int sn) -
showBoughtCSPackage
-
sendGift
public static byte[] sendGift(int price, int itemid, int quantity, String receiver, boolean packages) -
showCouponRedeemedItem
public static byte[] showCouponRedeemedItem(Map<Integer, Item> items, int mesos, int maplePoints, MapleClient c) -
showCouponGifted
-
increasedInvSlots
public static byte[] increasedInvSlots(int inv, int slots) -
increasedStorageSlots
public static byte[] increasedStorageSlots(int slots, boolean characterSlots) -
increasedPendantSlots
public static byte[] increasedPendantSlots() -
confirmFromCSInventory
-
confirmToCSInventory
-
cashItemDelete
public static byte[] cashItemDelete(int uniqueid) -
rebateCashItem
public static byte[] rebateCashItem() -
sendBoughtRings
-
receiveFreeCSItem
-
cashItemExpired
public static byte[] cashItemExpired(int uniqueid) -
showBoughtCSQuestItem
public static byte[] showBoughtCSQuestItem(int price, short quantity, byte position, int itemid) -
updatePurchaseRecord
public static byte[] updatePurchaseRecord(int value) -
sendCashRefund
public static byte[] sendCashRefund(int cash) -
sendRandomBox
-
sendCashGachapon
-
sendTwinDragonEgg
public static byte[] sendTwinDragonEgg(boolean test1, boolean test2, int idFirst, Item item, int accid) -
sendBoughtMaplePoints
public static byte[] sendBoughtMaplePoints(int maplePoints) -
changeNameCheck
-
changeNameResponse
public static byte[] changeNameResponse(int mode, int pic) -
receiveGachaStamps
public static byte[] receiveGachaStamps(boolean invfull, int amount) -
freeCashItem
public static byte[] freeCashItem(int itemId) -
showXmasSurprise
-
showOneADayInfo
public static byte[] showOneADayInfo(boolean show, int sn) -
playCashSong
-
useAlienSocket
public static byte[] useAlienSocket(boolean start) -
ViciousHammer
public static byte[] ViciousHammer(boolean start, int hammered) -
NewViciousHammer
public static byte[] NewViciousHammer(boolean start, int hammered) -
changePetFlag
public static byte[] changePetFlag(int uniqueId, boolean added, int flagAdded) -
changePetName
-
OnMemoResult
public static byte[] OnMemoResult(byte act, byte mode) -
showNotes
- Throws:
SQLException
-
useChalkboard
-
OnMapTransferResult
-
getTrockMessage
public static byte[] getTrockMessage(byte op) -
addCashItemInfo
public static final void addCashItemInfo(MaplePacketLittleEndianWriter mplew, Item item, int accId, int sn) -
addCashItemInfo
public static final void addCashItemInfo(MaplePacketLittleEndianWriter mplew, Item item, int accId, int sn, boolean isFirst) -
addCashItemInfo
public static final void addCashItemInfo(MaplePacketLittleEndianWriter mplew, int uniqueid, int accId, int itemid, int sn, int quantity, String sender, long expire) -
addCashItemInfo
public static final void addCashItemInfo(MaplePacketLittleEndianWriter mplew, int uniqueid, int accId, int itemid, int sn, int quantity, String sender, long expire, boolean isFirst) -
sendCSFail
public static byte[] sendCSFail(int err) -
enableCSUse
public static byte[] enableCSUse() -
getBoosterPack
public static byte[] getBoosterPack(int f1, int f2, int f3) -
getBoosterPackClick
public static byte[] getBoosterPackClick() -
getBoosterPackReveal
public static byte[] getBoosterPackReveal() -
sendMesobagFailed
public static byte[] sendMesobagFailed(boolean random) -
sendMesobagSuccess
public static byte[] sendMesobagSuccess(int mesos) -
sendRandomMesobagSuccess
public static byte[] sendRandomMesobagSuccess(int size, int mesos) -
startMTS
-
sendMTS
public static final byte[] sendMTS(List<MTSStorage.MTSItemInfo> items, int tab, int type, int page, int pages) -
showMTSCash
-
getMTSWantedListingOver
public static final byte[] getMTSWantedListingOver(int nx, int items) -
getMTSConfirmSell
public static final byte[] getMTSConfirmSell() -
getMTSFailSell
public static final byte[] getMTSFailSell() -
getMTSConfirmBuy
public static final byte[] getMTSConfirmBuy() -
getMTSFailBuy
public static final byte[] getMTSFailBuy() -
getMTSConfirmCancel
public static final byte[] getMTSConfirmCancel() -
getMTSFailCancel
public static final byte[] getMTSFailCancel() -
getMTSConfirmTransfer
public static final byte[] getMTSConfirmTransfer(int quantity, int pos) -
getNotYetSoldInv
-
getTransferInventory
-
addToCartMessage
public static final byte[] addToCartMessage(boolean fail, boolean remove) -
VegaResult
public static byte[] VegaResult(byte result)
-