Commit Graph

126 Commits

Author SHA1 Message Date
rtw1x1
ce493893df ML-Server: Item Names client sided 2026-01-21 01:51:21 +00:00
rtw1x1
be24b766f6 ML-Server: NPC Names client sided 2026-01-21 00:22:30 +00:00
ausser
c93c1b673f Refactor movement duration calculations for clarity
fix for: https://github.com/d1str4ught/m2dev-server-src/issues/53
2026-01-10 23:26:48 +02:00
eccentricride-sudo
5a593b7fbf Revert onaftercreated function for those having issues with it
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.
2026-01-08 07:44:41 -08:00
Furkan Güçlü
2079744d69 removed over9refine 2026-01-05 20:22:33 +03:00
Furkan Güçlü
19de754f06 removed dev_log 2026-01-05 19:05:23 +03:00
savis
bedf062118 Fix crash on login with expired timed items
https://github.com/d1str4ught/m2dev-client-src/issues/69
2026-01-05 13:01:03 +01:00
rtw1x1
807a93a80b Merge pull request #57 from rfdomingues98/feat/add-green-purple-pot-effect
Added effect for green and purple pots
2026-01-04 09:34:46 +00:00
Ricardo Domingues
41f47283a0 Added effect for green and purple pots 2026-01-03 20:51:19 +00:00
Ricardo Domingues
a8b74630f7 Added new effect for Bravery Cape 2026-01-03 20:50:07 +00:00
rtw1x1
38c83e3739 Merge pull request #43 from savisxss/eventflag
Add EventFlag-based quest enable/disable system
2025-12-31 09:14:06 +00:00
rtw1x1
ec8437cd0b fix: Uninitialized move duration causing NaN/INT_MIN position sync 2025-12-30 19:36:05 +00:00
rtw1x1
24e136ac83 Merge pull request #51 from savisxss/AsyncSQL 2025-12-29 06:10:04 +00:00
rtw1x1
3130ab4cd4 Merge pull request #50 from savisxss/SEQUENCE 2025-12-29 06:09:54 +00:00
savis
f0c4b0c8d7 modernize AsyncSQL with C++17 features 2025-12-29 01:14:31 +01:00
savis
0735353405 Fix SEQUENCE mismatch error in packet validation 2025-12-28 16:44:26 +01:00
savis
e4182a1b9e Add handshake session timeout protection 2025-12-28 05:03:47 +01:00
rtw1x1
c34a721328 Merge pull request #47 from Mitachi2611/main 2025-12-28 00:03:34 +00:00
rtw1x1
7a59fdd7b4 fix: Better support UTF8 & Arabic
Increase CHARACTER_NAME_MAX_LEN from 24 to 64 for better support with UTF8 Arabic
2025-12-27 19:00:42 +00:00
Mitachi
7844727cdc refactor(db): use std::unique_ptr for DirectQuery 2025-12-27 12:25:01 +01:00
Mind Rapist
3b712002a9 Fixed PK mode bugs, fixed logout cancellation from using skills 2025-12-27 10:23:45 +02:00
Mind Rapist
11ef2f5780 Fixed PK mode bugs, fixed logout cancellation from using skills 2025-12-27 10:17:04 +02:00
rtw1x1
7a69f13439 Merge pull request #42 from savisxss/main
Guard netinet/tcp.h include for non-Windows platforms
2025-12-27 07:15:41 +00:00
rtw1x1
1003dffdd6 Update item_length.h 2025-12-27 07:10:38 +00:00
savis
8123fc602c Add EventFlag-based quest enable/disable system
Implemented EventFlag system to control quest availability:
  - Added IsEventFlagSet() to check if EventFlag exists in questmanager
  - Added EventFlag checks in ExecuteQuestScript() for per-quest control
  - Added EventFlag checks in HandleEvent() for NPC-based quest control
  - Added EventFlag checks in OnChat() for chat-based quest control

  Usage:
  - /event quest_<questname>_enabled 0/1 - Enable/disable specific quest
  - /event quest_npc_<vnum>_enabled 0/1 - Enable/disable all NPC quests
  - /event quests_global_enabled 0/1 - Enable/disable all quests globally
2025-12-27 02:50:46 +01:00
savis
0f21118ad7 Guard netinet/tcp.h include for non-Windows platforms 2025-12-27 01:19:42 +01:00
rtw1x1
366d97dbac TCP_NODELAY undeclared 2025-12-26 07:27:50 +00:00
rtw1x1
65ef80a04b Update char.cpp 2025-12-26 07:10:40 +00:00
rtw1x1
f92dfcd697 Merge pull request #39 from savisxss/socket 2025-12-26 07:04:07 +00:00
rtw1x1
345604adba Merge pull request #38 from savisxss/nodelay-tcp 2025-12-26 07:03:42 +00:00
rtw1x1
22d2091fe7 Merge pull request #37 from SunTrustDev/bugfix/std-1 2025-12-26 07:03:28 +00:00
rtw1x1
d7602d41b6 Merge pull request #36 from MindRapist/mr-3 2025-12-26 07:02:45 +00:00
savis
e2f4699c3d increase socket buffers 2025-12-26 06:19:18 +01:00
savis
dd7d66f69e Enable TCP_NODELAY to reduce network latency 2025-12-26 04:53:45 +01:00
savis
cd6100c3a1 perf(rng): eliminate per-call random_device overhead 2025-12-26 03:53:35 +01:00
Mind Rapist
5e25a47d2b Auto potion safeguards 2025-12-26 01:17:00 +02:00
Simone Romano
6ac3d1a00f Fix: Add QUEST_CANCEL packet to manage state reset upon client quest dialog cancelation 2025-12-25 21:55:41 +01:00
savis
ab382cac7c Improve RNG 2025-12-25 20:46:01 +01:00
Mind Rapist
f430a11e34 MR-3: Bunch of fixes 2025-12-25 17:52:05 +02:00
Mind Rapist
a91d49f440 MR-3: Bunch of fixes 2025-12-25 08:45:03 +02:00
d1str4ught
b2931f0f7d FIX_POS_SYNC removed 2025-12-25 03:29:38 +01:00
d1str4ught
20ea72df29 Merge pull request #32 from savisxss/main
Fix buffer overflow, fishing array bounds and Win64 compatibility
2025-12-25 02:49:52 +01:00
d1str4ught
bc8b22d799 Merge pull request #31 from jankes44/linux-distros-adjustments
add handling for other linux distros
2025-12-25 02:48:45 +01:00
savis
86b6aa4d95 Fix buffer overflow, fishing array bounds and Win64 compatibility 2025-12-24 02:12:52 +01:00
jankes44
0fa9a2f46a add handling for other linux distros 2025-12-22 01:38:43 +00:00
ausser
b6c11aa516 Fix POS_FIGHTING timer for aggressive skill casts
Update combat timestamp on aggressive skill cast to prevent POS_FIGHTING from expiring when skills deal 0 damage.
2025-12-20 03:58:45 +02:00
Mind Rapist
337ce421c0 MR-2: Auto-revert POS_FIGHTING after inactivity + Realtime character level updates + Macros removed 2025-12-20 02:26:50 +02:00
Mind Rapist
b389e30db7 Merge branch 'mr-2' of https://github.com/MindRapist/m2dev-server-src into mr-2 2025-12-20 01:56:41 +02:00
Mind Rapist
47caa3e076 MR-2: Auto-revert POS_FIGHTING after inactivity + Realtime character level updates + Macros removed 2025-12-20 01:55:05 +02:00
Mind Rapist
a53600aebf MR-2: Auto-revert POS_FIGHTING after inactivity + Realtime character level updates 2025-12-20 01:22:23 +02:00