Class PlayerShopPacket

java.lang.Object
tools.packet.PlayerShopPacket

public class PlayerShopPacket extends Object
玩家商店、僱用商人(Hired Merchant)與迷你遊戲相關封包的建構器。

本類別以靜態方法提供自由市場交易相關的所有送出封包,包括:

  • 商店開設 / 關閉:sendTitleBox(開設提示 / 錯誤訊息)、addCharBox / removeCharBox(地圖上商店招牌顯示)。
  • 商店內容:getShopInfoMaplePlayerShopHiredMerchant 商品清單)、updatePlayerShop
  • 交易通知:getMiniGame(迷你遊戲面板)、getPlayerShopItemUpdate (道具數量更新)、getBoughtItem(購買紀錄)。
  • 僱用商人:getMiniGameResultsendDeliveryRequestgetMerchantsItemsMerchItemPackage 倉庫取回)。

商品資料依賴 IMaplePlayerShop 介面; 道具序列化委由 PacketHelper 完成; 送出 opcode 來自 SendPacketOpcode; 組裝使用 MaplePacketLittleEndianWriter

  • Constructor Details

    • PlayerShopPacket

      public PlayerShopPacket()
  • Method Details

    • sendTitleBox

      public static byte[] sendTitleBox()
    • sendTitleBox

      public static byte[] sendTitleBox(int mode)
    • requestShopPic

      public static byte[] requestShopPic(int oid)
    • addCharBox

      public static final byte[] addCharBox(MapleCharacter c, int type)
    • removeCharBox

      public static final byte[] removeCharBox(MapleCharacter c)
    • sendPlayerShopBox

      public static final byte[] sendPlayerShopBox(MapleCharacter c)
    • getHiredMerch

      public static final byte[] getHiredMerch(MapleCharacter chr, HiredMerchant merch, boolean firstTime)
    • getPlayerStore

      public static final byte[] getPlayerStore(MapleCharacter chr, boolean firstTime)
    • shopChat

      public static final byte[] shopChat(String message, int slot)
    • shopErrorMessage

      public static final byte[] shopErrorMessage(int error, int type)
    • spawnHiredMerchant

      public static final byte[] spawnHiredMerchant(HiredMerchant hm)
    • destroyHiredMerchant

      public static final byte[] destroyHiredMerchant(int id)
    • shopItemUpdate

      public static final byte[] shopItemUpdate(IMaplePlayerShop shop)
    • shopVisitorAdd

      public static final byte[] shopVisitorAdd(MapleCharacter chr, int slot)
    • shopVisitorLeave

      public static final byte[] shopVisitorLeave(byte slot)
    • Merchant_Buy_Error

      public static final byte[] Merchant_Buy_Error(byte message)
    • updateHiredMerchant

      public static final byte[] updateHiredMerchant(HiredMerchant shop)
    • merchItem_Message

      public static final byte[] merchItem_Message(int op)
    • merchItemStore

      public static final byte[] merchItemStore(byte op, int days, int fees)
    • merchItemStore_ItemData

      public static final byte[] merchItemStore_ItemData(MerchItemPackage pack)
    • getMiniGame

      public static byte[] getMiniGame(MapleClient c, MapleMiniGame minigame)
    • getMiniGameReady

      public static byte[] getMiniGameReady(boolean ready)
    • getMiniGameExitAfter

      public static byte[] getMiniGameExitAfter(boolean ready)
    • getMiniGameStart

      public static byte[] getMiniGameStart(int loser)
    • getMiniGameSkip

      public static byte[] getMiniGameSkip(int slot)
    • getMiniGameRequestTie

      public static byte[] getMiniGameRequestTie()
    • getMiniGameDenyTie

      public static byte[] getMiniGameDenyTie()
    • getMiniGameRequestRedo

      public static byte[] getMiniGameRequestRedo()
    • getMiniGameDenyRedo

      public static byte[] getMiniGameDenyRedo()
    • getMiniGameFull

      public static byte[] getMiniGameFull()
    • getMiniGameMoveOmok

      public static byte[] getMiniGameMoveOmok(int move1, int move2, int move3)
    • getMiniGameNewVisitor

      public static byte[] getMiniGameNewVisitor(MapleCharacter c, int slot, MapleMiniGame game)
    • addGameInfo

      public static void addGameInfo(MaplePacketLittleEndianWriter mplew, MapleCharacter chr, MapleMiniGame game)
    • getMiniGameClose

      public static byte[] getMiniGameClose(byte number)
    • getMatchCardStart

      public static byte[] getMatchCardStart(MapleMiniGame game, int loser)
    • getMatchCardSelect

      public static byte[] getMatchCardSelect(int turn, int slot, int firstslot, int type)
    • getMiniGameResult

      public static byte[] getMiniGameResult(MapleMiniGame game, int type, int x)
    • MerchantBlackListView

      public static final byte[] MerchantBlackListView(List<String> blackList)
    • MerchantVisitorView

      public static final byte[] MerchantVisitorView(List<String> visitor)