Commit Graph

349 Commits

Author SHA1 Message Date
Kitzunu
7c68ba51e7 fix(Scripts/Commands): serv info (#19478) 2024-07-25 18:40:54 -03:00
Kitzunu
3fbded8f6b refactor(Core/Chat): PSendSysMessage to fmt (#19449)
* refactor(Core/Chat): PSendSysMessage to `fmt`
2024-07-23 23:48:46 +02:00
Kitzunu
21f86d1c3c chore(Core/Misc): Remove deprecated code (#19413)
* Config - Deprecated for 3 years
* ChatCommand - Deprecated for 2 years
* getLevel() - Deprecated for 2 years
* SendGlobalText - Deprecated for 8 years +
2024-07-20 09:11:01 +03:30
Kitzunu
428fb73e79 fix(Scripts/Reload): Only send reload output to GMs (#19443) 2024-07-19 14:45:14 +02:00
Kitzunu
2008d64e7b fix(Scripts/Commands): Ticket response (#19406)
* fix(Scripts/Commands): Ticket response

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

* Implements two new commands
    * ticket response delete - Delete a ticket response
    * ticket response show - Show current ticket response

* this better

* English?

* bette rlogic

* Update cs_ticket.cpp
2024-07-16 03:22:23 +02:00
Francesco Borzì
4040f93f85 refactor(Scripts/Commands): remove unused imports (#19340)
* refactor(Scripts/Commands): remove unused imports

* chore: fix build

* chore: revert unwanted change
2024-07-09 14:17:06 -03:00
Kitzunu
fc8b67bbe4 chore(Scripts/Commands): QOL server debug (#19297)
* chore(Scripts/Commands): QOL server debug

* England

* might as well do updatetime while we are at it. Consistency right?

* Hey let's sneak this ENGLAND in
2024-07-06 01:18:38 +02:00
Kitzunu
0a8175ef03 refactor(Core/ObjectMgr): Handle Profanity & Reserved Names in load (#19259)
* refactor(Core/ObjectMgr): Handle Profanity & Reserved Names in load

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

* Update ObjectMgr.cpp

* Update ObjectMgr.cpp

* I swear I am not drunk

* We already check all of these

* fix build

* Forgot we dont send the responsecode in senderrormessage

* last commit I swear
2024-07-03 00:23:32 +02:00
Kitzunu
f96d4c8670 Revert "Add (core\db): Support for Homebind Orientation (#13389)" (#19257)
* Revert "Add (core\db): Support for Homebind Orientation (#13389)"

This reverts commit 2e6f6e26da.

 Changes to be committed:
	modified:   src/server/database/Database/Implementation/CharacterDatabase.cpp
	modified:   src/server/game/DungeonFinding/LFGScripts.cpp
	modified:   src/server/game/Entities/Player/Player.cpp
	modified:   src/server/game/Entities/Player/Player.h
	modified:   src/server/game/Entities/Player/PlayerStorage.cpp
	modified:   src/server/game/Entities/Player/PlayerUpdates.cpp
	modified:   src/server/game/Handlers/CharacterHandler.cpp
	modified:   src/server/game/Handlers/MiscHandler.cpp
	modified:   src/server/game/Handlers/MovementHandler.cpp
	modified:   src/server/game/Maps/Map.cpp
	modified:   src/server/game/Spells/Spell.cpp
	modified:   src/server/scripts/Commands/cs_misc.cpp
	modified:   src/server/scripts/Commands/cs_tele.cpp
	modified:   src/server/scripts/Northrend/VaultOfArchavon/instance_vault_of_archavon.cpp

 Untracked files:
	data/sql/updates/pending_db_world/rev_1719945200692175000.sql

* Revert "Add (core\db): Support for Homebind Orientation (#13389)"

* whoops
2024-07-02 22:02:15 +02:00
Kitzunu
5a4692e45a chore(Core/Misc): #include cleanup (#19255) 2024-07-02 15:52:02 +02:00
Kitzunu
1289e351a2 fix(Script/Commands): output lookup quest and npc near (#19243)
* close https://github.com/azerothcore/azerothcore-wotlk/issues/19216
2024-07-01 07:24:54 -03:00
Walter Pagani
82d5a42402 chore(Command/unstuck) use command with offline players (#18913)
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
Co-authored-by: Anton Popovichenko <walkline.ua@gmail.com>
2024-06-09 08:45:17 -03:00
Mykhailo Redko
c13c1b28e7 fix(Scripts/Commands): Fix .lookup item command for most locales (#18922)
follow-up to 49e3d5d
2024-05-19 11:27:25 +02:00
Jelle Meeus
49e3d5dfff feat(Scripts/Commands): Add quality colors to .item lookup command (#18907)
add quality colors to .item lookup command
2024-05-18 14:08:20 +02:00
BAUXA
146f5a64ad fix(Scripts/Commands): "go xyz" command crash (#18676)
go xyz fix crash
2024-04-06 09:16:54 -03:00
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