Help !giveep command dont save EP to DB

Results 1 to 3 of 3
  1. #1
    Apprentice Bryan Lim is offline
    MemberRank
    Nov 2015 Join Date
    15Posts

    ! Help !giveep command dont save EP to DB

    guys can u guys help me? my !giveep command doesnt save the EP to my DB.. idk why? give ep command is fine when i giveep to myself it have but after i relog the eventpoints gone. i can give myself ep but when i restart the ep reset too. for player i gave them but they dont receive any even tho i check thier event points amount


  2. #2
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: Help !giveep command dont save EP to DB

    Do you include them in the saveToDB function? If not, it'll just stay local and won't be saved.

  3. #3
    Apprentice MVCipher is offline
    MemberRank
    Nov 2015 Join Date
    14Posts

    Re: Help !giveep command dont save EP to DB

    Go to MapleCharacter.java and find
    Code:
    public void saveToDB
    then scroll down until you find the part of your MySQL you want to save (I am assuming accounts.)

    Code:
                    ps = con.prepareStatement("UPDATE accounts SET `paypalNX` = ?, `mPoints` = ?, `cardNX` = ?, `EP` = ? WHERE id = ?");
                    ps.setInt(1, paypalnx);
                    ps.setInt(2, maplepoints);
                    ps.setInt(3, cardnx);
                    ps.setInt(4, EP);
                    ps.setInt(5, client.getAccID());
                    ps.executeUpdate();
                    ps.close();
    That's an example of what yours should be (but please only look at that as a reference, if your names aren't the same it will mess up.)



Advertisement