5a593b7fbf64d4b45380c45bcfbffe9dd701e69f
Since some of you said there s an issue with the fix on onaftercreateditem, causing errors. To my understanding the issue is timing, the item_del is sent at the wrong time when client isn t ready yet. A small delay of 1 sec seems to fix it without any issues nor syserrs. I'll do a summarized explanation of what it does below: When real time expire function is called it checks in which phase the player is currently in, if in phase_loading(where crash occurs) it calls the event again after one second. If not in phase loading then it skips the block and deletes the item immediately. If you're wondering if it can be exploited it cannot. No desc -> player disconnecting during loading phase item doesn't reach the actual deletion phase, logs in again onaftercreateditem is called -> calls startrealtimeexpireevent which starts the event again.
m2dev-server-src
Clean server sources for educational purposes.
It builds as it is, without external dependencies.
How to build
mkdir build
cd build
cmake ..
cmake --build .
📋 Changelog
🐛 Bug Fixes
- HP/SP Value Persistence: Fixed an issue where current HP/SP values were incorrectly affected by changes to Max HP/SP (such as stat upgrades or equipment changes).
- GM Kill Command: Updated the
/killcommand to properly zero out the target's HP. - Messenger Deletion (Offline): Fixed an issue where a companion needed to be online for a "remove from messenger" action to complete.
- Messenger Deletion (Cross-Channel): Fixed an issue where the removal message was visible to both parties even if they were in different channels or cores at the time of deletion.
- Dungeon Party Logic: Fixed an issue where the same message would popup to all affected parties when a leader tried to kick a player or a player tried to leave a team while inside a dungeon. Includes several other update message optimizations and dungeon logic improvements regarding party kicking/leaving.
⬆️ Feature Improvements
- Job-Specific Stat Resets: Individual stats reset scrolls (Items 71103, 71104, 71105, 71106) now recover stats to their initial values based on character job instead of defaulting to 1, returning the appropriate points. Translations now dynamically display the selected stat's value. Translation for Reset all-status scroll (71002) also adjusted from printing 'to 1'.
- Logout Interruption: Using a skill now automatically cancels the logout countdown for both the user and the target (if applicable).
- Auto Potion Logic: Auto potions can now be moved within the inventory while active and are automatically disabled immediately before being dropped to the ground.
Description
Languages
C++
75.5%
C
24.4%
CMake
0.1%