Commit Graph
1425 Commits
Author SHA1 Message Date
Shauren 8466894d81 Core/Maps: Replace some Instanceable() checks with IsDungeon() 2022-07-20 18:55:40 +02:00
Shauren 073a036d84 Core/Battlefields: Refactor Battlefield creation to be linked to host map creation instead of having globally accessible objects 2022-07-19 23:18:19 +02:00
Shauren 9e4f9bb120 Core/Commands: Add missing constructor to RBACCommandData
Closes #28136
2022-07-19 10:18:03 +02:00
Shauren cb99b08b86 Core/Players: Fixed ExploredZones size and PLAYER_EXPLORED_ZONES_SIZE desync 2022-07-17 20:23:37 +02:00
Shauren e487d78ba7 Core/WorldStates: Move custom worldstates to separate table and move saving worldstate values to WorldStateMgr 2022-07-14 22:32:21 +02:00
Shauren 55436117ba Core/Commands: Fixed bnetaccount create not printing gameaccount name 2022-07-12 13:35:27 +02:00
Shauren a161b6cd32 Core/WorldStates: Migrate Tol Barad worldstates to new system 2022-06-27 23:20:24 +02:00
Shauren 94d829c84f Core/Pools: Implemented pooling for instances 2022-06-11 14:04:56 +02:00
Shauren a89fe30b41 Core/Commands: Fixed bonusListID and context arguments for .additem set command 2022-06-09 23:04:32 +02:00
Shauren 630b60eb0d Core/GameObjects: Transport (type 11) improvements
* Fully synchronize serverside animation progress with client
* Implemented updating passenger positions on elevators
* Removed visibility hack for elevators that always forced CreateObject packet to be sent to client
2022-05-25 22:14:32 +02:00
Shauren 25c0aaa83f Core/Players: Allow teleporting to a specific instance id 2022-05-14 20:40:24 +02:00
Shauren d800c87137 Core/Misc: Remove implicit conversions from RaceMask class, fixes racemask check failing during loading from db 2022-05-06 18:45:51 +02:00
Shauren 98e848436d Core/Misc: Apply various cosmetic changes that were made to 3.3.5 branch when porting master branch code there 2022-04-01 20:36:30 +02:00
Shauren 4eba978670 Core/Misc: Rename SetXXXFlags updatefield functions to ReplaceAllXXXFlags 2022-03-26 18:59:44 +01:00
kvolk2git 299db7af1a Update cs_misc.cpp (#27418)
(cherry picked from commit 8ac63c7952bf74066abbbe981b5168bc02ad3efb)
2022-03-24 14:01:15 +01:00
kvolk2git e799c4e003 add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <[email protected]>
(cherry picked from commit 822b32b64bbea2640f68edd9d110f8379c4a3c42)
2022-03-20 19:44:19 +01:00
ihm-tswow 59889d926d 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.

(cherry picked from commit c946370c5f03c53c4f9bb3d147abcc6b37f4f36d)
2022-03-20 19:39:59 +01:00
Giacomo Pozzoni 64a91288d6 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

(cherry picked from commit e3591b25a55d1d4dc642a5a35f851b19586a0110)
2022-03-19 23:04:42 +01:00
Giacomo Pozzoni a4b1cda2c0 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>"

(cherry picked from commit bebf1876ab506851a56e1619444e57d0f0b4b128)
2022-03-19 23:00:41 +01:00
Aokromes a7e90650fe Scripts/Misc: Remove 2 logs, they are handled by gm logs
(cherry picked from commit a462daa01c6b966821fadbd64b881020067cf6bd)
2022-03-19 22:54:49 +01:00
jackpoz 015b4e4578 Scripts/Commands: Fix ".wp show info" showing wrong event chance values
(cherry picked from commit b64ef1a39adfc37380aba59de506eb394e9c664d)
2022-03-13 19:31:14 +01:00
Shauren bbde3b54b9 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."

(cherry picked from commit 7c7b4760d89f29b7ee3c2f15f94cd9be24dc36cb)
2022-03-13 00:35:31 +01:00
Carbenium 9bee960880 Scripts/Commands: Convert argument parsing of instance commands to new system
(cherry picked from commit b90a4f1798bb948ce8203bd70d9367e6936b866a)
2022-03-13 00:15:35 +01:00
Carbenium b1847b1fd9 Scripts/Commands: Convert title commands to new system
(cherry picked from commit cd1ef2de0646349c4e0f23e8fb063c99a48c5cbf)
2022-03-12 23:06:24 +01:00
Carbenium b3b6e2715e 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);

(cherry picked from commit f620befc37fd8a4aed917e1ebba6f268c44a0a99)
2022-03-12 23:00:17 +01:00
Shauren becc9ba1fc Core/Misc: Fix mac build 2022-03-12 18:35:59 +01:00
Giacomo Pozzoni 51f0294c18 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

(cherry picked from commit 96dc110f4a353871ac74c82ff4b1bcc4c34156f3)
2022-03-11 19:32:22 +01:00
jackpoz c2b8c13a98 Scripts/Commands: Fix ".server debug" crashing in some special conditions
(cherry picked from commit 5094363a9432966b00b9fa79c0a353746cd24378)
2022-03-11 18:37:13 +01:00
Carbenium 7b2ff1c1fc Scripts/Commands: Convert misc command table to new system
(cherry picked from commit 6b9afac82f18f88a7a981f16e970f1b65647f25b)
2022-03-11 14:08:17 +01:00
Carbenium e3730b7847 Scripts/Commands: Convert honor command table to new system
(cherry picked from commit 5a5b232a44b4bd7cdec7e23999d5edbba1891761)
2022-03-11 13:53:58 +01:00
jackpoz d0fe16b787 Core/Misc: Fix issues reported by static analysis
(cherry picked from commit 33dace231c5a169375523ffa89a2cc3fa48737bd)
2022-03-11 11:48:18 +01:00
Gildor 7d01ad8b8f Scripts/Commands: Minor improvements in .pinfo and .unban character commands (#26586)
* Scripts/Commands: Minor improvements in .pinfo and .unban character commands

(cherry picked from commit 5446209b89146fdbe01627e806f7beddd6ae5de8)
2022-03-11 11:33:37 +01:00
jackpoz 9a17ac108c Scripts/Commands: Fix crashes with ".group revive" and ".group repair"
Close #26575

(cherry picked from commit 105c70802ded53b49621a92ee8fa136e57d0c717)
2022-03-10 23:54:25 +01:00
Giacomo Pozzoni 8d7e152d28 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

(cherry picked from commit 9aff21b3d520cdd580f065f2965442af1bebc81c)
2022-03-07 22:46:00 +01:00
jackpoz 1039f166de Scripts/Commands: Restore ".character level" command behavior
Restore ".character level" command behavior by setting the level instead of adding the level

(cherry picked from commit 2cea7d000c2205ed06ca3263e61dee51b11a5b0b)
2022-03-07 22:25:50 +01:00
CraftedRO 033366ab11 Group repair command attempt (#26304)
* Group repair command attempt

* Update cs_group.cpp

(cherry picked from commit db69b832b9d5da1f755824a36fed37b1b4e39dcd)
2022-03-07 22:06:51 +01:00
Jakub Cieplinski 77d320b9fc 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

(cherry picked from commit 397d4b5d05a82c217514eb5f89b4ec8d7f08c263)
2022-03-07 20:50:09 +01:00
Jakub Cieplinski 95ccf9fc15 Revive all command (#26127)
* First version of command handler

* Done HandleReviveAllCommand

* Moved command to group subcommonads

* removed empty row

* nullptr check for player target

(cherry picked from commit 97e41645d3dac259b53f2c82ed9eca3d71b1d7ee)
2022-03-06 23:25:54 +01:00
Matan Shukry e93ef06b05 Core/Commands: Implemented command to teleport character to npc
Closes #25870

(cherry picked from commit d2be584f99a63a165cfd1d047f460a8ebfb87ac3)
2022-03-06 16:37:42 +01:00
Giacomo Pozzoni a66b968f91 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"

(cherry picked from commit 661f554b9e08a3721227f1e4a4fe6fd74e43a1f4)
2022-03-06 01:35:01 +01:00
jackpoz 4e3d23188e Scripts/Commands: Improve ".debug objectcount"
Include the number of SetActive objects in ".debug objectcount" command

(cherry picked from commit d0231c5a8fdea9704be442cbd8840079caf47a6d)
2022-03-06 01:23:14 +01:00
Kargatum 373ed8f46b Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf

(cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
2022-03-05 20:07:57 +01:00
Treeston b5f3a6fd80 Core/Maps: All RespawnInfo* handed to outside code are now RespawnInfo const*, to signify that outside code has zero business changing these.
(cherry picked from commit 803dc789e42ea2298a8bd1822849b6f2df82efe6)
2022-03-05 17:12:23 +01:00
jackpoz 13bf0e71b9 Scripts/Commands: Include map min height in ".gps" command
(cherry picked from commit 9994459bd197d5555cfa16ab3d35d9c362a563fd)
2022-03-05 17:01:36 +01:00
Treeston 2319a99d87 [3.3.5] Scripts/Commands: .learn adjustments (PR #25454)
(cherry picked from commit cc8287927b9c9f0bf20143972fd4d3c338bff688)
2022-03-01 22:48:06 +01:00
Gildor 503ac5556d Script/Commands: .character changeaccount now disconnects player before transferring (PR #25560)
(cherry picked from commit b70314b0754327eeb44465c44af8368b4d020f92)
2022-02-28 21:34:39 +01:00
jackpoz e7fc68d74b 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

(cherry picked from commit 6f6cec89e598a046e73d48df14be26b053875470)
2022-02-28 12:18:19 +01:00
jackpoz f3787c6559 Core/Commands: Fix typo in .mmap loc command
The displayed "tileloc" value is a "swapped" Tile XY, not to be confused with Grid XY.

(cherry picked from commit 34af088c9b381db5b5212075f0df486a8593fae3)
2022-02-28 12:09:19 +01:00
Treeston 525dabc377 whitespace to make CI happy, 7bf9a06 follow-up
(cherry picked from commit 837e32fe118c2f1da2a2f43b8937df0fe9f66d84)
2022-02-27 23:53:33 +01:00
Treeston 150f108174 Scripts/Commands: Fix a potential crash in cs_account.cpp
(cherry picked from commit 7bf9a0640e57f4e44a80b6fd91e8f46fd7fb9c72)
2022-02-27 23:53:16 +01:00