Class PlayerShopPacket
java.lang.Object
tools.packet.PlayerShopPacket
玩家商店、僱用商人(Hired Merchant)與迷你遊戲相關封包的建構器。
本類別以靜態方法提供自由市場交易相關的所有送出封包,包括:
- 商店開設 / 關閉:
sendTitleBox(開設提示 / 錯誤訊息)、addCharBox/removeCharBox(地圖上商店招牌顯示)。 - 商店內容:
getShopInfo(MaplePlayerShop或HiredMerchant商品清單)、updatePlayerShop。 - 交易通知:
getMiniGame(迷你遊戲面板)、getPlayerShopItemUpdate(道具數量更新)、getBoughtItem(購買紀錄)。 - 僱用商人:
getMiniGameResult、sendDeliveryRequest、getMerchantsItems(MerchItemPackage倉庫取回)。
商品資料依賴 IMaplePlayerShop 介面;
道具序列化委由 PacketHelper 完成;
送出 opcode 來自 SendPacketOpcode;
組裝使用 MaplePacketLittleEndianWriter。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final byte[]addCharBox(MapleCharacter c, int type) static voidaddGameInfo(MaplePacketLittleEndianWriter mplew, MapleCharacter chr, MapleMiniGame game) static final byte[]destroyHiredMerchant(int id) static final byte[]getHiredMerch(MapleCharacter chr, HiredMerchant merch, boolean firstTime) static byte[]getMatchCardSelect(int turn, int slot, int firstslot, int type) static byte[]getMatchCardStart(MapleMiniGame game, int loser) static byte[]getMiniGame(MapleClient c, MapleMiniGame minigame) static byte[]getMiniGameClose(byte number) static byte[]static byte[]static byte[]getMiniGameExitAfter(boolean ready) static byte[]static byte[]getMiniGameMoveOmok(int move1, int move2, int move3) static byte[]getMiniGameNewVisitor(MapleCharacter c, int slot, MapleMiniGame game) static byte[]getMiniGameReady(boolean ready) static byte[]static byte[]static byte[]getMiniGameResult(MapleMiniGame game, int type, int x) static byte[]getMiniGameSkip(int slot) static byte[]getMiniGameStart(int loser) static final byte[]getPlayerStore(MapleCharacter chr, boolean firstTime) static final byte[]Merchant_Buy_Error(byte message) static final byte[]MerchantBlackListView(List<String> blackList) static final byte[]MerchantVisitorView(List<String> visitor) static final byte[]merchItem_Message(int op) static final byte[]merchItemStore(byte op, int days, int fees) static final byte[]static final byte[]static byte[]requestShopPic(int oid) static final byte[]static byte[]static byte[]sendTitleBox(int mode) static final byte[]static final byte[]shopErrorMessage(int error, int type) static final byte[]static final byte[]shopVisitorAdd(MapleCharacter chr, int slot) static final byte[]shopVisitorLeave(byte slot) static final byte[]static final byte[]
-
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
-
removeCharBox
-
sendPlayerShopBox
-
getHiredMerch
public static final byte[] getHiredMerch(MapleCharacter chr, HiredMerchant merch, boolean firstTime) -
getPlayerStore
-
shopChat
-
shopErrorMessage
public static final byte[] shopErrorMessage(int error, int type) -
spawnHiredMerchant
-
destroyHiredMerchant
public static final byte[] destroyHiredMerchant(int id) -
shopItemUpdate
-
shopVisitorAdd
-
shopVisitorLeave
public static final byte[] shopVisitorLeave(byte slot) -
Merchant_Buy_Error
public static final byte[] Merchant_Buy_Error(byte message) -
updateHiredMerchant
-
merchItem_Message
public static final byte[] merchItem_Message(int op) -
merchItemStore
public static final byte[] merchItemStore(byte op, int days, int fees) -
merchItemStore_ItemData
-
getMiniGame
-
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
-
addGameInfo
public static void addGameInfo(MaplePacketLittleEndianWriter mplew, MapleCharacter chr, MapleMiniGame game) -
getMiniGameClose
public static byte[] getMiniGameClose(byte number) -
getMatchCardStart
-
getMatchCardSelect
public static byte[] getMatchCardSelect(int turn, int slot, int firstslot, int type) -
getMiniGameResult
-
MerchantBlackListView
-
MerchantVisitorView
-