Commit Graph

961 Commits

Author SHA1 Message Date
Carbenium
b90a4f1798 Scripts/Commands: Convert argument parsing of instance commands to new system 2021-08-15 19:17:30 +02:00
Carbenium
cd1ef2de06 Scripts/Commands: Convert title commands to new system 2021-08-14 14:00:05 +02:00
Carbenium
f620befc37 Scripts/Commands: Convert rbac commands to new system
Note: To enable rbac commands for administrators permissions 202-206 have to be linked to permission 196.

Sample SQL for auth DB:
INSERT INTO `rbac_linked_permissions` VALUES (196, 202), (196, 203), (196, 204), (196, 205), (196, 206);
2021-08-14 12:50:18 +02:00
Giacomo Pozzoni
96dc110f4a Core/DBLayer: Add QueueSize() method (#26733)
* Core/DBLayer: Add QueueSize() method

Add QueueSize() method to database objects (Login, Character and World) that returns how many tasks are queued.
Include the queue size of the 3 databases in ".server debug" command

* Make the code less threadsafe

* Send data to InfluxDB

* Update grafana dashboard
2021-07-24 14:50:30 +02:00
jackpoz
5094363a94 Scripts/Commands: Fix ".server debug" crashing in some special conditions 2021-07-17 16:07:44 +02:00
Carbenium
6b9afac82f Scripts/Commands: Convert misc command table to new system 2021-06-28 00:45:44 +02:00
Carbenium
5a5b232a44 Scripts/Commands: Convert honor command table to new system 2021-06-28 00:44:44 +02:00
jackpoz
33dace231c Core/Misc: Fix issues reported by static analysis 2021-06-20 13:11:53 +02:00
Gildor
5446209b89 Scripts/Commands: Minor improvements in .pinfo and .unban character commands (#26586)
* Scripts/Commands: Minor improvements in .pinfo and .unban character commands
2021-06-20 12:08:12 +02:00
jackpoz
105c70802d Scripts/Commands: Fix crashes with ".group revive" and ".group repair"
Close #26575
2021-06-05 12:37:30 +02:00
Giacomo Pozzoni
9aff21b3d5 Scripts/Commands: Add ".list auras id <aura id>" and ".list auras name <name part>" subcommands (#26346)
Add ".list auras id <aura id>" and ".list auras name <name part>" subcommands to allow filtering the auras
2021-04-08 15:34:09 +02:00
jackpoz
2cea7d000c Scripts/Commands: Restore ".character level" command behavior
Restore ".character level" command behavior by setting the level instead of adding the level
2021-04-05 19:44:54 +02:00
CraftedRO
db69b832b9 Group repair command attempt (#26304)
* Group repair command attempt

* Update cs_group.cpp
2021-04-04 22:01:46 +02:00
Jakub Cieplinski
397d4b5d05 Group level up (#26139)
* First version of command handler

* Done HandleReviveAllCommand

* Moved command to group subcommonads

* Added group level up

* Removed empty line

* Added additional nullchecks

* Removed newline

* Code styling

* Added group set level command

* Removed whitespace

* Removed group set level command

* Unnecessary comma

* Added check for level lower bound
2021-03-20 12:21:22 +01:00
Jakub Cieplinski
97e41645d3 Revive all command (#26127)
* First version of command handler

* Done HandleReviveAllCommand

* Moved command to group subcommonads

* removed empty row

* nullptr check for player target
2021-02-27 14:04:07 +01:00
Matan Shukry
d2be584f99 Core/Commands: Implemented command to teleport character to npc
Closes #25870
2021-01-28 21:32:36 +01:00
Giacomo Pozzoni
661f554b9e Core/Misc: Fix static analysis issues (#25924)
* Core/Misc: Fix static analysis issues

* Fix infinite loop in ".debug send opcode"
Fix using uninitialized memory in ".debug send opcode"
2021-01-24 16:04:47 +01:00
jackpoz
d0231c5a8f Scripts/Commands: Improve ".debug objectcount"
Include the number of SetActive objects in ".debug objectcount" command
2021-01-23 15:54:25 +01:00
Shauren
8d450f3f07 Core/Commands: Add .reload vehicle_template
(cherry picked from commit 4ca15ec065)

# Conflicts:
#	sql/base/auth_database.sql
#	src/server/game/Accounts/RBAC.h
2021-01-03 22:51:53 +01:00
Kargatum
a32b6b8ac4 Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf
2021-01-03 11:47:07 +01:00
Treeston
803dc789e4 Core/Maps: All RespawnInfo* handed to outside code are now RespawnInfo const*, to signify that outside code has zero business changing these. 2020-12-31 18:57:18 +01:00
jackpoz
9994459bd1 Scripts/Commands: Include map min height in ".gps" command 2020-12-27 17:14:22 +01:00
Treeston
cc8287927b [3.3.5] Scripts/Commands: .learn adjustments (PR #25454) 2020-11-18 20:09:34 +01:00
Gildor
b70314b075 Script/Commands: .character changeaccount now disconnects player before transferring (PR #25560) 2020-10-12 20:16:23 +02:00
jackpoz
6f6cec89e5 Core/Commands: Enable .debug loadcells on console and allow to load a specific tile
Specify the tile as XY. Note that this is not Grid XY
2020-09-26 16:23:26 +02:00
jackpoz
34af088c9b Core/Commands: Fix typo in .mmap loc command
The displayed "tileloc" value is a "swapped" Tile XY, not to be confused with Grid XY.
2020-09-26 16:14:32 +02:00
Treeston
837e32fe11 whitespace to make CI happy, 7bf9a06 follow-up 2020-09-24 22:22:40 +02:00
Treeston
7bf9a0640e Scripts/Commands: Fix a potential crash in cs_account.cpp 2020-09-24 22:12:46 +02:00
Treeston
f45600fb2e Scripts/ChatCommands: Rename 'lookup itemset' to 'lookup item set' to remove ambiguity. 2020-09-24 00:06:17 +02:00
Treeston
899932a275 Scripts/Commands: Move .account to trinity_string 2020-09-22 20:26:51 +02:00
Treeston
26c510775c Core/ChatCommands: Add trinity_string support for chat command help 2020-09-21 02:37:18 +02:00
Treeston
e11b466897 Scripts/Commands: Rename .additemset to .additem set to avoid ambiguity 2020-09-20 22:29:09 +02:00
Treeston
991dc8e050 1eca51b follow-up, nuke command.permission from orbit; it was only duplicating data already stored in the core. 2020-09-20 03:31:54 +02:00
Treeston
1eca51b417 [3.3.5] ChatCommands, the other half: chat command resolution refactor (PR #25463) 2020-09-20 02:50:38 +02:00
Giacomo Pozzoni
6215da0d64 Script/Commands: Add ".pdump copy" command (#25455)
* Script/Commands: Add ".pdump copy" command

Syntax: .pdump copy $playerNameOrGUID $account [$newname] [$newguid]
Copy character with name/guid $playerNameOrGUID into character list of $account with $newname, with first free or $newguid guid.

* Add missing return

* Restore eof check

* Fix sql

* Use forward declaration header

Co-authored-by: Shauren <shauren.trinity@gmail.com>

* Remove buffer when reading a line

* Rename sql files

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-09-17 21:49:52 +02:00
Treeston
d2f51569d1 Scripts/Commands: Correct some unexpected behavior in .level 2020-09-17 00:12:21 +02:00
Treeston
75f9e7396e [3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443) 2020-09-12 19:42:10 +02:00
Treeston
59be657ca2 Core/Misc: Fix some static analysis warnings exposed after 6b8f3d0. 2020-09-12 19:40:09 +02:00
jackpoz
a46c835ed1 Core/LFG: Restore ".lfg queue" command argument handling 2020-09-11 23:39:11 +02:00
Treeston
feaaa595ca Core/ChatCommands: make ExactSequence more readable 2020-09-10 15:19:17 +02:00
Peter Keresztes Schmidt
8985fc4046 Core/ChatCommands: Drop PlayerIdentifier's cast operators which could return nullptr (PR #25431) 2020-09-10 13:10:01 +02:00
Peter Keresztes Schmidt
0769d77269 Scripts/Commands: Convert argument parsing of lfg commands to new system (PR #25430) 2020-09-10 12:54:30 +02:00
Peter Keresztes Schmidt
062c55f1ab Scripts/Commands: Convert remaining debug commands (PR #25429) 2020-09-10 01:05:44 +02:00
Treeston
4f636b80e4 Chat/Commands: Eradicate ChatHandler::extractOptFirstArg 2020-09-09 18:33:18 +02:00
Treeston
00dd337b5d Scripts/Commands: .character command conversion 2020-09-07 15:38:23 +02:00
Treeston
b63d655e20 [3.3.5] Scripts/Commands: .arena command conversion (PR #25407) 2020-09-06 23:36:23 +02:00
Treeston
88d446dadf Scripts/Commands: Convert argument parsing of .npc commands
(And I snuck some chat command cleanup in there, more de-cluttering!)
2020-09-04 00:58:23 +02:00
Treeston
35b3ba90b0 Scripts/Commands: Convert argument parsing of gameobject commands 2020-09-03 22:16:57 +02:00
Treeston
944f49d613 Scripts/Commands: Fix a crash in .help - closes #25360 2020-08-30 13:45:04 +02:00
Treeston
2f7d2ef3e9 Core/ChatCommands: C++17 cleanup (again) (PR #25323) 2020-08-30 02:50:25 +02:00