Advertisement
Riremito

JMS v186.1 GM Command Packet

Nov 24th, 2021
1,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.96 KB | None | 0 0
  1.     public static boolean Accept(final SeekableLittleEndianAccessor p, final MapleClient c) {
  2.         byte command = p.readByte();
  3.  
  4.         Debug.DebugLog("[GM Command] " + command);
  5.  
  6.         switch (command) {
  7.             // /create
  8.             case 0x00: {
  9.                 // アイテム作成
  10.                 int itemid = p.readInt();
  11.                 return true;
  12.             }
  13.             // /ban test
  14.             case 0x03: {
  15.                 // @0086 [03] 04 00 74 65 73 74
  16.                 return true;
  17.             }
  18.             // /norank test
  19.             case 0x06: {
  20.                 // @0086 [06] 04 00 74 65 73 74
  21.                 return true;
  22.             }
  23.             // /unblock test
  24.             case 0x05: {
  25.                 // @0086 [05] 04 00 74 65 73 74
  26.                 return true;
  27.             }
  28.             // /pton test
  29.             // /ptoff test
  30.             case 0x07: {
  31.                 // @0086 [07] 01 04 00 74 65 73 74
  32.                 // @0086 [07] 00 04 00 74 65 73 74
  33.                 return true;
  34.             }
  35.             // /hide 0, 1
  36.             case 0x0F: {
  37.                 // @0086 [0F] 00
  38.                 return true;
  39.             }
  40.             // /questreset 111
  41.             case 0x16: {
  42.                 // @0086 [16] 6F 00
  43.                 return true;
  44.             }
  45.             // /hackcheckcountreload
  46.             case 0x19: {
  47.                 // @0086 [19]
  48.                 return true;
  49.             }
  50.             // /summon
  51.             case 0x1A: {
  52.                 // Mob召喚
  53.                 int mobid = p.readInt();
  54.                 int count = p.readInt();
  55.                 return true;
  56.             }
  57.             // /levelset 111
  58.             case 0x1C: {
  59.                 // @0086 [1C] 6F
  60.                 return true;
  61.             }
  62.             // /job 900
  63.             case 0x1D: {
  64.                 // @0086 [1D] 84 03 00 00
  65.                 return true;
  66.             }
  67.             // /apget 111
  68.             case 0x1F: {
  69.                 // @0086 [1F] 6F 00 00 00
  70.                 return true;
  71.             }
  72.             // /spget 111
  73.             case 0x20: {
  74.                 // @0086 [20] 6F 00 00 00
  75.                 return true;
  76.             }
  77.             // /str
  78.             case 0x21: {
  79.                 // AP割り当て
  80.                 int count = p.readInt();
  81.                 return true;
  82.             }
  83.             // /dex
  84.             case 0x22: {
  85.                 // AP割り当て
  86.                 int count = p.readInt();
  87.                 return true;
  88.             }
  89.             // /int
  90.             case 0x23: {
  91.                 // AP割り当て
  92.                 int count = p.readInt();
  93.                 return true;
  94.             }
  95.             // /luk
  96.             case 0x24: {
  97.                 // AP割り当て
  98.                 int count = p.readInt();
  99.                 return true;
  100.             }
  101.             // /mmon test
  102.             case 0x26: {
  103.                 // @0086 [26] 04 00 74 65 73 74
  104.                 return true;
  105.             }
  106.             // /mmoff test
  107.             case 0x27: {
  108.                 // @0086 [24] 04 00 74 65 73 74
  109.                 return true;
  110.             }
  111.             // /refreshweatherevent
  112.             case 0x30: {
  113.                 // @0086 [30]
  114.                 return true;
  115.             }
  116.             // /stagesystem test 7
  117.             case 0x33: {
  118.                 // @0086 [33] 04 00 74 65 73 74 [07]
  119.                 return true;
  120.             }
  121.             // /activatestagesystem 1
  122.             case 0x34: {
  123.                 // @0086 [34] [01]
  124.                 return true;
  125.             }
  126.             // /cubecomplete
  127.             case 0x36: {
  128.                 // @0086 [36]
  129.                 return true;
  130.             }
  131.             // /createnpc
  132.             case 0x3B: {
  133.                 // NPC召喚?
  134.                 //int npcid = p.readInt();
  135.                 return true;
  136.             }
  137.             default:
  138.                 break;
  139.         }
  140.  
  141.         return false;
  142.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement