Cheat Engine

The Underground Site of Cheat Engine


    Rings from CS :)

    Share

    Admin
    Admin

    Posts : 43
    Join date : 2009-05-18

    Rings from CS :)

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

    [php] else if (action == 27) {
    /*@Author Anujan Very Happy*/
    //C6 00 - Header
    //1B -- Action
    //1B B4 EA 0B - DoB
    //01 00 00 00 - What to charge (1 - Paypal NX)
    //DC E8 3E 01 - SN
    //07 00 6C 6F 76 65 79 6F 75 - Recipient (LoveYou)
    //03 00 3C 33 0A - Message (<3)
    int idate = slea.readInt(); //DoB - We don't need a date of birth check do we? o-o
    int toCharge = slea.readInt();
    int SN = slea.readInt();
    String recipient = slea.readMapleAsciiString();
    String msg = slea.readMapleAsciiString();
    CashItemInfo item = CashItemFactory.getItem(SN);
    int year = idate / 10000;
    int month = (idate - year * 10000) / 100;
    int day = idate - year * 10000 - month * 100;
    Calendar cal = Calendar.getInstance();
    cal.setTimeInMillis(0);
    cal.set(year, month - 1, day);
    MapleCharacter r = c.getChannelServer().getPlayerStorage().getCharacterByName(recipient);
    boolean ringMe = c.checkBirthDate(cal);
    if (c.getPlayer().getCSPoints(toCharge) >= item.getPrice() && ringMe) {
    MapleRing.createRing(item.getId(), c.getPlayer(), r);
    r.dropMessage(c.getPlayer().getName() + "has bought you a(n)" + MapleItemInformationProvider.getInstance().getName(item.getId()) + " : " +msg);
    } else if (!ringMe) {
    new ServernoticeMapleClientMessageCallback(1, c).dropMessage("The birthdate you entered is incorrect.");
    } else {
    new ServernoticeMapleClientMessageCallback(1, c).dropMessage("Get more NX hoe <3 (:");
    }
    c.getSession().write(MaplePacketCreator.showNXMapleTokens(c.getPlayer()));
    c.getSession().write(MaplePacketCreator.enableCSUse0());
    c.getSession().write(MaplePacketCreator.enableCSUse1());
    c.getSession().write(MaplePacketCreator.enableCSUse2());
    c.getSession().write(MaplePacketCreator.enableCSUse3());
    c.getSession().write(MaplePacketCreator.enableActions());
    return;
    }[/php]
    Put it in BuyCSItemHandler Smile

      Current date/time is Mon Oct 22, 2018 11:28 pm