Commit Graph
381 Commits
Author SHA1 Message Date
Karrz1 4e7a436213 Account data: store up to 1 MiB per type, warn when data is dropped
The handler dropped any upload that decompressed to more than 64 KiB
without a reply or a warning, and both account data tables used a
64 KiB blob. Raise the limit to 1 MiB, widen the columns to mediumblob,
log a warning with account, player, type and size whenever data is
dropped, and store only the bytes zlib actually produced.
2026-10-27 15:04:16 +00:00
AdvocaiteandKarrz1 37ae6e11e1 Instances: optional attunement skip, combat res limit option, resurrect effect 329 (#44)
- Instance.IgnoreAttunement (default 0): skip the access_requirement item and
  quest checks in Player::Satisfy when entering an instance
- Instance.CombatResurrectionLimit (default 0): combat resurrection charges
  during a boss encounter are only enforced when enabled (cast check and
  resurrect response); classic has no such limit
- SPELL_EFFECT_RESURRECT_NEW (329): wire the existing EffectResurrectNew
  handler (value = health, MiscValue = mana) with an explicit corpse-ally
  target, and honour the prevent-resurrection aura for it

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 18:52:09 +08:00
AdvocaiteandKarrz1 e27c863bfc Handlers: whisper/invite by name-realm, release spirit, under-map kill, spline crash (#39)
- Whisper and party invite: trim the trailing blank the unit menu sends with a name ("Name "), invite by target guid when the client sends one, and fall back to the name part of "Name-Realm"
- Release Spirit: ignore a second repop request while the first one's teleport is still under way (fell through the world after a dungeon release)
- Under-map kill: below the map's minimum height only kills when no floor holds the player up (WMO-only instances like Molten Core killed players standing on a valid floor)
- MonsterMove: leave out spline points that the client would rebuild onto the previous node; a zero-length segment crashed the client (divide by zero, seen at Thorium Point)

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 18:04:07 +08:00
Advocaite b2a6c9ac86 Classic 1.60: Zephras Isle from sniffs, hunter ranged slot and ammo, quest levels, client 70170
- Sniff imports of the new zone (map 2991): creatures, spawns (corpses, summons and hurt mobs filtered), quests with chains
  from the player's turn-ins, POIs, levels, auras, vendors, trainers, gossip, quest texts, loot, page texts, hotfix records
- Creature AI from sniffed casts (Roiling Winds Wind Spike and corpse model, Al'Aketh Shock, ...), Al'Aketh factions
- Creature queries: read the batched entries of a query (names were Unknown)
- Hunters: ranged weapons in the ranged slot, ranged spell item check, ammo (CMSG_SET_AMMO, AmmoID), Blizzard's game rules
  (rule 177 enables the ammo slot), item zone flags, starting action bars
- Vanilla base stats, Classic quest levels in the quest log, quest min/max levels from quest_classic_level
- Fixes: reclaim corpse opcode, Skysight crash (ModCastingSpeedNeg 1.0), gameobject/corpse spell targets need a hit status,
  trap playerCast, Remote Access sessions closed at shutdown
- Skyborne racials, Zephras graveyards, Halaan's Gift gossip, Elemental Convergence trap, campfire Boosted Rest
- Group Finder roles/search, /who, auth for client builds 70124 and 70170
2026-10-02 12:28:59 +08:00
Advocaite b7a41b6f32 Classic 1.60: ruleset realms, hardcore, surnames, vanilla graveyards
Ruleset realms (contentSetId, one worldserver per ruleset), ruleset switch fix, hardcore permanent death, surnames, Undead Paladin and new class combos, vanilla graveyards.
2026-09-30 04:20:13 +08:00
Advocaite cd640c7067 Classic 1.60.1.70009 (WoW Classic beta) client support
- Bnet/login flow for the Classic client (super districts, last char played, sub-region 70-1-70)
- Classic opcode translation (server + client tables), blocked/changed messages
- Classic packet layouts: char enum/create/name check, feature status, trainer list,
  creature/quest query responses, action buttons, loot
- Update fields: Classic create layouts and changes-mask remaps for Unit/Player/ActivePlayer data
- Skyborne races (95/96), fixed vanilla creature levels, height lookup for recorded spawns
- Custom SQL: auth realm, hotfix layouts, Skyborne, Northshire (VMaNGOS), trainers, vendors, Zephras Isle
2026-09-28 05:23:04 +08:00
Shauren 88c2866ebd Core/Groups: Unlink group difficulty settings from player difficulty settings
* Changing instance difficulty while in a group will no longer override it for other group members after they leave the group
2026-07-06 19:37:48 +02:00
Gildor df47d4e5fc Core/Maps: Do not allow entering an instance if the player is not alive and does not have the corpse inside or in inner instance (#30229)
(cherry picked from commit 15598723810f76a56b1ea5f3198b482dc0c19d65)
2026-06-01 22:40:59 +02:00
Shauren 4c14988578 Core: Updated to 12.0.5 2026-04-22 20:20:11 +02:00
agatho 08c8314609 Core/PacketIO: Implement CMSG_SET_CURRENCY_FLAGS (#31673) 2026-02-13 12:36:07 +01:00
Shauren 9271ad7517 Core/Misc: Change AreaTriggerTeleport to be just an alias for WorldSafeLocsEntry 2026-01-06 23:31:25 +01:00
Shauren d5b07faca1 Core/Misc: Rename AreaTriggerStruct to AreaTriggerTeleport 2025-09-24 16:09:13 +02:00
Shauren ceb8d561b4 Core: Updated to 11.1.7 2025-06-18 11:37:07 +02:00
Jason Dove 8e6c7bdc5d Core/AreaTriggers: Add AREATRIGGER_ACTION_TAVERN (#31035) 2025-06-15 15:54:43 +02:00
Shauren c6050a319c Core/PacketIO: Rename ByteBuffer::contents to ByteBuffer::data 2025-05-15 19:18:41 +02:00
Shauren 76352cb391 Core/PacketIO: Use new packet writing utilities in a bunch of files 2025-03-01 00:43:08 +01:00
Meji 75bc3021da Core/Gossip: Fix interaction with gossip launched by accepting quest (#30419) 2024-12-29 00:43:01 +01:00
ModoX 309ba22a15 Core/AI: Implemented conversation ai (#30538) 2024-12-28 23:25:10 +01:00
Ovahlord e14648eaba Core/Player: moved zone/area updating and tavern resting checks into Heartbeat and movement updates
(cherry picked from commit cb4c9009b3706a2823ada05eec9803a773f9b34e)

# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
2024-10-23 20:12:33 +02:00
Shauren a4ecb2dfae Core/PacketIO: Fixed handling CMSG_UPDATE_ACCOUNT_DATA - compressed value is not a null-terminated string 2024-08-05 14:13:17 +02:00
Meji 1426f58ff0 Core/AreaTriggers: Added ActionSet flags for serverside areatriggers (#30072) 2024-07-19 14:44:26 +02:00
Shauren 1c3268155d Core/AreaTriggers: Implement height check for polygon db2 areatriggers 2024-05-27 18:53:47 +02:00
Meji b070e63fa8 Core/AreaTriggers: Fix triggering of client areatriggers for some shapes 2024-05-27 18:53:47 +02:00
Jeremy be11f42a16 Core/Battlegrounds: Move to scripts (#29799)
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground
2024-03-28 19:29:22 +01:00
Meji 4913d027bf Core/Conditions: Added CONDITION_SOURCE_TYPE_PLAYER_CONDITION (#29832) 2024-03-27 21:38:08 +01:00
Shauren 97d7ccd180 Core/Quests: Merged UpdateNearbyCreatureNpcFlags, UpdateVisibleGameobjectsOrSpellClicks and SendQuestGiverStatusMultiple on quest actions
* Fixes quest markers above NPC heads not disappearing when player stops seeing questgiver npc flag
2024-03-03 00:50:38 +01:00
Jeremy 6ed8b5c907 Core/PacketIO: Handle QueryCountdownTimer (#29539)
* Add it to battleground
* Base implementation countdowns in Group
* Fix timer sync between groups in battlegrounds
2024-01-25 14:15:58 +01:00
Shauren 0b5406dd88 Core/Conditions: Refactor ConditionMgr internals to get rid of separate containers for some condition source types 2024-01-11 20:56:24 +01:00
Shauren d2baaac9ec Core/Chat: Corrected chat channel flag implementations 2023-10-07 18:29:53 +02:00
ModoX 4e7508db7b Core/AreaTriggers: Teleport to current instance entrance when entering instances via areatrigger entity (#29115) 2023-07-21 18:55:20 +02:00
Shauren 0cea730fa2 Core: Update to 10.1.5 2023-07-12 16:29:00 +02:00
Shauren f62b1d0190 Core/Misc: Exclude most of WorldSession::HandleAreaTriggerOpcode from being called when leaving the areatrigger 2023-06-20 00:18:32 +02:00
Shauren d4fc589f4c Core/Misc: Don't logout players instantly when client automatically requests a logout by idling too long 2023-06-15 23:35:22 +02:00
Shauren 4d4c7e6893 Core/Quests: Quest flag fixups
* Update flag names
* Implemented QUEST_FLAGS_COMPLETION_NO_DEATH and QUEST_FLAGS_FAIL_ON_LOGOUT
* Started using QUEST_FLAGS_COMPLETION_EVENT and QUEST_FLAGS_COMPLETION_AREA_TRIGGER instead of a custom SpeclalFlag
* Renamed Quest::IsAutoComplete to Quest::IsTurnIn to better describe what it means (a quest that can be turned in without accepting it to quest log)
* Implemented QUEST_FLAGS_UPDATE_PHASESHIFT and removed forced phaseshift updates on every quest status change
* Implemented QUEST_FLAGS_LAUNCH_GOSSIP_ACCEPT - reopens gossip menu with questgiver
2023-06-10 20:31:33 +02:00
Jeremy c1df555e16 Core/Graveyards: Drop Faction column and replace it with conditions (#28965) 2023-06-01 02:33:46 +02: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 c3e1ff90a5 Core/Maps: Changed functions checking if map can be entered to use TransferAbortReason directly instead of intermediate Map::EnterState enum 2022-10-08 19:11:34 +02:00
Shauren ddd0c7b152 Core/Instances: Reimplement resetting instances from UI 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 f67cd38312 Core/Player: Extend action button value to uint64 to be able to hold battle pet guids 2022-09-18 23:52:17 +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 b47185cabf Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag 2022-03-27 18:14:47 +02:00
Shauren 9f30afe352 Core/PacketIO: Updated packet structures to 9.2.0 2022-02-24 23:16:55 +01:00
Shauren 32c6c76476 Core/Guilds: Forward declare GuildAchievementMgr 2022-02-11 22:14:18 +01:00
Giacomo Pozzoni 864d775280 Core/Misc: Fix static analysis issues (#25194)
(cherry picked from commit 07fd84b679fd6958b7e669a96c78783875e1b949)
2022-01-26 14:06:40 +01:00
Giacomo Pozzoni fda8a09766 Core/Misc: Replace boost::shared_mutex with std::shared_mutex (#24328)
* Core/Misc: Replace boost::shared_mutex with std::shared_mutex

* Remove std forward declarations

(cherry picked from commit 7032ee0bdb47c995dfd89bce3d5b6fad13ec6d73)
2022-01-23 21:51:47 +01:00
Treeston d11c3807b3 Core/Time: Rename GetGameTime{System, Steady}Point methods
The names are a bit unhandy. Rename them (shorter but still meaningful).

GetGameTimeSystemPoint() -> GetSystemTime()
GetGameTimeSteadyPoint() -> Now()

Also add 2 new typedefs:

typedef std::chrono::steady_clock::time_point TimePoint;
typedef std::chrono::system_clock::time_point SystemTimePoint;

Closes #25042

(cherry picked from commit 896b68d5c297b06587645caebc98b704978ecaa7)
2022-01-23 21:36:03 +01:00
Shauren 96137fb30f Core/Misc: Future msvc warning fixes 2022-01-21 13:40:48 +01:00
NoName a4b3e694e8 Entities/Player: Restore old checks for UpdatePvPFlag (#24372)
Partly revert 671052575a36624b06379ee5e13a7fea26870194
+ implemented timer reset to 300s after relog never worked, therefore removing that part;
+ reverting other parts with 300s timer changes, as not needed;

(cherry picked from commit 2efaf1dda8ce19533b1d99e030ac25a0de5735b4)
2022-01-06 19:05:04 +01:00