Commit Graph

69 Commits

Author SHA1 Message Date
ratkosrb e3fe9462ae Process chat packets on separate threads. 2023-10-17 13:50:50 +03:00
ratkosrb bf8d6ad13e Fix deadlock error with account data tables.
Closes https://github.com/vmangos/core/issues/2220
2023-10-12 04:34:04 +03:00
ratkosrb 12908fc8f4 Fix account data types in older versions.
If you logged in with a pre 1.9 client and then a newer one or vice versa, your settings would get messed up because the account data type indexes changed.
2023-10-08 00:15:21 +03:00
ratkosrb 7e533c0e5d Optimize mover lookup in movement handler. 2023-10-05 02:16:31 +03:00
ratkosrb f137320f4e Only init warden after session is added to world. 2023-09-01 02:55:25 +03:00
Wall a27f97d2ba Fix XML Whitespace & Comments (#1996) 2023-07-04 12:56:09 +03:00
ratkosrb d90fe07e43 Fix build and refactor play time limit check. 2023-06-13 19:06:41 +03:00
ratkosrb 76f672e354 Play time limit was added in patch 1.8.
Nothing is displayed in earlier clients.
2023-06-13 05:44:39 +03:00
ratkosrb d015f29f1f Implement account play time limit.
After 3 hours of online time, looted gold and experience gains are cut in half. After 5 hours of online time, you can no longer gain experience, complete quests, or loot anything, until you logout for at least another 5 hours.
2023-06-13 01:18:02 +03:00
ratkosrb 1322a9163e Make sure we don't store deleted player. 2023-05-24 16:00:09 +03:00
ratkosrb c2aa8c774c Refactor how bots send packets. 2023-05-11 18:55:54 +03:00
ratkosrb bb571c1503 Don't add item to object update list on disconnect. 2023-05-09 20:56:51 +03:00
ratkosrb d125aa5255 Add warden scan for click to move. 2023-04-27 10:28:54 +03:00
ratkosrb 948b409991 Don't allow spamming update ticket opcode. 2023-04-25 13:46:58 +03:00
ratkosrb 9c6d59cb1e Handle db query packets in network thread.
Also fixes a memory leak with unhandled packets.
2023-04-24 09:45:04 +03:00
ratkosrb 62d2959264 Make warden updates async. 2023-04-21 04:14:45 +03:00
ratkosrb 818db6e78b Remove auras that are interrupted by leaving world on logout. 2023-04-12 22:56:14 +03:00
ratkosrb 8a89c024a0 Fix disconnect during bg join exploit. 2023-03-22 01:42:23 +02:00
ratkosrb 5f1d2941cc Avoid any string copy or allocation in logs. 2023-02-03 09:26:14 +02:00
ratkosrb 829376be8f Add proper packet sniffing. 2023-02-03 05:20:18 +02:00
ratkosrb 5e02d6aa9f Fix name of account data opcode. 2022-12-23 16:57:54 +02:00
ratkosrb a1cf05688d Fixes for Warden on Mac. (#1696)
- Scans for Mac weren't even being loaded, so the string hash request was never sent.
- The game crashed if you connected with the PPC client, because it was being sent a x86 module.
- The structure of WARDEN_SMSG_CHEAT_CHECKS_REQUEST was wrong for Mac.
- Added back the Warden.DebugLog option so I can actually see what's happening in the console.
2022-11-12 10:21:48 +02:00
ratkosrb c221c02367 Make the meetingstone queue asynchronous.
https://github.com/cmangos/mangos-classic/commit/eee84a439bd42b367f03da9ccdc8e8f517e37055
2022-10-24 23:35:54 +03:00
namreeb dfb90c5880 Logging rewrite (#1519) 2022-10-06 16:34:56 +03:00
ratkosrb 715082b4ab Fix SMSG_ACCOUNT_DATA_TIMES.
Thanks to namreeb!
2022-10-02 04:02:08 +03:00
ratkosrb 18e42e84a1 Remove unused parameter from SendAccountDataTimes. 2022-10-02 01:50:46 +03:00
ratkosrb 463beecbff Implement saving settings and macros on server.
If you login from a new client, you won't lose your binds and macros.
2022-10-02 01:22:45 +03:00
ratkosrb 1e833450d0 Implement using real characters as partybots. 2022-07-11 16:00:36 +03:00
ratkosrb 04d7b3e6b9 Save player on disconnect. 2022-03-16 22:11:33 +02:00
ratkosrb 71e854edd1 Fix build with anticheat enabled and remove unimplemented feature. 2022-01-02 03:04:13 +02:00
ratkosrb f84548eb10 Cleanup of WorldSession.h 2021-12-14 17:24:21 +02:00
ratkosrb ffb96117cb Remove unused session scripts code. 2021-12-12 11:06:04 +02:00
ratkosrb 118094afa8 Remove obsolete replay code from core. 2021-12-12 09:24:38 +02:00
ratkosrb 9e2da1bd72 Add packet logging option to movement anticheat.
You can parse the logs with https://github.com/ratkosrb/wowpacketparser/tree/classic
2021-08-05 08:55:17 +03:00
GrenderG a74f39740b Some PartyBots tweaks (#1124)
* Trying to implement partybot size limit.

* Added option to skip partybot restriction checks.

* Bots added with .partybot add should have the same level as the summoner.

* Removed duplicated code fragment.

* Revert Bot to PlayerBot.

* Don't take self into account when checking CONFIG_UINT32_PARTY_BOT_MAX_BOTS.

* Fix condition.

* Improve config readability.

Co-authored-by: ratkosrb <ratkomladic2@abv.bg>
2021-04-21 18:55:37 +03:00
ratkosrb d54dbd66c2 Cleanup header dependencies. 2021-04-12 14:34:00 +03:00
ratkosrb a2bd00ac3f Followup to previous commit. 2021-03-02 03:39:51 +02:00
ratkosrb f204b4b3cc Delay teleport to graveyard until client replies to movement changes. 2021-03-02 03:28:59 +02:00
schell244 f7d3f51788 Escaped some core mysql queries (#973) 2021-01-06 15:35:14 +02:00
ratkosrb 179f2bdb11 Update many queries incore to escape table and field names. 2021-01-05 14:40:54 +02:00
ratkosrb da6b1c4947 Fix some warnings found by GCC. 2020-04-26 14:11:10 +03:00
ratkosrb 99d11c2602 Optimize movement checking code. (#429)
- Avoid using virtual functions.
- Use "do {} while(false)" instead of lambda in ACK opcode handlers.
2020-03-23 19:38:59 +02:00
ratkosrb d0ae957483 Implement party bots. (#405)
* Implement party bots.

* Fix bg queue and other stuff.

* Remove not intended change.

* Implement resurrecting and interrupting.

* More appropriate word.

* Add buffing and mounting.

* Add pet summoning.

* Prevent adding bot to full instance.

* Add loot support and improve ranged bots.
2020-03-15 19:04:42 +02:00
ratkosrb f40633491f Fix several problems with battlegrounds before 1.7. 2020-02-26 20:29:25 +02:00
ratkosrb 0e23799172 Remove non functional clustering code. (#332)
* Remove non functional clustering code.

* Remove config options.

* Remove crap from chat commands.
2019-12-30 09:50:00 +02:00
ratkosrb e806acc769 Apply clang tidy fixes. (#330) 2019-12-24 06:23:40 +02:00
ratkosrb 49b9a82244 Switch to east const style. 2019-12-21 00:45:35 +02:00
ratkosrb 221145d46e Misc code style cleanup. 2019-12-20 07:18:54 +02:00
ratkosrb d7d5dcc2fe Add correct areatrigger teleport messages.
And a bit of refactoring.
2019-12-07 20:53:42 +02:00
ratkosrb 66659fe13f Cleanup and reorganization of Unit and SpellEntry headers. (#312)
* Move some unit and spell defines to dedicated header.

* Reorder functions in unit header.

* Clean up until spell category.

* Finish cleaning up spell functions.

* Cleanup combat system methods.

* Done cleaning up unit header.

* Reduce not needed includes.
2019-11-24 22:20:44 +02:00