Cheat Engine

The Underground Site of Cheat Engine


    Increasing Character / Storage Slots

    Share

    Admin
    Admin

    Posts : 43
    Join date : 2009-05-18

    Increasing Character / Storage Slots

    Post  Admin on Mon May 18, 2009 11:46 am

    This is for increasing Character / Storage Slots via Cash Shop (old) and for showing the current amount of slots when hovering with the mouse (new I guess).

    World based character slots
    http://forum.gamezstorm.info/showthread.php?t=169

    Open MapleStorage.java and add
    Code:
        public byte getSlots() {
            return slots;
        }

        public void gainSlots(byte gain) {
            slots += gain;
        }
    Open BuyCSItemHandler.java and add
    Code:
            if (action == 7) { // Storage Slots
                slea.skip(1);
                int useNX = slea.readByte();

                if (c.getPlayer().getCSPoints(useNX) < 4000) {
                    c.getSession().write(MaplePacketCreator.enableCSUse0());
                    c.getSession().write(MaplePacketCreator.enableCSUse1(c));
                    c.getSession().write(MaplePacketCreator.enableCSUse2());
                    c.getSession().write(MaplePacketCreator.enableActions());
                    return;
                }

                if (c.getPlayer().getStorage().getSlots() <= 44) {
                    c.getPlayer().modifyCSPoints(useNX, -4000);
                    c.getPlayer().getStorage().gainSlots((byte) 4);
                }

                c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
                c.getSession().write(MaplePacketCreator.enableCSUse0());
                c.getSession().write(MaplePacketCreator.enableCSUse1(c));
                c.getSession().write(MaplePacketCreator.enableCSUse2());
                c.getSession().write(MaplePacketCreator.enableActions());
            } else if (action == 8) { // Character Slots
                slea.skip(1);
                int useNX = slea.readInt();
                int snCS = slea.readInt();
                CashItemInfo item = CashItemFactory.getItem(snCS);

                if (c.getPlayer().getCSPoints(useNX) < item.getPrice()) {
                    c.getSession().write(MaplePacketCreator.enableCSUse0());
                    c.getSession().write(MaplePacketCreator.enableCSUse1(c));
                    c.getSession().write(MaplePacketCreator.enableCSUse2());
                    c.getSession().write(MaplePacketCreator.enableActions());
                    return;
                }

                if (c.getCSlots() < 6) {
                    c.gainCSlot();
                    c.getPlayer().modifyCSPoints(useNX, -item.getPrice());
                }

                c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
                c.getSession().write(MaplePacketCreator.enableCSUse0());
                c.getSession().write(MaplePacketCreator.enableCSUse1(c));
                c.getSession().write(MaplePacketCreator.enableCSUse2());
                c.getSession().write(MaplePacketCreator.enableActions());
            }
    Open MaplePacketCreator.java and replace the enableCSUse1() function with
    Code:
        public static MaplePacket enableCSUse1(MapleClient c) {
            MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

            mplew.writeShort(SendPacketOpcode.CS_OPERATION.getValue());
            mplew.writeShort(0x2F);
            mplew.write(0);
            mplew.writeShort(c.getPlayer().getStorage().getSlots());
            mplew.writeShort(c.getCSlots());

            return mplew.getPacket();
        }
    Search for all enableCSUse1() in your source and change them to
    Code:
    enableCSUse1(c)

      Current date/time is Wed Sep 26, 2018 8:58 am