Commit Graph

45 Commits

Author SHA1 Message Date
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
ratkosrb df76eff1d3 Fix a ton of warnings found using clang. (#308) 2019-11-20 20:27:36 +02:00
ratkosrb cf1ac2f373 Fix some bad replace cases. 2019-11-12 20:35:05 +02:00
ratkosrb 4afe949345 Replace usage of NULL with nullptr. 2019-11-12 19:53:42 +02:00
ratkosrb 94fbd75165 Accept some movement packets even if dead. 2019-07-16 20:56:14 +03:00
ratkosrb f6bfb9a2ed Reject movement packet if a cheat is detected.
Completely neutralizes some cheats, without kicking innocent players on false positive. The packet is rejected and correct position and flags are sent back to the client.
2019-06-20 23:35:51 +03:00
ratkosrb 7f7160b2b7 Add warden and comprehensive movement checks (#216)
* Initial Warden Implementation.

* Send notification to gamemasters.

* Implement support for all modules.

* Misc improvements.

* Fix copy paste error.

* Update wrong file header.

* Fix travis build.

* Fix possible crash.

* Add new anticheat.

* Resolve issue when being teleported.

* Add config checks.

* More config checks.

* Move enum to more appropriate header.

* Fix compile for old builds.

* Sent root on possessed creature after active mover packet.

* Allow out of order acks.

* Return result of tests in handle speed ack.

* Stop disconnected player from moving.

* Remove no longer needed include.

* Fix wrong speed when jumping in water.

* Add back the braces.

* Only send heartbeat for resendable changes.

Fixes https://github.com/vmangos/core/issues/212
2019-06-19 21:11:58 +03:00
ratkosrb b339a414b6 Fix mute query param order.
Thanks to coolzoom.
2019-05-20 17:47:36 +03:00
ratkosrb 395d47d15f Organize code in Player.h 2018-12-02 19:19:04 +02:00
ratkosrb 716da74d7d Support for client build 1.10.2 (#213)
After this commit you have to move your DBCs inside a folder with the build number. So for example if they were in "data\dbc\" before, now they should be in "data\5875\dbc\" for 1.12.
2018-08-26 08:51:57 +03:00
Staden cbc2bef5e4 Add cooldowns to public channel usage (#206)
Add cooldowns to public channel usage
2018-08-15 09:25:42 +01:00
bladez d01096b893 Cache player position, remove more blocking queries where possible (#1066)
* Now cache player map and position

* Update player cached position on logout

* Use cached data where possible in lookups rather than directly querying the DB

* Use player cache data for multi-faction character check and cinematic skipping
Update cache position on login/logout
2017-12-26 15:42:17 +11:00
bladez 8b242a1da7 Now delay far teleports until the map update is complete (#666)
* Add locks for getting/setting object map
Prevent updating quest fail status for players in another map

* Now use FindMap() in IsInMap rather than GetMap(), so we can continue if the map is NULL

* Prevent UpdateForQuestWorldObjects() call with serialized map check as well as IsInWorld()

* Implemented support for delaying far teleports until after map updates have completed. Resolves issues with thread-safety when checking player map and world across threads
NOTE: ADDING players to maps on a teleport is already thread safe (performed synchronously in the world update, before map updates)

* Removed current map guards, world and map status are now always thread safe

* Add support for cancelling and executing a specific player's teleports
Now set the player teleport semaphore on schedule to preserve existing implementations that check if a teleport is scheduled

* Now synchronously force player teleports on login and logout

* Re-add instance check in TeleportTo before teleport schedule
Add cleanup on player delete

* Ensure we always return something in ExecuteTeleportFar

* Now set a pending teleport rather than a far teleport sempahore, so port acks cannot be exploited while waiting for the teleport to be processed
2017-11-17 18:48:03 +11:00
Prithu Parker 5845e1bd28 Revert "Do not instantly kick players who get disconnected while they're teleported far"
This reverts commit 7f741c778b.
2017-09-12 04:15:36 +10:00
StadenElysium 4a3dc10d9d Merge pull request #693 from WobLight/teleport_on_dced_fix
WorldSession::HandlePlayerLogin: redo pending teleport at login
2017-05-16 14:00:50 +01:00
woblight 7f741c778b Do not instantly kick players who get disconnected while they're teleported far 2017-05-15 16:38:54 +02:00
woblight b3beba1218 Player::TeleportTo: use a more flexible approach to recover a teleport 2017-05-15 16:26:48 +02:00
eir 75cd37d705 Prevent Crashes on Player Invalid Map ID 2017-05-14 22:30:49 -07:00
StadenElysium 43452c0d9c License update (#27) 2017-03-15 17:27:20 +00:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00