Cheat Engine

The Underground Site of Cheat Engine


    [Release] Party Bear Buff

    Share

    LASTDEFE
    Guest

    [Release] Party Bear Buff

    Post  LASTDEFE on Thu May 21, 2009 2:12 am

    This gives everybody on the map the Party Bear Buff if somebody uses Happy Party Bear Weather.

    Open UseCashItemHandler.java and add
    Code:
                    if (itemId == 5122000) {
                        for (MapleCharacter chr : player.getMap().getCharacters())
                            chr.giveItemBuff(2022302);
                    }
    under
    Code:
                    c.getPlayer().getMap().startMapEffect(ii.getMsg(itemId).replaceFirst("%s", c.getPlayer().getName()).replaceFirst("%s", slea.readMapleAsciiString()), itemId);
                    MapleInventoryManipulator.removeById(c, MapleInventoryType.CASH, itemId, 1, true, false);
    Open MapleCharacter.java and add
    Code:
        public void giveItemBuff(int itemID) {
            MapleItemInformationProvider mii = MapleItemInformationProvider.getInstance();
            MapleStatEffect statEffect = mii.getItemEffect(itemID);
            statEffect.applyTo(this);
        }

      Current date/time is Tue Dec 11, 2018 6:43 pm