Commit graph

85 commits

Author SHA1 Message Date
Chero
2ae84e2faf
fix(Core/Creature): Creatures will periodically call for assistance. (#5065) 2021-05-27 13:42:48 +02:00
Kargatum
ea2e606b13
feat(Core/Logging): improve DB logging (#5437) 2021-05-17 01:49:18 +02:00
Francesco Borzì
fd801c9310
feat(Core/BG): revamp Battleground.QueueAnnouncer.Limit (#5267) 2021-05-15 17:42:20 +02:00
Kargatum
26f2abaaa9
feat(Core/Authserver): TOTP rewrite (#5620) 2021-05-12 18:57:10 -06:00
Francesco Borzì
053f9f5fa4
feat(Core/DB): reconnect seconds and attempts configurable (#5673) 2021-05-10 20:09:23 +02:00
Kargatum
583d06b3bd
chore(Core/Logging): enable logger sql and set level info (#5677) 2021-05-09 13:46:34 -06:00
Yehonal
380f406248
Feat(Docker/bash): docker-compose system rework (#4488)
## ⚠️ATTENTION! ⚠️ Upgrading procedure:

**Database:** After this PR will be merged you need to backup your DB first (you can use the db-assembler or any mysql client to generate the dump) and restore it after.  The reason is that we use now docker named volumes instead of binded ones to improve performance.

**Conf & client data**: if you use the default configuration, both the etc and the data folder are now available inside the **/env/docker**. 

Finally, you can cleanup the /docker folder previously used by our system.

## Changes Proposed:

This PR will implement the [devcontainer ](https://code.visualstudio.com/docs/remote/containers) feature for VSCode. Allowing us to develop and debug directly within the container in the same way on all OSes.

* Implemented support for vscode dev-container feature by remote-extension suite
* Docker performance optimizations for MacOS and non-linux hosts
* Bash system improvements
* Implemented first command using Deno runtime environment (typescript) and [commander.js]
* Implemented wait mechanism for db_assembler
* Implemented db migration command
* possibility to run the authserver and worldserver with GDB using the integrated simple-restarter
* Implemented docker multi-stage mechanism to use one single Dockerfile for all the services
* client-data downloader now creates a placeholder to avoid downloading the same version of data files multiple times
* deployment of pre-compiled docker images on [docker hub](https://hub.docker.com/u/acore), you can test them [here](https://github.com/azerothcore/acore-docker)
2021-04-22 09:57:05 +02:00
Kargatum
4af4cbd3d9
feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging

* correct level for sql.sql

* del unused config options

* Correct build

* correct after merge

* whitespace

20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)

* 1

* correct logging

* correct affter merge

* 1

* 2

* LOG_LEVEL_WARN

* #include "AppenderDB.h"

* 3

* 4

* 5

* 1. 'WorldSocket.cpp'. Replace (1)

* 6

* 1
2021-04-17 11:20:07 +02:00
Kargatum
91a39f27d9
feat(Core/BattlegroundQueue): add limited Battleground.QueueAnnouncer (#5093) 2021-04-09 20:55:10 +02:00
UltraNix
54e371e0e7
feat(Core/PvP): Set 30 sec timer before turn off FFA PvP flag. (#5090) 2021-04-08 13:00:45 +02:00
Petric
f11d3a5402
feat(CORE/Instance): access_requirement db refactor and improved output (#3696) 2021-03-29 10:24:52 -06:00
UltraNix
0e8cb3e4b2
feat(Core/Game): Add option to disable trading BoP items among raid members (#4895) 2021-03-24 15:19:58 -06:00
Francesco Borzì
498c5c9afc
chore(Core/worldserver.conf): Enable warden by default (#4533)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-03-03 14:43:43 -06:00
Kargatum
dbefa17a53
feat(Core/Config): rework config and delete ACE inherited (#4608) 2021-02-28 14:37:03 +01:00
Francesco Borzì
a63e41e5b3
feat(Core/Conf): Rate.RewMoneyMaxLevel (#4546) 2021-02-12 16:20:31 +01:00
Footman
522eb9a7e4
fix(Core/Pathfinding): Creatures regen health, spells LOD (#4509) 2021-02-10 00:37:05 +01:00
Francesco Borzì
8915ab1362
feat(Hooks/PlayerScript): ShouldBeRewardedWithMoneyInsteadOfExp (#4445) 2021-02-09 14:09:41 -05:00
55Honey
5a3c77a691
refactor(Core/Config): Change PlayerStart.AllSpells to .CustomSpells (#4345)
* Change PlayerStart.AllSpells to .CustomSpells

Remove wrong info regarding the  playercreateinfo_spell_custom table. Change the config flags name to match its purpose.

* Update src/server/worldserver/worldserver.conf.dist

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/World/World.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/server/game/World/World.cpp
2021-02-03 01:01:33 +01:00
Francesco Borzì
f85cb30c99
feat(Core/Conf): toggle XP price (#4388) 2021-02-02 04:11:54 +01:00
Yehonal
c8f43d8584
feat(Core/Movement): Improved pathfinding, collisions and movements (#4220)
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman

Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.

Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )

Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)

Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks

Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-02-01 01:34:27 +01:00
Francesco Borzì
ce4dbbce76
feat(Core/Config): allow initial (free) amount of Guild Bank tabs (#4290) 2021-01-20 11:19:09 +01:00
FALL1N1
0181b73bc2
feat(Core/Opcodes): Implement CMSG_CHANNEL_MODERATE (#4021)
* Core/Opcodes: Implement CMSG_CHANNEL_MODERATE

* Cleanup, prettify

* fix build

* whitespaces
2021-01-18 19:37:50 +01:00
Andrius Peleckas
2794842553
feat(Core/Warden): optimization + PQR detection (#3875)
* Update AuctionHouseHandler.cpp

* feat(warden): block PQR

* wip

* Update Warden.cpp

* Core/Warden: minor preperation

* Core/Misc: implemented some needed container wrapper functions

* Core/Warden: more preperations

* Core/Warden: more rework
* LUA checks now are splitted to seperate config
* LUA checks are always in front of queue
* Fixed "Other" checks
* Fixed PQR detection

* Core/Warden: adjusted and optimized

* Core/Warden: optimization

* Core/Warden: more optimization

* Core/Warden: use warden comments in ban reason

* Core/Warden: more warden work

* Core/Warden: more optimizations

* Core/Warden: more refactors

* Core/Warden: some more refactors + use default SHA definitions

* Core/Warden: more refactoring

* Core/Warden: fixed PQR detection again

* Core/Warden: improved detection logging

* Core/Misc: removed SmartEnums - we do not need it here + maybe should go as seperate commit

* Core/Warden: fixed some warnings

* Core/Warden: codestyle

* Core/Warden: include warden check comment to console logs

* Core/Warden: minor adjustment for previous commit

* Core/Warden: fixed static analysis warning

* Core/Warden: compilers, you're drunk this time... function is not unused...

* Core/Warden: minor correction for logs

* Core/Warden: one more improvement for logs

* Core/Warden: added missing overrides

* Core/Warden: some codestyle

* Core/Misc: more codestyle

* Core/Misc: more codestyle!

* Core/Warden: restored default config options... (if you change it, change in core source too)

* Core/Warden: addition to previous commit

* DB/Warden: added EWT and WOWPlus checks (provided by lineagedr)

* DB/Warden: addition to previous commit

* fix: codestyle

* Core/Warden: fixed build when extra logs are enabled in cmake

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-01-17 18:36:35 +01:00
Francesco Borzì
19d474b338
feat(Core/Conf): allow to change the cost of the guild bank tabs (#4240) 2021-01-16 01:35:52 +01:00
Kargatum
ea93a5c1a1
feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Kitzunu
9b6da06a2e
chore(Core/Conf): Change default of RecordUpdateTimeDiffInterval (#4033) 2020-12-28 20:20:28 +00:00
Francesco Borzì
fdc3fc962e
chore(config): Improve dist files (#3989) 2020-12-23 23:13:35 +00:00
Barbz
4775bef1c7
fix(Core/conf): Battleground kill XP rate description (#3833) 2020-12-13 11:40:46 -06:00
aradep
7d16417d16
feat(Core/Config): Arena points - Games required (#3811) 2020-12-12 00:36:00 -06:00
Petric
78179f7108
feat(Core/Config): Added pet experience rate (#3703) 2020-11-24 08:45:29 -06:00
aradep
788f8b5257
feat(Core/Config): configurable BG Respawn Timers (#3569) 2020-11-17 14:26:58 +01:00
Kitzunu
a37ea1b60e
chore(worldserver.conf): Update GM.StartLevel to core default (#3136) 2020-08-05 15:01:04 +02:00
IntelligentQuantum
ec806d6c60
refactore(core/config): Move BG Report AFK To Conf (#2813) 2020-07-10 20:06:12 +02:00
Kitzunu
0b4af00ab7
feat(Core/Config): Enable/Disable Debug BG/Arena (#3001) 2020-06-21 13:17:07 +02:00
Kitzunu
55dc9afc73
feat(Core/Battleground): Config to allow/disallow ability to Share Quest & Ready Check (#2924) 2020-05-22 16:54:17 +02:00
IntelligentQuantum
9ca9194d9b
feat(Core/Conf): Move BG rewards to config (#2798) 2020-05-07 01:41:39 +02:00
IntelligentQuantum
c9b7c75e1e
feat(Core/conf): Move arena charters cost to config (#2790)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2020-05-04 12:01:19 +02:00
IntelligentQuantum
fd4b35be8c
feat(Core/commands): Display reason for muting player (#2780) 2020-05-02 00:00:02 +02:00
Dresmyr
f1b44029c8
feat(Core/Config): Configurable buy/sell rates (#2763) 2020-04-27 21:20:34 +02:00
Stefano Borzì
19c3a70d41
feat(Core/Config): make stop time for creatures with WP movement configurable #2715 (#2829)
Original author Stoabrogga
2020-03-31 01:30:39 +02:00
Nefertumm
bb6047248a
fix(Calendar/Packets): add additional validation when creating events (#2799) 2020-03-28 22:47:53 +01:00
Nefertumm
846f7862d8
feat(Core/Packet): Implement AntiDOS protection from Trinity (#2789)
* Implement AntiDOS protection from Trinity


Co-authored-by: jackpoz <giacomopoz@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Vincent-Michael <trinity.michael_vincent@gmx.eu>
2020-03-23 15:46:00 -03:00
Stoabrogga
ed243d6911
feat(Core/Config): Parameter to set all creatures with WP movement active (#2615) 2020-02-23 14:08:42 +01:00
IntelligentQuantum
b6c0f58dda feat(Core/ItemHandler): Optional item recovery (#2442) 2019-12-09 08:03:33 +01:00
Stefano Borzì
69baccff0d feat(DB/characters): added comments to worldstates (#2384) 2019-11-22 08:56:04 +01:00
Stoabrogga
3baa3c7534
feat(Core/SpellMgr): Worldserver option for ICC buff (#2320) 2019-10-16 07:53:19 +02:00
Stoabrogga
84ea36a21b
fix(Core/Chat): Prevent Horde / Alliance chat via custom emotes (#2292)
* add new worldserver parameter "AllowTwoSide.Interaction.Emote"
* use new broadcast text ID 91243 for strange gestures
2019-10-01 15:18:43 +02:00
Stoabrogga
ab55aa4e5a
feat(Core/Config): Add parameter to load all grids of all non-instanced maps on server start (#2283) 2019-09-30 17:06:32 +02:00
mik1893
67d180ea77 fix(Core/Worldsession): add option to prevent logout when AFK in a sanctuary zone (#2205) 2019-09-09 23:53:37 +02:00
Stoabrogga
e314a0c716
feat(Core/Player): Additional option for worldserver config parameter "InstantFlightPaths" (#2246) 2019-09-04 01:19:57 +02:00