Commit Graph

50 Commits

Author SHA1 Message Date
Kitzunu
856aed6fc6 feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 (#11227) 2022-03-30 07:59:42 -03:00
IntelligentQuantum
5d51b0060c fix(Scripts/Commands): solve crash in .npc move (#10825) 2022-03-02 14:56:48 +01:00
Kitzunu
665919d010 refactor(Core/Misc): rename some variables that can be confusing (#10592) 2022-02-14 20:06:59 +01: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
Kargatum
8b7df23f06 feat(Core/Time): Implement saparated manager for game time (#8630) 2022-01-24 17:55:00 +07:00
Kargatum
7f05e20994 fix(Core/Pets): fix crash at pet resurrect (#10120) 2022-01-15 19:08:54 -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
Malcrom
d811d89c88 fix(Core/GM Commands): Update NPC Info command (#10157)
* fix(Core/GM Commands): Update NPC Info command

* Update rev_1642085410673517853.sql

* Update rev_1642085410673517853.sql

* Prevent temp spawn crashing

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
2022-01-13 19:28:40 -04: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
Kargatum
e12494d993 feat(Core/Pets): Management refactoring (#9712)
* feat(Core/Pets): rework managment

* 1

* 2

* 3

* 4

* 5

* cs pet

* check before ressurect

* pet DECLINED_NAMES

* display

- https://github.com/azerothcore/azerothcore-wotlk/issues/9297

* ArenaSpectator

* 1
2021-12-30 18:45:13 -03:00
Kargatum
aa7932e971 feat(Core/EnumUtils): add more enum for support chat command (#8828) 2021-11-03 10:50:11 +01:00
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
IntelligentQuantum
c08ad3e3c9 refactor(Scripts/Commands): Convert cs_npc to new system (#8814) 2021-10-30 16:29:34 -03:00
Kargatum
bc9473482e feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243) 2021-10-23 10:15:42 +02:00
Kitzunu
bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +02:00
Kargatum
52aa0e9966 feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
Andrius Peleckas
e6b1201e50 fix(Core/Creature): Fixed GroupAI flags usage in creature_formations (#7544)
* fix(Core/Creature): Fixed GroupAI flags usage

* fix(Core/Creature): build fix + code style...

* fix(Core/Creatures): trailing white spaces...

* Core/Formations: allow only certain members to have follow formation

* Core/Formations: fixed ancient data corruption in CreatureGroup::LeaderMoveTo

* Core/Formations: minor optimization

* Core/Formations: improved some warning messages

* Core/Formations: do not load invalid formation data which has unsupported group ai

* Core/Formations: minor adjust for recent commit

* Core/Formations: log formation data which has angle and distance but dont have GROUP_AI_FLAG_FOLLOW_LEADER flag

* Core/Formations: Minor optimization for formation data handling

* Core/Formations: make sure that FormationInfo members are always initialized on its creation

* Core/Formations: minor warnings adjustments

* DB/Formations: fixed some warnings

* Core/Formations: check group flags only if there is any
I have gues that maybe leader could not assist any member at all but members maybe could be linked for motion

* DB/Formations: fixed rest of DB warnings

* Core/Formations: more improvements for supported AI mask check

* Core/Formations: more improvements for data checks

* DB/Formations: fixed warnings

* meh

* DB/Formations: minor correction

* Core/Formations: code style - brackets, you suck... :D
2021-09-24 19:51:55 +02:00
Francesco Borzì
fab0fc421b refactor(Scripts/Commands): code cleanup (part 4) (#6921) 2021-07-18 13:25:44 +02:00
Kitzunu
2ce0739838 feat(Scripts/Commands): show SpellSchoolImmuneMask in .npc info (#6788) 2021-07-09 11:39:48 +02:00
Kargatum
9ac6fddcae feat(Core/Database): port TrinityCore database API (#5611) 2021-06-22 06:21:07 +02:00
Kargatum
5787d00d54 chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-21 03:07:12 +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
r0m1ntik
edd6d65fb2 fix(Core/Command): crash on set model to npc if not valid (#4874) 2021-03-21 15:19:18 +01: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
Kargatum
5e20b46812 refactor(Core/Scripts): restyle scripts lib with astyle (#3467) 2020-10-11 10:35:34 +02:00
IntelligentQuantum
5d284f02a7 feat(Core/SendListInventory): Add multivendor function (#3172) 2020-08-20 11:00:11 +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 be675bf83fc6a02f3347ea76408152d623d374bf.

* fix indent

* Revert "fix indent"

This reverts commit f4cb3d2d9fa908445d342b6f2e6dda9d52fd4665.

* Revert "Revert "fix indent""

This reverts commit 48527cfd2f9031f95bdf6e0d7b90111a3c0dc0f2.

Co-authored-by: ratkosrb <ratkosrb@users.noreply.github.com>
2020-04-11 11:20:02 +02: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
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
Ercules76
8b7d067abc Fix(Core): GM command not working while GM mode is on (#1581) 2019-03-18 02:59:24 +03:00
Nefertumm
c15206fc15 Revert "feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)" (#1471)
This reverts commit 51b8773528.
2019-02-15 15:14:49 -03:00
Viste(Кирилл)
51b8773528 feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)
i.e. world update start
2019-02-14 19:22:17 +01:00
Stoabrogga
c369ba44e6 fix error message and help text for new 'npc set faction' command 2018-08-12 23:16:01 +00:00
talamortis
a47876ebd9 Updated custom commands made. 2018-08-05 00:52:10 +01:00
talamortis
295f461fdd Added the commands into a sub table
Now

.npc set faction temp (id)
.npc set faction original
.npc set faction perm (id)
2018-07-22 00:37:43 +01:00
talamortis
e36dac4258 added two more commands to .npc set
* .npc set tempfactionid (35) - will changed the selected npc faction but will not save it.

* .npc set originalFaction - will restore the correct faction from the npc faction template in the DB.

closes #706
2018-07-22 00:23:39 +01:00
Nefertumm
dd300003e2 Update license links (#783) 2018-03-12 10:54:57 +01:00
Nefertumm
11862840e2 Mechanic_immune_mask added in npc info command (#771) 2018-03-04 23:24:54 +01:00
Yehonal
403ed2600f Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk into dir-restructure 2017-12-21 11:26:43 +01:00
Yehonal
17332304fd Using TC structure allowing easier patches importing 2017-12-21 00:20:29 +01:00
Yehonal
b0c8eceb08 Refactoring part 2 [W.I.P] 2016-08-12 02:38:26 +02:00
yehonal
bf139c3d34 Removing multi-vendor Rochet2 patch
It caused compilation errors too
2016-06-27 00:19:46 +02:00
Yehonal
f6eefedcd5 converted all tabs to 4 spaces 2016-06-26 19:23:57 +02:00
Yehonal
52f305111c importing changes from callmephil repo
a special thanks to him
2016-06-26 19:22:35 +02:00
Yehonal
e8e94a0a66 First Commit
For Azeroth!
2016-06-26 10:39:44 +02:00