Commit Graph

1454 Commits

Author SHA1 Message Date
Shauren
8cfc8e4141 Core/Spells: Always remove spell target from transport on teleport spells if spell destination does not target a position on the transport 2023-06-08 18:37:08 +02:00
Jeremy
c1df555e16 Core/Graveyards: Drop Faction column and replace it with conditions (#28965) 2023-06-01 02:33:46 +02:00
Meji
06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
Shauren
781ca507dd Core/Commands: Added .debug playercondition command 2023-05-26 23:51:20 +02:00
Shauren
3260b94dd6 Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo 2023-05-13 15:46:27 +02:00
Meji
81ea6f54d9 Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale (#28863) 2023-03-30 18:54:27 +02:00
Shauren
7395d75b5a Core/Misc: Fixed clang 15 warnings 2023-01-31 18:51:31 +01:00
Meji
03918978c1 Core/Players: Several currency fixes and improvements (#28676) 2023-01-29 17:42:23 +01:00
Shauren
3df16c12b7 Core/Scripts: Move EvadeReason outside of CreatureAI class 2023-01-19 21:23:06 +01:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
a53e4a5756 Core/Misc: Replace enable_if overload selection with if constexpr 2023-01-07 22:38:21 +01:00
Shauren
704142f15a Core/Maps: Fixed retrieving terrain info when on child maps 2022-12-31 18:22:40 +01:00
Seyden
61c51b76c0 Core/Creatures: Implement StringId for Creatures, a custom identifier to make finding specific creatures in script easier (#28500)
Allows targeting specific spawns without hardcoding guids or find a bunch of different creatures with a single search

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-27 16:39:05 +01:00
Shauren
133334a902 Core/Loot: Implemented personal loot and tag sharing for non-boss loot 2022-10-17 23:11:46 +02:00
Shauren
641390dca2 Core/Loot: Initial support for personal loot in gameobjects (non-instanced content) 2022-10-16 15:33:39 +02:00
Shauren
ab12e77cf7 Core/Commands: Restore instance management commands 2022-10-04 00:19:38 +02:00
Shauren
76be303351 Core/Scripts: Save instance data in JSON format 2022-10-04 00:19:38 +02:00
Shauren
9b924522d0 Core/Instances: Delete InstanceSaveMgr and replace most of its uses with new InstanceLockMgr 2022-10-04 00:19:38 +02:00
Shauren
17665c929c Core/Instances: Instance lock rewrite (WIP) 2022-10-04 00:19:38 +02:00
Shauren
224d764ded Core/Commands: Allow gameobject/gameobject_template chat links as input to .go gameobject commands 2022-09-30 15:19:42 +02:00
Shauren
301572212f Core/Misc: Changed string formatting functions to accept std::string_view as format argument instead being templated on it to slightly improve compile times and reduce executable size 2022-09-19 00:33:19 +02:00
Shauren
c00e2e4851 Core/Loot: Simplify loot containers
* Unify items and quest_items
* Drop PlayerQuestItems and PlayerNonQuestNonFFAConditionalItems
2022-09-17 20:58:24 +02:00
Shauren
3ef5079fee Core/Loot: Move loot rolls from Group to Loot
* Partial port of cmangos/mangos-wotlk@ffdf9a05d6
2022-09-16 16:58:03 +02:00
Shauren
6d2b851154 Core/Commands: Convert quest commands to new system 2022-09-02 19:27:27 +02:00
ModoX
10302dca55 Core/Commands: Added .quest objective complete command to complete single quest objectives 2022-09-02 19:27:27 +02:00
Shauren
b08a58dec6 Core/Misc: Reduce differences between branches (refactors from 44ac5cbbea) 2022-09-02 15:12:28 +02:00
Shauren
7957e2d380 Core/Loot: Allocate Loot separately from objects 2022-09-01 20:07:58 +02:00
Shauren
fbe0b8efeb Core/Maps: Removed MapInstanced - no longer neccessary for grid data reference counting (moved to TerrainInfo) 2022-07-24 18:56:40 +02:00
Shauren
16a06346ae Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-07-23 19:13:33 +02:00
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 8ac63c7952)
2022-03-24 14:01:15 +01:00
kvolk2git
e799c4e003 add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
(cherry picked from commit 822b32b64b)
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 c946370c5f)
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 e3591b25a5)
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 bebf1876ab)
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 a462daa01c)
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 b64ef1a39a)
2022-03-13 19:31:14 +01:00