Class MTSCSPacket

java.lang.Object
tools.packet.MTSCSPacket

public class MTSCSPacket extends Object
現金商城(Cash Shop)與楓幣交易市場(MTS)相關封包的建構器。

本類別以靜態方法提供 CashShopServer 所需的所有送出封包,包括:

  • 進入 / 離開現金商城:warpCS 寫入完整角色資訊,sendCSData 回傳商品目錄。
  • 商城資訊 getCSInfo:商品清單、隱藏品項、自訂品項(CashModItem) 及隨機禮盒(randomItemInfo)。
  • MTS 拍賣市場:物品上架、搜尋結果、購買確認、已購清單等封包。
  • 現金庫存操作:購買確認、贈送道具、商城幣扣除通知。

送出 opcode 來自 SendPacketOpcode;角色資料序列化委由 PacketHelper.addCharacterInfo(MaplePacketLittleEndianWriter, MapleCharacter) 完成;道具資訊讀取自 CashItemFactory

  • Constructor Details

    • MTSCSPacket

      public MTSCSPacket()
  • Method Details

    • warpCS

      public static byte[] warpCS(MapleClient c)
    • getCSInfo

      public static byte[] getCSInfo(MapleClient c)
    • getCSAccountName

      public static byte[] getCSAccountName(MapleClient c)
    • chargeCash

      public static byte[] chargeCash()
    • showNXMapleTokens

      public static byte[] showNXMapleTokens(MapleCharacter chr)
    • LimitGoodsCountChanged

      public static byte[] LimitGoodsCountChanged()
    • getCSInventory

      public static byte[] getCSInventory(MapleClient c)
    • getCSGifts

      public static byte[] getCSGifts(MapleClient c)
    • sendWishList

      public static byte[] sendWishList(MapleCharacter chr, boolean update)
    • showBoughtCSItem

      public static byte[] showBoughtCSItem(Item item, int sn, int accid)
    • 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

      public static byte[] showBoughtCSPackage(Map<Integer,Item> ccc, int accid)
    • 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

      public static byte[] showCouponGifted(Map<Integer,Item> items, String receiver, MapleClient c)
    • increasedInvSlots

      public static byte[] increasedInvSlots(int inv, int slots)
    • increasedStorageSlots

      public static byte[] increasedStorageSlots(int slots, boolean characterSlots)
    • increasedPendantSlots

      public static byte[] increasedPendantSlots()
    • confirmFromCSInventory

      public static byte[] confirmFromCSInventory(Item item, short pos)
    • confirmToCSInventory

      public static byte[] confirmToCSInventory(Item item, int accId, int sn)
    • cashItemDelete

      public static byte[] cashItemDelete(int uniqueid)
    • rebateCashItem

      public static byte[] rebateCashItem()
    • sendBoughtRings

      public static byte[] sendBoughtRings(boolean couple, Item item, int sn, int accid, String receiver)
    • receiveFreeCSItem

      public static byte[] receiveFreeCSItem(Item item, int sn, int accid)
    • 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

      public static byte[] sendRandomBox(int uniqueid, Item item, short pos)
    • sendCashGachapon

      public static byte[] sendCashGachapon(boolean cashItem, int idFirst, Item item, int accid)
    • sendTwinDragonEgg

      public static byte[] sendTwinDragonEgg(boolean test1, boolean test2, int idFirst, Item item, int accid)
    • sendBoughtMaplePoints

      public static byte[] sendBoughtMaplePoints(int maplePoints)
    • changeNameCheck

      public static byte[] changeNameCheck(String charname, boolean nameUsed)
    • 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

      public static byte[] showXmasSurprise(boolean full, int idFirst, Item item, int accid)
    • showOneADayInfo

      public static byte[] showOneADayInfo(boolean show, int sn)
    • playCashSong

      public static byte[] playCashSong(int itemid, String name)
    • 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

      public static byte[] changePetName(MapleCharacter chr, String newname, int slot)
    • OnMemoResult

      public static byte[] OnMemoResult(byte act, byte mode)
    • showNotes

      public static byte[] showNotes(ResultSet notes, int count) throws SQLException
      Throws:
      SQLException
    • useChalkboard

      public static byte[] useChalkboard(int charid, String msg)
    • OnMapTransferResult

      public static byte[] OnMapTransferResult(MapleCharacter chr, byte vip, boolean delete)
    • 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

      public static final byte[] startMTS(MapleCharacter chr)
    • sendMTS

      public static final byte[] sendMTS(List<MTSStorage.MTSItemInfo> items, int tab, int type, int page, int pages)
    • showMTSCash

      public static final byte[] showMTSCash(MapleCharacter p)
    • 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

      public static final byte[] getNotYetSoldInv(List<MTSStorage.MTSItemInfo> items)
    • getTransferInventory

      public static final byte[] getTransferInventory(List<Item> items, boolean changed)
    • addToCartMessage

      public static final byte[] addToCartMessage(boolean fail, boolean remove)
    • VegaResult

      public static byte[] VegaResult(byte result)