Commit graph

136 commits

Author SHA1 Message Date
Kargatum
3da83cc0e6
feat(Common/IPLocation): replace ip2nation by ip2location (#5653) 2021-06-17 22:02:08 +02:00
Kitzunu
7152ddc82c
refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457 (#6113)
* refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457

(cherry picked from commit d6201e5dbb)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-Authored-By: SilverIce <slifeleaf@gmail.com>

* Update CellImpl.h

* w

* more more brackets

* ew

* fix build
2021-06-03 05:27:51 +02:00
Kitzunu
ca27ce5e37
fix(Script/Command): Build (#6159)
* fix(Script/Command): Build

* codestyle ci is weird

* Update MovementHandler.cpp

* Update cs_server.cpp

* Update cs_server.cpp
2021-05-31 16:51:34 +02:00
Kitzunu
897a02bb75
refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Kitzunu
ae665f7ec3
feat(Core/Command): server debug (#6007)
* initial work

* fix query

* load

* clean up

* remove from startup

* ACE

* remove static

* Update MySQLThreading.cpp

* not used

* Update MySQLThreading.cpp

* unit testing

* Update WorldMock.h

* show Boost ver

* Update WorldMock.h

* include

* Now we have boost::filesystem woo

* fix build

* fix typo
2021-05-30 21:12:01 +02:00
Kargatum
ea5f5f2072
feat(Core/RealmList): port TrinityCore realm api (#5626)
* feat(Core/RealmList): port TrinityCore realm api

* 1

* whitespace cleanup

* Update data/sql/updates/pending_db_auth/rev_1620114805872279900.sql

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

* 1

* 2

* Update data/sql/updates/pending_db_auth/rev_1620114805872279900.sql

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

* `

* 1

* small corrects

* finish maybe

* realm.Id.Realm

* ws

* 1

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-05-27 00:12:46 +02:00
HEBAN Simon
8ac74e475f
fix(Core): GUID of GameObject (#6001) 2021-05-22 15:11:41 +02:00
Kargatum
63a273507c
feat(Core/Packets): Port packet handling from TrinityCore (#5617)
* feat(Core/Packets): Port packet handling from TrinityCore

* 1

* 2

* 3

* 1

* 2

* #3670

* 3

* 1

* codestyle

* fix msvc warnings
2021-05-22 00:10:46 +02:00
Kargatum
26f2abaaa9
feat(Core/Authserver): TOTP rewrite (#5620) 2021-05-12 18:57:10 -06:00
UltraNix
2189ac0b08
feat(Core/Anticheat): Preparation to implement new passive anticheat … (#5516) 2021-05-07 18:10:44 +02:00
UltraNix
87a35b6569
fix(Core/GameObjects): Gameobject rotation and moving actions not updating to client (#5223) 2021-05-02 19:25:50 -06:00
Kitzunu
46c9aa6f3a
fix(Script/Command): HandleAddItemCommand (#5412)
* fix(Core/Command): Additem

* Update cs_misc.cpp
2021-05-01 17:07:15 +02:00
UltraNix
f4c226423d
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +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
b2861be1cd
feat(Core/Threading): replace ace threading (#4821) 2021-04-16 19:45:29 +02:00
Kitzunu
33aeadf8b6
refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Kargatum
2b3d46bd4f
feat(Core/Hooks): added collection of hooks to extends AC (#3047)
This collection of hooks comes from the Maelstrom project. It allows to release modules such as :
- 3v3-soloqueue
- 1v1 arena
- pvestats

and many others
2021-04-13 13:26:39 +02:00
Kargatum
c053e111d3
fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Petric
f11d3a5402
feat(CORE/Instance): access_requirement db refactor and improved output (#3696) 2021-03-29 10:24:52 -06:00
r0m1ntik
edd6d65fb2
fix(Core/Command): crash on set model to npc if not valid (#4874) 2021-03-21 15:19:18 +01:00
UltraNix
485f7e7639
feat(Core/DB/Authserver): remove sha_pass_hash (#4827) 2021-03-21 15:17:57 +01:00
Kitzunu
9f354db7be
feat(Core/Creature): Implement c_t_r & c_t_s (#4359) 2021-03-21 15:15:59 +01:00
Hacki95
2031e55ec7
fix(DB/Core) Fix the CLS damage system and update creature_classlevelstats (#4749)
* Fix the CLS dmg system

Thanks to TC: ccfa82e7d5
2021-03-19 17:26:30 -06:00
Francesco Borzì
f6a17164be
fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Kitzunu
28f1dc5c0c
refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554
refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Francesco Borzì
3c670cb5a0
fix(DB/Commands): align core and DB (#4479) 2021-02-08 23:45:00 +01:00
Kitzunu
05a8217270
refactor(Core/Player): add helper method for PLAYER_FLAGS_DEVELOPER (#4395)
Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2021-02-08 16:55:04 -05:00
55Honey
47160f3c36
fix(Core/Commands): remove character creation flag from .save command 2021-02-05 19:12:53 +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
Silker
0a8a7ef149
fix(Core): Activate creatures and objects during opening cinematics (#4045)
Co-authored-by: Si1ker <55638679+Sombranator@users.noreply.github.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2021-01-22 01:03:30 +01:00
Francesco Borzì
8d5347b9ab
fix(Core/QuestTracker): do not store quest if quest_id is null (#4027) 2021-01-20 01:14:04 +01:00
Kitzunu
8ddd904324
refactor(Core/cs_reload): Improve page_text(_locale) output (#3115) 2021-01-19 00:52:32 +01:00
Stefano Borzì
df600f9946
fix(Core/CreatureAI): revert NPC repositioning and path system (temporarily) (#4274) 2021-01-14 19:17:34 +01:00
Kitzunu
da4edd547d
chore(core): remove malformed whitespaces (#4244)
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Kargatum
ea93a5c1a1
feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Stefano Borzì
b2761626fe
feat(Core/CreatureAI): improve npc position during the combat (#3369)
+ tangent equation to find correct angle and distance when moving

+ implemented proper backward

* Improved performance + random angle margin

* chore: add tollerance calculation in instance

* improved LOS checks with movements

* implemented collisions using raycast (imported by TC)

+ improved collision detection for CanReachPositionAndGetCoords

+ improved collision check

+ set correct flags for the backward movement

+ first implementation of slope angle (to improve)

Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
2021-01-04 20:23:08 +01:00
Silker
931609d2c2
fix(scripts/Commands): Avoid get gm phase when summoning (#3764)
This change avoids to set the same phase as the one the GM has to a player when this is summoned by command

Co-authored-by: Si1ker <55638679+Sombranator@users.noreply.github.com>
2020-11-26 06:12:22 -06:00
placemolle
d21b2eebe7
fix(Core/Command): additem - doesn't work when name contains apostrophe (#3647) 2020-11-14 10:52:23 -06:00
Petric
95ee873e8f
fix(Core/CS): Fixed learn command using null session when send over SOAP (#3595) 2020-11-05 10:44:56 -06:00
Kargatum
5e20b46812
refactor(Core/Scripts): restyle scripts lib with astyle (#3467) 2020-10-11 10:35:34 +02:00
Francesco Borzì
b61ae8abcd
fix(Core/Misc): all GCC warnings (#3457) 2020-09-14 17:31:12 +02:00
Kargatum
e15a493927
feat(Core/Time): remove inherited ACE Time (#3455)
Co-authored-by: Viste <viste02@gmail.com>
2020-09-11 14:03:26 +02:00
Petric
321cf0d2b3
fix(CORE/Commands): Renamed .character deleted old to .character deleted purge (#3300)
* fix(CORE/Commands): Renamed .character deleted old to .character deleted purge
Closes https://github.com/azerothcore/azerothcore-wotlk/issues/2925

* Fixed indentation

* Renamed handler function

* Spacing

* Update data/sql/updates/pending_db_world/rev_1597499028423474100.sql

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

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-09-01 12:37:30 +02:00
Kitzunu
1f89282b22
refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
r0m1ntik
971d55d463
fix (Core/Quest) Correct link quest and fix command lookup quest for multilanguage dbc (#3271)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-30 19:42:36 +02:00
Barbz
ed8ed175b7
fix(Core/Command): Can comment closed tickets (#3176) 2020-08-21 10:52:52 +02:00
Barbz
70bdba8309
feat(Core/Command): Reenable .teleport name on offline player (#3175)
- Reenable the possibility to .teleport name xxx $home even if the character is offline.
2020-08-20 23:26:17 +02:00
Kitzunu
73d725312d
feat(Core/Config): CONFIG_INTERVAL_SAVE (#3171) 2020-08-20 15:50:32 +02:00
IntelligentQuantum
5d284f02a7
feat(Core/SendListInventory): Add multivendor function (#3172) 2020-08-20 11:00:11 +02:00