Commit Graph
28009 Commits
Author SHA1 Message Date
ccrs e1115e30c2 Scripts/Ahnkahet: small corrections to boss_prince_taldaram script
(cherry picked from commit f8f50bef50d34245e86f016bf99132812b57e38f)
2022-03-13 00:23:10 +01:00
ccrs a0736c4544 Scripts/Ahnkahet: corrections to boss_jedoga_shadowseeker script
(cherry picked from commit f087850508a74b9dcdacb8ec5e8d59216faddfa3)
2022-03-13 00:22:28 +01:00
Keader 6bc9674167 Scripts/Misc: Moved Submerge script to spell_generic
(cherry picked from commit 9153ad621e7578f472460b9a98e21a6ed94f85c0)
2022-03-13 00:17:25 +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
Keader 105e2e3358 Scripts/Ulduar: Moved UNIT_FLAG_NOT_SELECTABLE to inside XT002 Script
Spell is used for some world quests too

(cherry picked from commit 8014054ef9d2f611127416cdc1f7e77e8877bb05)
2022-03-12 23:51:32 +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
Jinnaix e7682d8e08 Core/Script: fix Silithus Wind Stone exploit (#26808)
* Core/Script: fix Silithus Wind Stone exploit

* corrections

Closes #23577

(cherry picked from commit 6bcda49e98f08e663eb7a2e6e8a5aa6c2143a2a8)
2022-03-12 23:00:30 +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
Carbenium 3c37dddeec Core/ChatCommands: AccountIdentifier from current target
(cherry picked from commit 8ee92147a5435600992d7269b98edd5d36cd8924)
2022-03-12 22:47:34 +01:00
Shauren becc9ba1fc Core/Misc: Fix mac build 2022-03-12 18:35:59 +01:00
Jinnaix fe31d436ef Server/Config - Change default settings for saving gm logs. (#26804)
* Server/Config - Change default settings for saving gm logs.

* update

Prefix Timestamp to the text

(cherry picked from commit 7050a5ccb617dae2b329c8f7d8d08e6c502a9370)
2022-03-12 16:20:10 +01:00
offl 7d9088e9cf Core/SAI: Remove SMART_ACTION_INSTALL_AI_TEMPLATE (#26797)
(cherry picked from commit ff8663ca1599a2103a88e719d94d91218a66dbaa)
2022-03-12 16:19:47 +01:00
offl 4a867dbf2d DB/Quest: Rework 'Relief for the Fallen' (12937)
(cherry picked from commit 1c174987c8114d7f2daf02140afa81a1cb01bd54)
2022-03-12 15:39:51 +01:00
ccrs de72593821 Scripts/Ahnkahet: corrections to boss_elder_nadox script
(cherry picked from commit 2870a99d1af3d440381b21266aaaa2d3916a5263)
2022-03-12 15:37:10 +01:00
offl 2642cf3666 DB/Quest: Rework 'The Tome of Divinity' (1783,1786)
(cherry picked from commit 2d2b73c90588d7b7899989636db42f8da1d4b8e9)
2022-03-12 15:09:46 +01:00
ccrs a13def29e8 Build: fix no-pch build
(cherry picked from commit 71b5466cd723d74e7813ce4ae7cb772632723cdf)
2022-03-12 14:49:07 +01:00
ccrs 51d842a8bd Scripts/Ahnkahet: corrections to npc_amanitar_mushrooms script
(cherry picked from commit 9c7f2544c872d820fbf649c2d5d509f04f38a899)
2022-03-12 14:48:45 +01:00
ccrs 5b6bcbff1a Core/Game: include addtional parameter in Object::GetPlayerListInGrid
(cherry picked from commit d49b6af71fae60f4bcb5fed4d745a020657f0b3a)
2022-03-12 14:48:32 +01:00
offl ac82e23fa3 Scripts/Spells: Fix support for 'Teleport This!' (10857) (#26789)
Co-authored-by: offl <[email protected]>
(cherry picked from commit 8186e6deca7a42403db8b45b341c655cec9c8a73)
2022-03-12 14:48:03 +01:00
Gildor 20c8698bc4 Scripts/World: improve Training Dummy script (#26778)
(cherry picked from commit c7ae9d761a3c9a7523d4bd195979f294f8c9e7cd)
2022-03-12 14:45:19 +01:00
Giacomo Pozzoni 71c2f0af46 Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken (#26787)
* Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken

* Update scripts

(cherry picked from commit 0800ab20a8039620fd271a43c173c008af68c22a)
2022-03-12 14:45:04 +01:00
robinsch 5f38fd2f2d Core/Item: Fixed another possible container exploit due to invalid loading of stored loot items in DB (#26795)
(cherry picked from commit 1b9ee9525316861dd1d2099ed355a221ffc47e3b)
2022-03-12 14:36:31 +01:00
offl ca472c1871 Scripts/SWP: Update M'uru to new register model (#26793)
(cherry picked from commit ec3b571ecaa21cac3aaf35075b21767424bca4bf)
2022-03-12 14:36:20 +01:00
offl 4830612953 Scripts/BM: Update scripts to new register model (#26792)
(cherry picked from commit 365a95bc944426f2300d2ba703a74dc792d118e1)
2022-03-12 14:31:43 +01:00
offl cb645fd2f8 Scripts/BFD: Update scripts to new register model (#26791)
(cherry picked from commit 97140cd1952081d5a397ce4f093dd63906ef3644)
2022-03-12 14:30:24 +01:00
offl 2185692f62 Scripts/Spells: Update quest spell scripts to new register model (#26790)
(cherry picked from commit bc26ddaf8c4d6f66ecfd9f22794ba23c03f7b76b)
2022-03-12 14:17:19 +01:00
ModoX 53dcc8f053 Core/PacketIO: Fixed TransfertAbort size for SMSG_TRANSFER_ABORTED 2022-03-12 05:25:32 +01:00
offl 842eb3bdd7 Core/SAI: Remove SMART_ACTION_SET_DYNAMIC_FLAG (#26783)
(cherry picked from commit b3449158b1978963abf93f5041134226d1e7e0e6)
2022-03-12 01:20:06 +01:00
Meji 74645553be Core/Objects: Units possessing another ones must use the detection of the latter (#26702)
* Core/Objects: Units with invisibility auras can see units that cannot detect them

* Core/Objects: A unit that possess another one, uses the detection of the latter

* GCC: Avoid ambiguous 'else'

Closes #23528

(cherry picked from commit ad4bc7cc1f3d3f541219e9077238743c73130108)
2022-03-12 01:17:00 +01:00
Gildor b6615a45eb Core/Combat: Allow refresh pvp combat when assisting a unit that is in pvp combat (#26773)
(cherry picked from commit 372c84392b064d3308ad49f5aca5e3223de59b66)
2022-03-12 01:16:36 +01:00
jackpoz aaa7596e01 Core/Misc: Fix build on systems where size_t is not defined as uintXX_t, i.e. Mac
(cherry picked from commit 8fcf59f9db929e94b1a6d2c75c1905f0a51dcddd)
2022-03-12 00:25:49 +01:00
jackpoz 84d327617a Core/SOAP: Fix memory leak on shutdown reported by ASan
(cherry picked from commit de4ccc7f2785f61ea1f6eb514d948b73a8ddfb98)
2022-03-11 21:20:26 +01:00
jackpoz 4f14cef5f3 Core/SOAP: Fix new/free mismatch reported by ASan
(cherry picked from commit 2a12e96d1739a12c5ecfe375eabf5343557cb592)
2022-03-11 21:20:17 +01:00
offl 53d19b09f4 Core/Creature: rename CREATURE_FLAG_EXTRA_IGNORE_COMBAT into CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT (#26762)
Co-authored-by: offl <[email protected]>
(cherry picked from commit 06b554c36e8f196667e0a72820b37b9dc25bdde0)
2022-03-11 21:20:04 +01:00
Giacomo Pozzoni 5afa32e9a7 Core/Network: Add option to allow/disallow saving IP addresses to database (#26723)
Add config option AllowLoggingIPAddressesInDatabase to authserver and worldserver to specify if IP addresses can be logged or not to the database

(cherry picked from commit 68bf7e6d12e1689d688db32c05066b8832922c67)
2022-03-11 20:50:36 +01:00
Gildor 62df5e860f Core/Quests: Improve ItemRemovedQuestCheck logic (#26758)
Closes #25603

(cherry picked from commit 621f3f50c2fa2ce098ff13ad12a0bbc772300e2f)
2022-03-11 20:50:33 +01:00
jackpoz b420ef8ea9 Core/Misc: Fix static analysis issues
(cherry picked from commit f127f959179a69ec335c5031417e7b366e685373)
2022-03-11 19:33:13 +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
Ovah 21177487ea Core/Spawns: prevent spawn groups from bypassing spawnMask restrictions (#26711)
* spawn groups have been able to spawn for all difficulties even when they should be restricted to a single difficulty only

(cherry picked from commit 48f63eda9029d4fe16b7a350059c8e26ba8484ce)
2022-03-11 19:28:56 +01:00
jackpoz 98e4bc2d3d Core/Unit: Add more logs for #26325
Add more logs to try spotting the cause of #26325 . It might be that a minion is added to a owner that is not in world.
Report any issue with minions/pets that contain the log.

(cherry picked from commit 3f08c16749984252e657d46cfaa1ef50cd3f5a15)
2022-03-11 19:09:40 +01:00
Jinnaix 6cc8bebdd6 Game/Event: zone_hellfire_peninsula.cpp (#26724)
* Game/Event: zone_hellfire_peninsula.cpp
Convert script timer into game event

* _events.Reset(); - just in case

* Rename 9999_99_99_99_world.sql to 2021_07_21_03_world.sql

Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit 39e1d293bf5c26c26d26fe9509189a67ce0c4f37)
2022-03-11 19:08:22 +01:00
jackpoz fc3e26fdfe Core/SAI: Temporarily allow SMART_ACTION_WP_START to specify parameter value 3 for reactState
(cherry picked from commit 60379cf2c15d9cee1414fbaec2b217b89b8dc67e)
2022-03-11 19:03:36 +01:00
robinsch 0910bca34c [Exploit/Dupe] Container item (#26689)
* Core/Item: Fixed possible dupe with container items containing non unique non stackable items

* Fixed build

* Update sql script and related base structure

Co-authored-by: jackpoz <[email protected]>
(cherry picked from commit d1e913162e0a96918c70ba4ec3f62f4186ee4707)
2022-03-11 19:03:12 +01:00
Meji 8ee432b1f0 Core/Spells: PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW applies only with invisibility type INVISIBILITY_GENERAL (0) (#26701)
* Core/Spells: PLAYER_FIELD_BYTE2_INVISIBILITY_GLOW applies only with invisibility type INVISIBILITY_GENERAL (0)

* Use enum

(cherry picked from commit 47a4d58a982d5c22fbcdd07cac9dae5fd1bc52e4)
2022-03-11 18:45:58 +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
Giacomo Pozzoni 6fd7cd9dc9 Core/Pet: Don't allow to tame pets that have already a owner (#26674)
(cherry picked from commit 8c42b3bd88fe7bd3e959664312e818e25996873a)
2022-03-11 18:37:02 +01:00
Giacomo Pozzoni c9e685bd9a Core/SAI: Warn when an unused parameter is set in the database (#26628)
* Core/SAI: Warn when an unused parameter is set in the database

* Warn when an unused parameter is set in the database as all unused parameters are supposed to be set to 0.

* Remove unused struct from union.

* Add a new struct simpleTalk for SMART_ACTION_SIMPLE_TALK instead of reusing only some fields of struct talk from SMART_ACTION_TALK

* Add addAura and flag structs to be used instead of generic ones to match the parameters used by actions

* Add randRangeTimedActionList struct to be used instead of generic ones to match the parameters used by actions.

* Remove unused action structs.

(cherry picked from commit aa7279df095d086f7223a1fa13d11a0e58f1cf10)
2022-03-11 18:35:58 +01:00
offl 1b0435b6ea Scripts/Molten Core: Update remaining scripts to new register model (2/2) (#26710)
(cherry picked from commit 863635dbf982394716d13608659ad81aa28812d3)
2022-03-11 18:20:35 +01:00
offl 31cbd3b467 Scripts/Molten Core: Update remaining scripts to new register model (1/2) (#26709)
(cherry picked from commit 09da8dae0e52ff9c7370d3bdc9e38a05d2c05ee0)
2022-03-11 18:18:59 +01:00
offl bdae746106 Scripts/ToC: Update Twin Val'kyr to new register model (#26708)
(cherry picked from commit 514519d33e9148335f537f1009b2605d5623434e)
2022-03-11 18:17:17 +01:00