Commit Graph

976 Commits

Author SHA1 Message Date
Shauren
5eea9883c2 Core/GameObjects: Reduce differences between branches part 3 - gameobject updatefield accessors 2022-03-30 18:01:24 +02:00
Shauren
e334fdf3ad Core/Units: Reduce differences between branches part 1 - object class 2022-03-29 23:07:07 +02:00
Shauren
d611925dc7 Core/Units: Reduce differences between branches part 1 - unit updatefield accessors 2022-03-29 11:30:49 +02:00
Shauren
47de80b852 Core/Commands: Fixed .pinfo ban output for permanent bans 2022-03-11 11:32:14 +01:00
kvolk2git
8ac63c7952 Update cs_misc.cpp (#27418) 2021-12-18 12:24:55 +01:00
kvolk2git
822b32b64b add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
2021-10-25 12:41:43 +02:00
ihm-tswow
c946370c5f Scripts/Commands: fix .learn all recipes (#27153)
if client had same locale as server, the command didn't work (should've been != and not ==).  Furthermore, server dbcs only have the server locale for these, and they might or might not match up with the client. only downside of removing the check entirely is possibility of mixups if two locales have overlapping names for different skills. I highly doubt a single such instance exists.
2021-10-24 17:56:01 +02:00
Aokromes
e8c005df3d Scripts/Misc: Remove again LANG_ADDITEM 2021-10-06 15:58:07 +02:00
Giacomo Pozzoni
e3591b25a5 Scripts/Commands: account onlinelist (#27004)
* Script/Commands: Remove sync db queries from ".account onlinelist"

* Add additional "account onlinelist" commands

- "account onlinelist ip" to filter by ip address
- "account onlinelist limit" to limit the output rows
- "account onlinelist map" to filter by map id
- "account onlinelist zone" to filter by zone id

* Update src/server/scripts/Commands/cs_account.cpp
2021-10-06 11:32:37 +02:00
Giacomo Pozzoni
bebf1876ab Script/Commands: Allow to specify the target player in .additem command (#26997)
* Script/Commands: Allow to specify the target player in .additem command

New syntax: .additem <required item id> <optional item count> <optional player name>
Close #25875

* Move target player to new command ".additem to <player> <item> <count>"
2021-10-06 11:32:07 +02:00
Shauren
c029f21f34 Core/Misc: Fix appleclang 12 warnings
(cherry picked from commit 3bf6698116)

# Conflicts:
#	src/server/game/Handlers/BlackMarketHandler.cpp
#	src/server/game/Loot/LootItemStorage.cpp
#	src/server/scripts/Northrend/Nexus/Oculus/boss_urom.cpp
#	src/server/shared/DataStores/DB2DatabaseLoader.cpp
2021-10-06 10:34:20 +02:00
Aokromes
a462daa01c Scripts/Misc: Remove 2 logs, they are handled by gm logs 2021-10-05 15:52:33 +02:00
Shauren
325bdc0ab0 Core/Spells: Remove remaining direct accesses to SpellInfo::Effects 2021-09-04 14:21:02 +02:00
jackpoz
b64ef1a39a Scripts/Commands: Fix ".wp show info" showing wrong event chance values 2021-08-21 14:38:27 +02:00
Shauren
7c7b4760d8 Scripts/Commands: Avoid copies of RBACCommandData
Silences the PVS V1002 warning:
"The 'RBACCommandData' class, containing pointers, constructor and destructor, is copied by the automatically generated copy constructor."
2021-08-16 22:42:23 +02:00
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