Class NPCPacket

java.lang.Object
tools.packet.NPCPacket

public class NPCPacket extends Object
NPC 相關封包建構器。

CField 機械式拆分而來(P5 God class 分檔),方法簽名與封包位元組完全不變。

  • Constructor Details

    • NPCPacket

      public NPCPacket()
  • Method Details

    • spawnNPC

      public static byte[] spawnNPC(MapleNPC life, boolean show)
    • removeNPC

      public static byte[] removeNPC(int objectid)
    • removeNPCController

      public static byte[] removeNPCController(int objectid)
    • spawnNPCRequestController

      public static byte[] spawnNPCRequestController(MapleNPC life, boolean MiniMap)
    • setNPCScriptable

      public static byte[] setNPCScriptable(List<Pair<Integer,String>> npcs)
    • setNPCSpecialAction

      public static byte[] setNPCSpecialAction(int oid, String action, int time, boolean unk)
    • NPCSpecialAction

      public static byte[] NPCSpecialAction(int oid, int value, int x, int y)
    • OnScriptMessage

      public static byte[] OnScriptMessage(int nSpeakerTypeID, int nSpeakerTemplateID, int nAnotherSpeakerTemplateID, int nOtherSpeakerTemplateID, byte msgType, int bParam, int eColor, String[] msg, int[] value, int[][] values, MaplePet[] pets)
    • getNPCTalk

      public static byte[] getNPCTalk(int npc, byte msgType, String talk, String endBytes, byte type)
    • getOthersTalk

      public static byte[] getOthersTalk(int npc, byte msgType, int npc_unk, String talk, String endBytes, byte type)
    • getAdviceTalk

      public static byte[] getAdviceTalk(String[] wzinfo)
    • getNPCTalk

      public static byte[] getNPCTalk(int npc, byte msgType, String talk, String endBytes, byte type, int diffNPC)
    • getMapSelection

      public static byte[] getMapSelection(int npcid, String sel)
    • getBuffSelection

      public static byte[] getBuffSelection(int npcid, String sel)
    • getNPCTalkStyle

      public static byte[] getNPCTalkStyle(int npc, String talk, int... args)
    • getAndroidTalkStyle

      public static byte[] getAndroidTalkStyle(int npc, String talk, int... args)
    • getNPCTalkNum

      public static byte[] getNPCTalkNum(int npc, String talk, int def, int min, int max)
    • getNPCTalkText

      public static byte[] getNPCTalkText(int npc, String talk)
    • getEvanTutorial

      public static byte[] getEvanTutorial(String data)
    • getNPCShop

      public static byte[] getNPCShop(int sid, MapleShop shop, MapleClient c)
    • confirmShopTransaction

      public static byte[] confirmShopTransaction(byte code, MapleShop shop, MapleClient c, int indexBought)
    • getStorage

      public static byte[] getStorage(int npcId, byte slots, Collection<Item> items, int meso)
    • getStorageFull

      public static byte[] getStorageFull()
    • mesoStorage

      public static byte[] mesoStorage(byte slots, int meso)
    • arrangeStorage

      public static byte[] arrangeStorage(byte slots, Collection<Item> items, boolean changed)
    • storeStorage

      public static byte[] storeStorage(byte slots, MapleInventoryType type, Collection<Item> items)
    • takeOutStorage

      public static byte[] takeOutStorage(byte slots, MapleInventoryType type, Collection<Item> items)