Commit Graph

102 Commits

Author SHA1 Message Date
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
Francesco Borzì 2bc832efe3 fix(CI/Core/ArenaSpectator): clang warnings + prevent new warnings (#3317)
Co-authored by @meerd
2020-08-19 19:44:07 +02:00
IntelligentQuantum fae5753f81 feat(Core/Commands): Character check bag && work (#3164) 2020-08-19 13:47:48 +02:00
Francesco Borzì d2cc3fcbc2 feat(Docker): update to Ubuntu 20.04 + more improvements (#3277) 2020-08-13 00:25:20 +02:00
Kargatum 94e6ef17a2 feat(Core/Config): rework configs load system (#2566) 2020-07-12 17:47:12 +02:00
Kitzunu 5a0a12c6b0 fix(Core/Spell): Allow to cast and aura all spells (#3089) 2020-06-02 15:40:21 -03:00
Kitzunu 027c42fdec refactor(Core/Command): tele to teleport (#2956) 2020-05-28 13:24:36 +02:00
Kitzunu 7f3945e13e fix(Core/Command): additem checks (#2898)
* Add check if the player has 0 items to be destroyed

* Add check if the player has less than items trying to be destroyed
2020-05-18 21:13:29 +02:00
Kitzunu 807005ae25 fix(Core/Command): cheat explore (#2862)
Co-authored-by: P-Kito <p-kito@users.noreply.github.com>
2020-05-15 01:03:27 +02:00
IntelligentQuantum fd4b35be8c feat(Core/commands): Display reason for muting player (#2780) 2020-05-02 00:00:02 +02:00
IntelligentQuantum 30dceb3fa6 feat(CORE/command): .kick will now display the kick reason (#2779)
- If ShowKickInWorld is enabled, kick will now display the kick reason to all the players
2020-04-22 00:26:47 +02:00
Kitzunu 8a1eab2c23 fix(Core/Creature): Use proper name for wander distance (#2858)
* Change from spawndist to wander_distance

Co-Authored-By: ratkosrb <ratkosrb@users.noreply.github.com>

* fix sql error

Co-Authored-By: ratkosrb <ratkosrb@users.noreply.github.com>

* Let's see if this fixes eluna :)

* Revert "Let's see if this fixes eluna :)"

This reverts commit be675bf83f.

* fix indent

* Revert "fix indent"

This reverts commit f4cb3d2d9f.

* Revert "Revert "fix indent""

This reverts commit 48527cfd2f.

Co-authored-by: ratkosrb <ratkosrb@users.noreply.github.com>
2020-04-11 11:20:02 +02:00
gengarshadowball 857e799298 Morph command update (#2641)
* changed morph command

removed demorph and adapted morph to include a reset option

* command info updated

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

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

* Added subcommand system for Morph

- Subcommands
- Descriptions on database

* travis

* two single quotes query

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

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

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

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

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

Co-Authored-By: Barbz <BarbzYHOOL@users.noreply.github.com>

Co-authored-by: Barbz <BarbzYHOOL@users.noreply.github.com>
2020-03-01 10:34:56 +01:00
Viste 38e8503d21 fix(Core/Misc): fix some exploits (#2630) 2020-02-18 08:26:12 +01:00
Kaev 2fa9f5c249 fix(Core): potential crashes/bugs reported by static analysis #2 (#2622) 2020-02-03 07:52:27 +01:00
Kaev 999d588c37 fix(Core): Fixed a few crashes/bugs that were found via static code analysis (#2617) 2020-01-25 14:26:38 +01:00
Stoabrogga 4e8c3fd344 feat(Core/CommandScript): New GM command "player learn" (#2487) 2019-12-20 09:12:27 +01:00
Viste ec808793ae fix(Core/Misc): few improvements to ut8 handling (#2455) 2019-12-02 08:33:44 +01:00
Viste e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Viste 1977336050 feat(Core/Misc): replace ACE based typedefs (#2460) 2019-11-22 22:42:00 +07:00
Shard 97c55c6152 fix(Core/Item): Random item properties generation (#2331) 2019-10-28 08:08:37 +01:00
Stoabrogga d4cf4c1fd9 fix(Core/Commands): debug send opcode (#2344) 2019-10-22 08:20:00 +02:00
Dmitry Brusenskiy a0e727ce1f fix(Core/Commands): Support morph uint32 ids (#1753) 2019-08-08 15:21:13 +07:00
Barbz ac8b20922b feat(Core): GUID recycler (#1820)
Automatically recycle GUIDs, thus avoiding crashes when reaching the
limit of data type "int" in MySQL.
2019-07-08 11:27:52 +02:00
IntelligentQuantum 9a7084e42d feat(Core/Commands): Arena command (#1798)
* New arena command
2019-05-13 08:16:57 +02:00
Poszer 268fab03a9 feat(Core/Commands): Deserter command (BG/Instance) (#1786)
* feat(Core/Commands): Deserter command (BG/Instance)

- Adding .deserter command
- Subcommands ;
* instance add
* instance remove
* bg add
* bg remove

Time is in seconds, example usage:
.deserter instance add 3600 (One hour)
.deserter bg add 3600 (One hour)

* Update cs_deserter.cpp

* Update cs_deserter.cpp

another try

* Update cs_deserter.cpp

again

* Update cs_deserter.cpp

sick of this

* Update cs_deserter.cpp

* Update cs_deserter.cpp

Remove some lines
2019-05-08 11:27:52 +01:00
IntelligentQuantum e56c8e07ce fix(CORE/Commands): .Pinfo - Show guild informations (#1775)
* fix(CORE/Commands): .Pinfo
*Now you can see Guild Name, Guild Rank, Note, Officer  Note And Xp - Total Xp

* Renamed inappropriate variable names
* Add Guild related informations
2019-05-01 03:06:32 +02:00
Poszer 819ca8e9ea feat(Core/Commands): Quest Add (#1673)
Do not allow to take same quest XX times.
2019-04-05 14:27:19 -03:00
Poszer b4a89be4cd fix(Core/Commands): Learn spell for GM lvl 3 (#1651)
- Allow Learn spell from spell_script_names.
- To learn spells you need to have GM level 3 (SEC_ADMINISTRATOR) instead of GM level 4 ( SEC_CONSOLE)
2019-03-30 00:10:12 +01:00
Kargatum 1f4f318705 Rewrite(Core/BanManager): Rewrite Ban system (#1576)
* Added ban manager
* Delete ban functions in world class
* Separate ban account to (ban account, ban ip, ban character)
* Support world announce
2019-03-25 10:00:17 +07:00
WiZZy 69792b21c0 refactor(DB/world): graveyard_zone (#1599) 2019-03-23 00:01:43 +03:00
Ercules76 c53437bc75 Skill perfect item template (#1564)
* Core/Misc Created handler for character creation

* fix(Core/DB): Error message when the password is longer than 16 char when creating an account

* Update rev_1551539925032805900.sql

* Update AccountMgr.cpp

* Milestone (DB/Core): Create new table for perfect item craft, create new command for reload capability to this new table, implements the table into core (killExtraItems.cpp, SkillExtraItems.h, SpellEffects.cpp), change some magic number with enum. Tnx to Treestone

* clean old sql

* Remove perfect item in skill extra item template table, now the perfect are in skill_perfect_item_template, sync column name skill_extra_item_template same as TC

* Update rev_1552232377246845400.sql
2019-03-21 21:38:40 +03:00
Viste(Кирилл) 5cbced320d Fix(Core/Ticket System): Ticket comment visual output bug (#1567)
* Fix(Core/Ticket System): Ticket comment visual output bug

* fix build

* rewrite
2019-03-20 16:23:26 +03:00
Ercules76 8b7d067abc Fix(Core): GM command not working while GM mode is on (#1581) 2019-03-18 02:59:24 +03:00
Makpptfox 1d0a8dbba0 fix(Core/Commands): fix reload creature_template and creature movment
Reloading an existing creature with .reload creature_template will most of the time cause the error "MoveSplineInitArgs::Validate: expression 'velocity > 0.01f' failed for GUID..." when the NPC tries to move afterward without a proper server restart.

Caused because the cInfo->speed_run was calling the field 29 for whatever reason.
2019-03-09 21:28:40 +03:00