Hello! I have a custom feature to change a player's base class. So in order to not mess the olympiad, when a player changes his baseclass, a statement is executed to reset his fights/points.
The db is updated correctly, but back in game, if I restart the char and use /olympiadstat, I still have the old points/fights.
I saw in other servers that this info is updated instantly.
🚀 **TOMORROW – GRAND OPENING!** 🚀
📅 **Grand Opening Date:** 5 December 2025
⏰ **Time:** 20:00 GMT+2
🎫 **BONUS CODE:** `WELCOME-TO-L2MID`
⚠️ Limited to the **first 100 players** only!
🖥️ **Server Info:**
- 🕒 The server will open **1 hour earlier (19:00 GMT+2)** so you can create your characters.
- 🧍 All important **NPCs will appear at 20:00 GMT+2** for the official **GRAND OPENING**.
💡 **How to redeem the bonus code:**
- After you create your character, log in to the **L2Mid Panel** and redeem your bonus here:
🔗 https://l2mid.com/account.php#dash-promocode
🎁 **BONUS CODE REWARDS:**
🧪 Mana Drug × 50
🛡️ Greater CP Potion × 50
❤️ Greater Healing Potion × 50
📜 Blessed Scroll of Escape × 5
⭐ Bonus Rune – 3 Hours × 1
⚔️ Get ready for the start of your new adventure on **L2Mid**!
Question
tiguz
Hello! I have a custom feature to change a player's base class. So in order to not mess the olympiad, when a player changes his baseclass, a statement is executed to reset his fights/points.
The db is updated correctly, but back in game, if I restart the char and use /olympiadstat, I still have the old points/fights.
I saw in other servers that this info is updated instantly.
How can I do it instantly too?
atm this is what Im running:
// Reset olympiad data for this player.
statement = con.prepareStatement("UPDATE olympiad_nobles SET class_id=?, olympiad_points=?, competitions_done=?, competitions_won=?, competitions_lost=?, competitions_drawn=? WHERE char_Id=?");
statement.setInt(1, player.getClassId().getId());
statement.setInt(2, 18);
statement.setInt(3, 0);
statement.setInt(4, 0);
statement.setInt(5, 0);
statement.setInt(6, 0);
statement.setInt(7, player.getObjectId());
statement.execute();
statement.close();
Any help is welcome!
Edited by tiguz5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now