Commit Graph
352 Commits
Author SHA1 Message Date
Ovahlord 949f92e0a1 Core/AI: ported charm updates from 335 2021-09-16 16:48:07 +02:00
Ovahlord e1d74d4dc6 Core/Misc: added more fallthrough attributes and added some missing breaks reported by CI 2020-07-19 12:24:58 +02:00
Shauren 47acc59f49 Core/DBLayer: Prevent committing transactions started on a different database 2020-04-15 21:02:26 +02:00
Shauren d003ebd8e4 Core/DBLayer: Prevent using prepared statements on wrong database 2020-04-15 19:18:58 +02:00
jackpoz 183789053e Core/Misc: Fix GCC 8 warnings 2020-01-31 21:19:25 +01:00
Ghaster 97a727749a Core/PacketIO: convert all authentication related packets to packet class (#26) 2020-01-25 15:44:56 +01:00
Ovahlord fcb79fee07 Core/Datastores: updated DBC structure names to generated member format 2020-01-25 12:36:32 +01:00
jackpoz 131986d1c2 Core/Misc: Replace time(nullptr) with GameTime::GetGameTime() 2020-01-11 03:30:41 +01:00
Aokromes d6d3f06f06 New year 2020-01-04 18:32:38 +01:00
funjoker 6c56916b29 Misc: Update copyright information
Happy new year
2020-01-01 18:47:28 +01:00
Ovahlord 15f09fb82b Core/Misc: fixed warnings and building connection patcher with boost versions below 1.61 2019-11-06 00:51:04 +01:00
Giacomo Pozzoni e73c7dc2e4 Core/LFG: Fix re-queueing while in a dungeon (#23862)
Fix an issue that wouldn't allow to re-queue after joining a dungeon, having 1 member leave/get kicked, queue, leave, queue.
In this case a message "One or more dungeons was not valid" would be displayed because LFG would try to queue the group as "continue dungeon" but the current group was not marked as "in dungeon" state anymore.
2019-10-07 00:45:56 +02:00
Ovahlord 4737bcb866 Core/LFG: validate player roles on lfg join to avoid cheating players to join with roles that they should not be able to join 2019-08-30 13:35:17 +02:00
Ovahlord c074c3a9c6 Revert "Core/Misc: Replace time(NULL) with GameTime::GetGameTime()"
This reverts commit 5fe3a1f7f9.
2019-07-08 15:56:29 +02:00
Ovahlord 5fe3a1f7f9 Core/Misc: Replace time(NULL) with GameTime::GetGameTime()
(ported commit: 12701cb0c6c45eb105ad449eb9a56e76d84d691e)
2019-07-08 12:19:19 +02:00
Ovahlord 330e2f3fd0 Core/LFG: updated remaining lfg packets to packet class 2019-06-04 19:52:14 +02:00
Ovahlord 4f516996cb Core/LFG: damage dealers will now only be able to get bonus rewards when there are more healer and tanks in the queue 2019-06-03 20:36:44 +02:00
Ovahlord 4b77eb334b Core/LFG: re-implement the shortage bonus reward system
* optimized out the logic to work with any random dungeon
* the shortage bonus rewards can now be set via quest id in lfg_dungeon_rewards
* moved the config part into the lfg option mask
2019-06-03 19:45:44 +02:00
Ovahlord 4591dbaef5 Core/LFG: fixed values sent in SMSG_LFG_UPDATE_STATUS when entering a dungeon 2019-06-01 03:51:28 +02:00
Ovahlord 4b5ad5168d Core/Packets: updated more lfg packets to new packet class handling 2019-05-31 17:35:51 +02:00
jackpoz 950eff5fda Core/LFG: Remove dungeon cooldown when completing random dungeons 2019-05-05 00:26:13 +02:00
Ovahlord e77321a45c Core/LFG: Teleport players to other players instead of dungeon entrance when continuing a LFG dungeon (ported commit: d2841d6b664ac2c8e818bea1a469fdd3f1b31f6b) 2019-03-04 09:05:47 +01:00
Ovahlord ca904171ca Core/LFG: merged commit 7fb52334b2fea4bdd3a83c6af4dbcc39cacb41a9 2019-01-11 22:40:46 +01:00
Ovahlord 5e9cd624e5 Core/LFG: allow lfg groups to requeue even with lfg cooldown when someone has left the party 2019-01-11 20:42:52 +01:00
Ovahlord de449650c9 Core/LFG: implement the join part of enlisting for other raids (Raid Browser)
*todo: find known opcodes and structs
2018-12-31 21:02:35 +01:00
Ovahlord 5e380763aa Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
# Conflicts:
#	src/server/game/DungeonFinding/LFGMgr.h
#	src/server/game/Maps/Map.h
#	src/server/scripts/EasternKingdoms/zone_arathi_highlands.cpp
2018-08-28 04:41:18 +02:00
Ovahlord 59daed856b Core/LFG: reduce if conditions for cooldown checks 2018-08-27 20:43:14 +02:00
Ovahlord a5b6727305 Core/LFG: reworked Call to Arms role storing. We now save the reward enligible state for players inside playerdata rather than a player variable.
* fixed random dungeon cooldown
2018-08-27 19:26:23 +02:00
Ovahlord 55deb00ce0 Core/LFG: implement new DBC storage for generating multiple random categories with identical dungeon id's
* fixed another visual issue for call to arms rewards
2018-08-27 02:53:03 +02:00
Ovahlord 6c5947fe8b Core/LFG:
* Call to Arms will now be active for all roles by default
* Corrected role counting for enabling Call to Arms roles
* Call to Arms will now only count queued players for heroic max level dungeons
* Call to Arms will now allow only single players to be enligible for bonus rewards
* Corrected packet data for sending Call to Arms roles to fix strange visuals when one of the allowed roles has been removed.
2018-08-26 22:52:56 +02:00
Treeston 4d0031bbd3 Core/LFG: Order group members before creating LFG group (leader > tank > healer > dps). Closes #16244. 2018-08-22 21:32:52 +02:00
Ovahlord 65bb5690a8 Core/LFG: added new field to lfg_dungeon_rewards to specify if the first reward shall reset weekly or daily 2018-04-18 20:44:39 +02:00
Ovahlord d9b12217c4 Core/LFG: implement weekly reward counter to limit the first dungeon rewards
* all default random rewards can be rewarded 7 times per week
* raid finder first reward can be rewarded once per week
* if completionsPerWeek = 0 the currency caps will limit the first rewards otherwise first rewards can be always rewarded
* random Cataclysm normal dungeons will now reward 140 Justice points instead of 150
* second reward for random Cataclysm normal dungeons will now reward gold only (need to verify this)
2018-04-18 15:16:06 +02:00
Ovahlord 595c20298b Core/LFG: display and reward the correct amount of gold when rewarding random rewards
* added some better documentation about the lfg window info fields
* allow lfg quests to become weekly quests in order to support weekly lfg rewards such as the raid finder
2018-04-17 19:56:58 +02:00
Ovahlord 37e4b3492c Fixed build after recent header cleanup 2018-03-28 14:58:59 +02:00
Ovahlord 2cfdd3cbe0 Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
# Conflicts:
#	src/server/game/AI/CoreAI/PetAI.cpp
#	src/server/game/Battlegrounds/Battleground.cpp
#	src/server/game/Battlegrounds/Zones/BattlegroundTP.cpp
#	src/server/game/DungeonFinding/LFGMgr.h
#	src/server/game/DungeonFinding/LFGQueue.h
#	src/server/game/Entities/Creature/Creature.h
#	src/server/game/Entities/Pet/Pet.cpp
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Entities/Player/Player.h
#	src/server/game/Entities/Unit/Unit.h
#	src/server/game/Globals/ObjectMgr.h
#	src/server/game/Groups/Group.cpp
#	src/server/game/Groups/Group.h
#	src/server/game/Guilds/Guild.cpp
#	src/server/game/Guilds/Guild.h
#	src/server/game/Handlers/GuildHandler.cpp
#	src/server/game/Handlers/LFGHandler.cpp
#	src/server/game/Handlers/MiscHandler.cpp
#	src/server/game/Handlers/NPCHandler.cpp
#	src/server/game/Instances/InstanceScript.cpp
#	src/server/game/Maps/Map.cpp
#	src/server/game/Maps/Map.h
#	src/server/game/Maps/ZoneScript.cpp
#	src/server/game/Server/WorldSession.cpp
#	src/server/game/Spells/SpellEffects.cpp
#	src/server/game/Weather/Weather.cpp
#	src/server/game/Weather/WeatherMgr.cpp
#	src/server/scripts/Commands/cs_reload.cpp
#	src/server/scripts/EasternKingdoms/Deadmines/boss_mr_smite.cpp
#	src/server/scripts/EasternKingdoms/Deadmines/deadmines.h
#	src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
#	src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp
#	src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h
#	src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp
#	src/server/scripts/Kalimdor/VortexPinnacle/vortex_pinnacle.h
#	src/server/scripts/Spells/spell_dk.cpp
#	src/server/scripts/Spells/spell_druid.cpp
#	src/server/scripts/Spells/spell_generic.cpp
#	src/server/scripts/Spells/spell_hunter.cpp
#	src/server/scripts/Spells/spell_mage.cpp
#	src/server/scripts/Spells/spell_pet.cpp
#	src/server/scripts/Spells/spell_shaman.cpp
#	src/server/scripts/Spells/spell_warrior.cpp
2018-03-28 12:35:52 +02:00
ariel- 5ff847159c Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources 2018-03-28 04:41:59 -03:00
Ovalord d7d0048b7e Core/LFG: do not display currentcy reward info in chat window for random dungeon rewards 2018-03-15 20:31:34 +01:00
Ovalord 9968e6e309 Core/LFG: simplified call to arms packet handling and fixed visuals
*fixed some spelling mistakes
2018-01-26 02:07:17 +01:00
Ovahlord 98fdf72c7b Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into ShatteredWorld
# Conflicts:
#	src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
#	src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp
#	src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h
2018-01-02 01:23:06 +01:00
Aokromes 4bd0525edd Update copyright note for 2018 2018-01-01 01:06:19 +01:00
Ovalord 7525fb165e Core/LFG:
* added missing dungeon ID to high priestess Azil's encounter credit
* fixed the last encounter lfg reward. Cataclysm dungeons use a single entry for both difficulties so the instance needs to find the proper dungeon for the difficulty. Fixed.
* increased amount of required votes to kick a player from a party
* use the remaining teleport error messages for their according purpose
* use a bgdata location as teleport location when teleporting out of a dungeon
* fixed lfg state after group has been formed
* the amount of required roles is now determined by dbc values (thanks to Onkelz28)
* added some safety checks for reward data packets if no quest is found
* fixed lfr queue and reward display
* add the possibility to make lfg reward quests repeatable. This is getting used for dungeon quests with valor point rewards. Setting the alternative quest once the limit has been reached is handled corewise now.
* implement valor points display in the lfg window. Note: to see it for the first time you need at least 1 valor point
* implement Call to Arms system. Thanks to Tisk for the base code
* added loot for the Call to Arms Satches of Exotic mysteries
2017-12-04 18:43:51 +01:00
xinef1 b88200cd58 Core/Misc: Various crash fixes 2017-05-05 01:59:34 +01:00
Aokromes 8a63c4919e Core/Packets: updated some contactlist packets
(cherry picked from commit e01bb91)
2017-02-01 02:11:56 +01:00
Aokromes 719a317a67 Update copyright note for 2017 2017-01-02 07:26:38 +01:00
Aokromes a7a02ef579 typo fix 2016-11-27 17:53:52 +01:00
Aokromes d3fbbe8254 Core/DungeonFinder: disable map only from looking for dungeon 2016-11-27 17:12:05 +01:00
Naios e23d063f5a Core/Game: Rewrote the ScriptMgr to support script reloading.
* Finally this commit enables dynamic script hotswapping
  and finished the PR #15671.
* Split the storage layout to use optimized storages
  for database bound and unbound scripts.
* Add several unload workers to reload scripts correctly
  -> Requires further investigation.
* Fixes memory leaks in ScriptMgr when dropping invalid scripts.
* Fixes VehicleScripts
* Makes OutdoorPvP scripts reloadable
* Makes InstanceMapScripts reloadable
* Makes CommandScripts reloadable
2016-08-10 08:40:44 +02:00
Aokromes 09b34b64e5 Core/DungeonFinder: Add new log to allow to debug some issues
By Spp- on #14331
Enable lfg.allqueued DEBUG log. It will give more detailed info.
2016-07-20 18:08:03 +02:00
ariel- c5eb45f6ea Core/LFGMgr: fix race condition in _SaveToDB 2016-07-17 14:10:57 +02:00