Commit graph

149 commits

Author SHA1 Message Date
ZhengPeiRu21
0667454dd9
feat: Allow Float Rep Values (#15818) 2023-04-22 10:42:00 -03:00
Kitzunu
9eb4b3a336
feat(Core/Character): Implement profanity_name (#15156) 2023-03-04 17:43:14 -03:00
Kitzunu
5a9aeada12
feat(Core/DBC): Implement NamesProfanity and NamesReserved DBC (#14956) 2023-02-12 10:51:42 +01:00
Skjalf
66f4feb1da
chore(DB/SQL): Correct file to comply with standards (#14953) 2023-02-11 19:50:19 -03:00
Pedro Antonio
2e6c28c4d8
feat(Core/Pet): DK Petname generation locale (#14059) 2023-02-11 18:21:43 -03:00
Kitzunu
409c7356ea
refactor(Core/ObjectMgr): Load Creatures.CustomIDs into stores (#14835) 2023-02-05 09:32:41 -03:00
Skjalf
dba8c49bce
chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875) 2023-02-05 08:35:52 -03:00
Benjamin Jackson
916d4f50da
chore(Core/ObjectMgr): Adjust a few comments/logs to reflect recent changes with stat handling. (#14759) 2023-01-26 05:29:44 -03:00
Benjamin Jackson
4e2270c935
feat(Core/ObjectMgr): Add handling specific to heroic player level stats (DKs). (#14378) 2023-01-25 13:14:31 -03:00
M'Dic
437d93926f
fix (core): macos12 depreciation workflow error / security CWE-120 (#14746)
* fix (core): macos12 depreciation workflow error

Fix workflow error message:
azerothcore-wotlk/src/common/Utilities/Util.cpp:558:9: fatal error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(buffer, "%02X", bytes[i]);

* Update BattlegroundAV.cpp

* more macos12 fixit

* Update spell_generic.cpp
2023-01-23 06:13:27 -05:00
Kitzunu
aecf278cbe
chore(Core/Docs): Remvoe old comment (#14684)
* fixed in e322c017ea
2023-01-15 14:30:48 +01:00
Revision
1c523bd611
feat(Core/Config): Allow disable points of interest for quests (#14501) 2023-01-04 20:30:57 -03:00
Benjamin Jackson
5534455c32
refactor(Core/player_levelstats): Split player_levelstats into class and race specific tables. (#14383)
Co-authored-by: ahchxj2416 <64737877+ahchxj2416@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: funjoker <torti-esser@web.de>
2023-01-02 21:04:08 +01:00
Kitzunu
4870b14b1f
refactor(Core/Object): getLevel() -> GetLevel() (#14122)
* refactor(Core/Object): getLevel() -> GetLevel()

* fix build and sneak some doxygen in

* codeSTLE

* codestyle
2022-12-31 17:39:23 +01:00
UltraNix
f3820bd375
fix(Core/Players): Players should nt able to rest in unfriendly taver… (#13493)
* fix(Core/Players): Players should nt able to rest in unfriendly taverns. Original author: @Rushor

Fixes #13459

* Update.
2022-10-29 07:15:18 -03:00
M'Dic
967f8ce6d6
update (core): Startup console capitalizations (#13195) 2022-10-01 13:09:34 -04:00
ZhengPeiRu21
fbf65ebc9d
feat(Core): Allow negative resistance values (#12958)
* feat(Core): Allow negative resistance values

* Add SQL
2022-09-25 10:45:22 -03:00
Benjamin Jackson
fc2433cf9e
fix(Scripts/Mail) Fix faction server mail rewards. (#12593)
* Create blackrock-drakes.sql

* Switch some things around.

* DELETE IT AGAIN
2022-07-31 09:43:40 -04:00
UltraNix
0b0a142580
feat(Core/Entities): Enabled loading basic stats for players, pets an… (#12394)
* feat(Core/Entities): Enabled loading basic stats for players, pets and items from database as 32 bit integers.

Closes #12386
2022-07-23 12:12:07 -04:00
Nefertumm
9b6da94510
fix(Core/AI): more AI factory checks (#12402)
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
Co-authored-by: Treeston <treeston@users.noreply.github.com>
Co-authored-by: Aokromes <aokromes@users.noreply.github.com>
2022-07-19 14:31:03 -03:00
Julio A. Leyva Osorio
37c1ce5e36
fix(core): Npc gossip error logging (#11999) 2022-06-24 12:35:25 -03:00
Nefertumm
396fd35ed5
fix(Core/Spells): Implement SPELL_EFFECT_ACTIVATE_OBJECT (#11648)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2022-06-13 21:10:31 -03:00
Hanabi
a6a2ca8ef7
feat(Core/GameObjects): Instance gameobject save data implementation (#11113)
* fix(Core): Save gameobject state on instances

Currently, azerothcore doesn't save gameobject states on instances.
Whenever there's a re-start or crash, the instance's gameobjects and
their states aren't saved, producing un-wanted behaviours and blocking instances at times.

Implemented CRUD for new table `instance_saved_data` that holds the states of gameobjects.

- When worldserver launches and gameobjects are loaded, this will check
  if this object's state exists on the DB and sets the previous state.
- On instance deletion (reset) these states are also removed based on
  the instance ID.
- Whenever a gameobject state changes inside a dungeon or raid, we save
  on the database the set state.

* Select query to synchronous and used FindMap()

* loading gameobject states on create

* reseting instance saved data

* missing reset methods and on create state

* database structure

* Update src/server/game/Entities/GameObject/GameObject.cpp

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

* Update src/server/game/Entities/GameObject/GameObject.cpp

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

* Update src/server/game/Entities/GameObject/GameObject.cpp

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

* Update src/server/game/Entities/GameObject/GameObject.cpp

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

* Update src/server/game/Entities/Player/PlayerMisc.cpp

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

* Update src/server/game/Groups/Group.cpp

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

* codestyle

* table changes

* table style

* codestyle

* table changes for columns

* data sanitization

* todo:

- Finish loading db data into the containers
- Using containers to find data
- How to get data from ObjectMGR inside Gameobject?

* loading on start up and db changes

* Removing unused data structure

* Uninitialised integer

* Whitespace

* clean-up and hooks to save states on memory

* Codestyle MySQL deprecated backticks

* i dont understand codefactor

* build

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

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

* Update src/server/game/Globals/ObjectMgr.h

Co-authored-by: Kargatum <dowlandtop@yandex.com>

* review changes

* unecessary removal

* pushback instead of emplace

* wrong database update

* Update ObjectMgr.cpp

* missing check

* removing entry from the PR

* missing removals

* last delete

* build

* aha! Found the culprit for the sudden assert errors

* type safety, save only important gameobjects

* static cast to unsigned short

* Update data/sql/updates/pending_db_characters/rev_1643629468629316100.sql

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

* type changes

* queries fix

* fix build

* enabling which gameobjects to save on the database

* deadmines iron clad door

* Adjustment to gameobject onj create state and instances:

- Gnomeregan doors and Grubbis boss state
- Deadmines missing doors
- Stratholme gameobjects state saved

* forgot emi blastfuse change to despawn

* Leaving group logic

* codestyle

* fixing merge issues

* prevent bad behaviour

* brain meltdown

* Update data/sql/updates/pending_db_characters/rev_1643629468629316100.sql

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

Co-authored-by: Claudiodfc <54484196+claudiodfc@users.noreply.github.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Kargatum <dowlandtop@yandex.com>
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2022-05-24 10:33:45 -03:00
Kitzunu
c55c4aa015
feat(Core/Creature): CREATURE_FLAG_EXTRA_MODULE (#11445)
* feat(Core/Creature): CREATURE_FLAG_EXTRA_MODULE

* Update CreatureData.h

* Update CreatureData.h

* Update CreatureData.h

* Update enuminfo_CreatureData.cpp

* Update enuminfo_CreatureData.cpp

* Update enuminfo_CreatureData.cpp

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2022-04-23 16:22:17 +02:00
Kitzunu
1501445b0a
chore(Core/Misc): nullptr cleanup (#11467) 2022-04-21 19:17:20 +02:00
Kitzunu
7ecd738674
feat(Core/Mail): Server mail (#10628) 2022-04-19 23:43:14 +02:00
UltraNix
f0eb6d36a3
fix(Core/Handlers): Faction Change service properly reset and give ne… (#9729)
Fixes #7981
Fixes #8732
2022-03-25 11:45:07 +01:00
Bogir[rus]
75439773d0
fix and bringing to a unified style warnings of server loading logs to be more visible at server startup (#10970) 2022-03-12 04:57:26 -03:00
Bogir[rus]
e05cfe5737
fix (Console): count of Broadcast Text Locales shown by logger on server start (#10942) 2022-03-09 08:11:08 -05:00
Kitzunu
d927ce6fac
feat(Core/Creature): Implement quest_greetings table (#10526)
* cherry-pick commit (6dda09818d)

Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
2022-03-06 18:19:08 +01:00
UltraNix
73957b95f6
fix(Core/Mail): do not show expired mails in packets (#10560)
Fixed #5920
2022-03-01 13:57:37 +01:00
Kitzunu
455899dc75
fix(Core/Misc): Change const to be after type name (#10591) 2022-02-14 16:05:45 -03:00
Kargatum
de13bf426e
feat(Core/DBLayer): replace char const* to std::string_view (#10211)
* feat(Core/DBLayer): replace `char const*` to `std::string_view`

* CString

* 1

* chore(Core/Misc): code cleanup

* cl

* db fix

* fmt style sql

* to fmt

* py

* del old

* 1

* 2

* 3

* 1

* 1
2022-02-05 00:37:11 +01:00
Bogir[rus]
0b4d483783
feat(Core/Conf): handle custom creatures IDs and exclude them from checks (#10367) 2022-02-04 17:52:23 +01:00
Kargatum
5969df4e30
refactor(Core/Logging): switch to fmt style for LOG_ (#10366)
* feat(Core/Common): add support fmt style for ASSERT and ABORT

* correct CheckCompactArrayMaskOverflow

* 1

* Update src/server/game/Spells/Spell.cpp

* rework logging

* add fmt replace logs

* logging

* FMT_LOG_

* settings

* fix startup

* 1

* 2

* 3

* 4

* 5

* fmt::print

* to fmt
2022-01-27 16:44:41 +01:00
Nefertumm
75951926e6
feat(Core/Logs): Improve logs for linked_respawn (#10202) 2022-01-27 08:35:44 -03:00
Bogir[rus]
1f93f0c9d6
fix(Core/Logs): fixed wrong decription of error during server startup
The Logger was pointing to the wrong table. Text is missing not in broadcast_text_locale, but in broadcast_text.
2022-01-24 12:55:33 -03:00
Kargatum
8b7df23f06
feat(Core/Time): Implement saparated manager for game time (#8630) 2022-01-24 17:55:00 +07:00
Francesco Borzì
abc56842c4
refactor(Core): remove unused imports (#10296) 2022-01-22 11:21:35 +01:00
Kargatum
6d7f58e6ed
feat(Core/Common): delete old Tokenizer (#10121) 2022-01-21 14:59:05 +07:00
Kitzunu
dd15fa706d
feat(Core/DB/Creature): Throw error if npcflag and gossip_menu_id is not c… (#9665)
* feat(DB/Creature): Throw error if npcflag and gossip_menu_id is not combined

*cherry-pick commit (a513922fc1)

* test

* Update ObjectMgr.cpp

* codestyle

* Update src/server/game/Globals/ObjectMgr.cpp

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>

* Update src/server/game/Globals/ObjectMgr.cpp

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2022-01-20 06:50:18 -03:00
Malcrom
dfac47a562
feat(Core/Creature): Allow 3 ids per spawn point. TESTING (#10169)
* feat(Core/Creature): Allow 3 ids per spawn point.

* Move GetRandomId to a function

* Update id to id1

* Fixed some errors crashing core and text

* Set ids to lowercase for GetRandomId function

* Update src/server/database/Database/Implementation/WorldDatabase.cpp

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

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-01-14 19:21:50 -04:00
Kitzunu
2ff4e85578
fix(DB/broadcast_text): align some column names (#10090) 2022-01-13 15:20:20 +01:00
Malcrom
2fd8b00d7b
feat(Core/Creature): Dual id Spawning WIP (#10115)
* feat(Core/Creature): Multi id Spawning WIP

* Update Creature.cpp

* Update PR

* Add Sql

* Update rev_1641837958335217980.sql

* Update src/server/game/Globals/ObjectMgr.cpp

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

* Update src/server/game/Globals/ObjectMgr.cpp

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

* Update rev_1641837958335217980.sql

* Update cs_npc.cpp

* Create changes_1641842959398297300.md

* Fixed issue added with random model PR

* Update GameEventMgr.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-01-10 22:09:14 -04:00
Malcrom
f1d4266efc
BREAKING CHANGE:(DB/Creature) Remove modelId field in creature table (#10071)
* fix(DB/Creature) Clear modelId field in creature table

* Change clear column to remove column

* Update src/server/game/Globals/ObjectMgr.cpp

* Update ObjectMgr.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
2022-01-10 16:41:33 -04:00
acidmanifesto
3cbe23865f
fix (Core/Creature): Random Gender on respawn if Gender exsist for Entry (#10108)
* Fix (Core\Creature): Random Gender on respawn if Gender exsrespawn

If creature has genders it will consider gender changing on respawn.
GetCreatureModelInfo to const

* Update Creature.cpp
2022-01-10 10:22:04 -05:00
Kitzunu
dbc35e3495
feat(DB/Creature): Allow to set swim and flight speeds (#10067) 2022-01-09 01:34:39 +01:00
acidmanifesto
2d4e17fd16
refactor(Core/Creature): Remove Inhabit Type (#9272)
This is in reference to issue: https://github.com/azerothcore/azerothcore-wotlk/issues/4361
This is comprised of a cherry pick and partial tc cherry pick:
592516ae69
dbadb6369c
34cfa69efd
12de860b4a
a22bc236eb
2022-01-06 10:33:22 -03:00
Kitzunu
ac99eb48e1
refactor(Core/Misc): abs() to std::abs() (#9789) 2021-12-31 19:29:39 -03:00
Kitzunu
8f707fbf34
fix(Core/Load): Comment continue (#9836) 2021-12-21 19:22:06 -03:00