Commit Graph

334 Commits

Author SHA1 Message Date
Anton Popovichenko
47f9d66874 feat(Core/Optimization): Create index for sSkillLineAbilityStore to speedup search by skillLine. (#18622)
* feat(Core/Optimization): Create index for sSkillLineAbilityStore to speedup search by skillLine.

* Remove whitespace.
2024-04-01 05:50:12 -03:00
Andrew
452ca39249 fix(Scripts/Commands): Fix crash when using additem from console (#18559) 2024-03-16 04:56:42 -03:00
Elmsroth
ab02c36e67 feat(Scripts/Commands): Implement ".reset items" command (#18393)
Syntax : .reset items equiped|bags|bank|keyring|currency|vendor_buyback|all|allbags #playername
Delete items in the player inventory (equiped, bank, bags etc...) depending on the chosen option.
#playername : Optionnal target player name (if player is online only). If not provided the command will execute on the selected target player.


Update src/server/scripts/Commands/cs_reset.cpp

Accepted

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
Update data/sql/updates/pending_db_world/rev_1708782048020249700.sql

Accepted

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
Update data/sql/updates/pending_db_world/rev_1708782048020249700.sql

Accepted

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
Update src/server/game/Miscellaneous/Language.h

Accepted

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
fix uint16 vs uint16_t


fix crash and code cleanup

Fix typo

sql fix

Missing typo

selected instead or selecter

AC code style fix

Re-Fix typos

MISSING typos

missing typos
2024-03-15 10:23:31 -03:00
Anton Popovichenko
34598bfccf feat(Core/UpdateTime): Improve diff time measurement. (#18387)
* feat(Core/UpdateTime): Improve diff time measurement.

* Codestyle fixes
2024-02-25 12:08:15 -03:00
Nathan Handley
df33a57b78 feat(Core/Unit): New helper IsClass and script hook OnPlayerIsClass (#18243)
* Class Comparison Logic Encapsulation - Parity

* Add Context to IsClass

* Add Unit IsClass script hook

* Replace additional getClass with IsClass

* Update CanUseItem to replace getClass with IsClass

* Add separate context for pet vs ability

* Change Create to Init since not all referenced contexts are creation

* Align spacing in ClassContext

* Drop context on LFGManager max power

* Update IsClass context that wraps around Missle Barrage

* Rename context for swapping weapons

* Be more specific than CLASS_CONTEXT_TALENT

* Remove duplicate context

* Moved IsClass Hook to Player

* Removed unused parameter in virtual base function

* Added maybe_unused to IsClass virtual in order to compile

To match the override signature, the virtual base needs to include the parameter in question, so using [maybe_unused] to signal to the compiler to allow it

* Remove extra blank line

* Add ABILITY_REACTIVE context

* Add context for PET_CHARM

* Remove explicit nullopt check per review

* Code Readability - Change if to if else in pet

Due to the return pattern, this doesn't change functionality in any way

* Add OnPlayer to disambiguate

---------

Co-authored-by: NathanHandley <nathanhandley@protonmail.com>
2024-02-10 12:25:00 -03:00
sudlud
e447351b0f fix(Core/Creature): Remove automated z spawn correction (#18200)
* fix(Core/Creature): Remove automated z spawn correction

* comment out unused parameter

* remove gridLoad parameter from Creature::LoadCreatureFromDB()
2024-01-21 07:33:00 -03:00
MellianStudios
a89fa73b72 fix(Scripts/Command): prevent crash on set motd (#18203)
* prevent crash on set motd

* updated version

* another version

* Update cs_server.cpp

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2024-01-21 00:04:46 +01:00
Andrew
39ea396113 feat(Scripts/Commands): Implement gameobject respawn command (#18129) 2024-01-07 17:58:17 +01:00
Andrew
e3fd42f3d4 feat(Core/World): Implement DoForAllPlayers() helper for all online p… (#18060)
* feat(Core/World): Implement DoForAllPlayers() helper for all online players

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

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

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

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

* rename

* Update WorldMock.h

* Update WorldMock.h

---------

Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
2024-01-01 13:57:57 +01:00
IntelligentQuantum
016bb86d3b refactor(Scripts): remove useless includes (#18004) 2023-12-22 18:41:28 +01:00
avarishd
0ab4931bf5 fix(Scripts/Commands): fix wpgps and add sai option for formating (#17990)
* fix(Scripts/Commands): fix wpgps and add sai option for formating

* ???
2023-12-11 23:54:52 -03:00
Kitzunu
4d935d6d8a fix(Scripts/Commands): Crash on go xyz with invalid mapid (#17962)
fix(Scripts/Commands): Crash on go xyz
2023-12-09 01:06:02 +01:00
Kitzunu
d0f10a12c0 feat(Scripts/Commands): introduce go creature name (#17910)
* feat(Scripts/Commands): introduce go creature name

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/2315

* Since new command handler the old "go creature" dont take name as argument

* Update cs_go.cpp

* this could be null... so let's avoid stupid crashes

* we only need the first result if there are multiple

* Update cs_go.cpp

* Update rev_1701381015172273800.sql
2023-12-03 02:57:41 +01:00
Winfidonarleyan
eb1ecc38a5 feat(Core/Scripting): move all script objects to separated files (#17860)
* feat(Core/Scripts): move all script objects to separated files

* Apply 5bfeabde81

* try gcc build

* again
2023-12-02 21:13:20 +01:00
Kitzunu
eb663a436a fix(Scripts/Command): Allow player name/guid in additem (#17915)
* fix(Scripts/Command): Allow player name/guid in additem

* build?

* Revert "build?"

This reverts commit 3f37456f1d41a0db0bae45801c6f90e72ce19292.

* Update cs_misc.cpp

* console isnt a player
2023-12-02 19:59:09 +01:00
Kitzunu
db4b0b0d3d feat(Core/ChatHandler): Add SendErrorMessage helper (#17919)
* feat(Core/Chat): Add SendErrorMessage helper

* lost boy
2023-12-02 19:25:32 +01:00
Kitzunu
c1a12a64ee fix(Script/Commands): Make sure learn all lang also give you the skill (#17902) 2023-11-29 22:26:40 +01:00
Kitzunu
635288b5c5 fix(Scripts/Commands): Display GUID on gob info (#17900)
* fix(Scripts/Commands): Display GUID on gob info

* close https://github.com/azerothcore/azerothcore-wotlk/issues/8129

* Update cs_gobject.cpp
2023-11-29 20:14:58 +01:00
Kitzunu
e8336919f9 fix(Scripts/Command): ticket comment should allow input (#17891)
fix(Scripts/Command): gm comment should allow input

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/17877
2023-11-29 09:38:03 -03:00
Andrew
76a2bbfef0 fix(Scripts/Commands): Use the argument parser to parse guild names (#17863) 2023-11-26 16:59:58 +01:00
KJack
b7f7a7c731 fix(Core/Creature): Make Respawn() respect conditions and linked respawns (#17597) 2023-11-26 08:48:58 -03:00
Dan
d4931755ea fix(Scripts/Commands): make sure no invalid IDs can be passed in map creation for .go xyz (#17836)
* handle wrong ID

* remove enum

* white line at end

got removed for some reason idk

* a tab
2023-11-24 01:20:09 +01:00
KJack
48271945d0 feat (core/cs): Make .go xyz ignore non-numeric data to improve copy-paste usability (#17772)
* Flexible `.go xyz` working well with existing syntax order.

* Make `.go xyz` ignore non-numeric characters

* Support values separated by something other than a space.

* Use current player orientation instead of `0.0f`

* Rename `inputCoords` to `args` per request.
2023-11-19 22:43:48 +01:00
Dan
a286bc55bd fix(Scripts/Commands): guild commands revert back to using guild names in quotes (#17798)
* initial

* remove tabs
2023-11-19 16:04:46 +01:00
Winfidonarleyan
e90d7a2f92 chore(Core/Misc): sort includes (#17776)
* chore(Cleanup): sort includes

* fix build

* fix build again
2023-11-18 17:51:26 +01:00
KJack
751ffc7c70 feat(Core/Hooks): Add OnAfterDatabaseLoadCreatureTemplates hook (#17621)
* Add OnAfterDatabaseLoadCreatureTemplates hook
- fix issue where the fast template cache was not updated correctly after a CS reload of a single creature template

* Parameter naming tweak to reduce confusion.

* Refactor to streamline fastcache creation, remove threading concerns

* Remove unneeded resize when loading creature templates

* Update fast cache resizing to highest-performing option
2023-10-31 06:58:45 -03:00
Kitzunu
f757e93da5 refactor(Core/Misc): Make DeathState enum class (#17607) 2023-10-28 10:54:03 +02:00
IntelligentQuantum
a0985f59b6 refactor(Scripts/Commands): convert cs_ticket to new system (#17547)
Update cs_ticket.cpp
2023-10-21 08:22:53 -03:00
IntelligentQuantum
332ff49c13 refactor(Scripts/Commands): convert cs_reset to new system (#17546)
Update cs_reset.cpp
2023-10-20 19:41:02 -03:00
IntelligentQuantum
39db3de5af refactor(Scripts/Commands): convert cs_guild to new system (#17515) 2023-10-18 10:57:28 -03:00
Kitzunu
a4e4d6ddb2 feat(Core/Player): Implement commentator tag (#17449)
* feat(Core/Player): Implement commentator tag

* remove redundant session check
2023-10-08 09:07:17 +02:00
Skjalf
1328412501 fix(Scripts/Commands): Fix list creature string output (#17351) 2023-09-25 06:09:00 -03:00
Skjalf
def86cc74e feat(Scripts/Commands): Display creature entry when using the npc nea… (#17331)
feat(Scripts/Commands): Display creature entry when using the npc near command
2023-09-24 10:19:00 -03:00
Francesco Borzì
eaa6487fc2 refactor(Scripts): remove unused imports (#17097) 2023-08-27 22:25:22 -03:00
Kitzunu
de2e2b6e8b fix(Scripts/Command): Improve output of event commands (#16980) 2023-08-12 00:03:03 +02:00
Kitzunu
c866e17406 refactor(Core/Motd): Move motd to MotdMgr (#16933) 2023-08-06 23:02:54 +02:00
Skjalf
b3eb43a113 fix(Scripts/Commands): Allow using flusharenapoints from console (#16879) 2023-08-02 14:44:13 -03:00
Kitzunu
5f95428c79 chore(Scripts/Misc): Improve server debug (#16708) 2023-07-15 17:14:38 -03:00
KJack
b5f311bf56 fix(Scripts/Commands): Fix '.send items' command to no longer require an itemId count (#16340)
* Fix '.send items' command to no longer require an itemId count

* Remove leftover debugging output, oops.
2023-05-28 16:28:01 -03:00
M'Dic
8aa2a2ac0f chore (core): Clean up (#15977)
* chore (core): Clean up

* Update SmartScript.cpp

* more clean up

* Update boss_xt002.cpp
2023-04-16 21:04:56 -04:00
Kitzunu
9eb4b3a336 feat(Core/Character): Implement profanity_name (#15156) 2023-03-04 17:43:14 -03:00
Kitzunu
99f5fa79aa refactor(Core/Autobroadcast): Move autobroadcast to it's own file (#15147) 2023-02-21 20:18:25 +01:00
Kitzunu
0c4feb6744 refactor(Core/Motd): Move motd from conf to db (#15111) 2023-02-20 22:07:26 +01:00
Kitzunu
f039836a2f chore(Core/Misc): Change all TODO to doxygen comment (#14966) 2023-02-12 10:05:34 -03:00
Skjalf
dba8c49bce chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875) 2023-02-05 08:35:52 -03: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
Skjalf
4df5302e2f feat(Scripts/Commands): Output SpellCastResult if the spell fails to … (#14359)
feat(Scripts/Commands): Output SpellCastResult if the spell fails to cast when using the cast spell commands
2022-12-24 09:47:13 -03:00
Winfidonarleyan
a1a1528cb4 feat(Core/Crypto): add support OpenSSL 3.0 (#13354) 2022-11-24 01:12:20 +07:00
55Honey
856c2e5e58 chore(Scripts/Commands): increase default removal duration to 30m from 15m (#13869) 2022-11-19 09:34:30 -03:00
Mickaël Mauger
2e5e3bda5d fix(Scripts/Commands): Fix assertion error on mmaps path command (#13704) 2022-11-16 01:24:27 -03:00