Commit Graph
27919 Commits
Author SHA1 Message Date
offl 0ad6258d4b Core/SAI: Make SMART_EVENT_WAYPOINT_START & SMART_EVENT_CHARMED_TARGET deprecated
Deprecated events and actions will be removed after 2 weeks

(cherry picked from commit 9e78329c8b8294f3d4bc6e6ca4e6abfe6d53b917)
2022-03-20 00:47:12 +01:00
offl 2beb606cdf DB/SAI: Make SMART_EVENT_EVENT_PHASE_CHANGE deprecated; avoid AddAura, re-handle equipment in few scripts
Deprecated events and actions will be removed after 2 weeks

Ref 1d1e090fe928665d0612482f222466535f94852c 0e1835ee78bd8f79b8dcd5f3ed6d9f7be1eccadb

(cherry picked from commit 1053345692750d978ed44eef6cc7110064c423fc)
2022-03-20 00:45:30 +01:00
Shauren 7260fcb5c6 Core/Conditions: Fixed conditions not working for area auras
(cherry picked from commit 8693ee56955ce4d31e9e69f3971f52e250c1280c)
2022-03-20 00:29:35 +01:00
Jinnaix 01da436206 Core/Creature: Formation reset (#27040)
* Core/Creature: Formation reset

* Update CreatureGroups.cpp

whoops

* Core/Creature: Formation reset
Keep dismiss functionality

(cherry picked from commit 7051aab4219765e0c9faac0ce7bde0160451712a)
2022-03-20 00:19:42 +01:00
offl 29190e5642 Core/SAI: Remove deprecated events and actions (#27039)
(cherry picked from commit 887605d945fd2330865e84fd066a84e6f4570149)
2022-03-20 00:13:00 +01:00
Lucas Nascimento 4c632bb690 Core/Unit: Fixed Deterrence stopping working for no reason (#26996)
(cherry picked from commit 63c6f7bc26b73f59165179935d2556aea1636f12)
2022-03-20 00:05:21 +01:00
Malcrom 64933d033e Script/World: Brewfest Reveler Script (#27031)
(cherry picked from commit 83ae8fc5197f90ba97de2e961f7c98e3c567837b)
2022-03-19 23:47:01 +01:00
offl 47bcacd00a Core/Creature: Disallow nearly all non-static flags on DB side (#27024)
Closes #25764

(cherry picked from commit a88001938e1e77532c5db9596abc9efdef6d2257)
2022-03-19 23:30:15 +01:00
offl 2e3f240051 Scripts/Spells: Handle quest tame spells in spell script (#27022)
(cherry picked from commit 4441d42253d64ccd8fc9f78f1b44c851d6408312)
2022-03-19 23:14:52 +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
trickerer 6c9bde098b Core/Combat Improve extra attacks handling (#26859)
* Core/Combat Improve extra attacks handling

* Remove unnecessary _lastDamagedTargetGuid check

* Add missing initialization of _lastExtraAttackSpell. Do not use hardcoded spell ids.

* Partially revert 9f90b835019b

(cherry picked from commit 084f8f3ded45150a57eabd3ad117f1152d4d046d)
2022-03-19 22:37:41 +01:00
Maks Szokalski 179686d4c9 Flash worldserver on taskbar on thread start (#26886)
* Flush worldserver on taskbar on thread start

* update

* update

* fix codestyle

* Update worldserver.conf.dist

* Update src/server/worldserver/worldserver.conf.dist

Co-authored-by: NoName <[email protected]>

Co-authored-by: NoName <[email protected]>
(cherry picked from commit b1e7f2489c071fefb3cff3bbd295c45c81e7a69c)
2022-03-19 20:07:17 +01:00
Mikhail Redko 72a4fccaab Core/Misc: Improvement item durability repair logic. (#26911)
* Core/Misc: Improvement item durability repair logic.

* Move item repair cost calculation logic from Player::DurabilityRepair to Item::CalculateDurabilityRepairCost
* Make item repair cost calculation more congruent with client logic (std::round)
* Do not repair items if player does not have enough money to pay for the repair of all items at once
* Withdrawing money from guild bank only once to avoid spam in the guild bank log and reduce number of transactions in the database

Closes #25937

* Fix build

* Remove unnecessary scope

* Fix visual studio warning and one more check for reliability

(cherry picked from commit 3cef126d0a449219f154a6498d26831f86220dfa)
2022-03-19 16:55:55 +01:00
Keader 42de9d9cd8 Scripts/ICC: Implemented spell Dark Reckoning
Closes #26941

(cherry picked from commit bddf41e718e45b32225af590d35e60b4ffbe4f38)
2022-03-18 00:06:15 +01:00
offl e80777cb39 Core/SAI: Split set/remove unit_flags actions (#26954)
(cherry picked from commit 0a2fca1aed4f2926c73f906769ff92918f7e2dbd)
2022-03-18 00:04:03 +01:00
offl 5f40959687 Scripts/Spells: Mount check aura for Gryphon Hatchling & Wind Rider Cub (#26897)
Closes #26600

(cherry picked from commit 5f71c40b969c07f950e3dceb99037c7685512e71)
2022-03-17 23:59:01 +01:00
offl 4e42ea2aca Core/Misc: Link CREATURE_FLAG_EXTRA_INSTANCE_BIND to corresponding static flag
(cherry picked from commit f89bb434196c045b684218f5e7a10a6ffd5cd421)
2022-03-16 00:06:34 +01:00
offl f55e86d907 Core/SAI: Remove possibility to set/remove unit_flags2
So far I see that only Cannot Turn flag can be changed by scripts and action to change it didn't existed in 3xx. If someone will need to change that flag, it should be implemented by action which will change only that flag and not any flag of that type.

(cherry picked from commit c8061d8ba620e78c1344ad5f2d476d7d6e5057cb)
2022-03-15 23:59:35 +01:00
offl 340091f8ff Core/Misc: Leave detailed description for UNIT_FLAG_NON_ATTACKABLE
(cherry picked from commit 8a70efed8c56b0b24caa4f449279e75b2375e45f)
2022-03-15 23:55:41 +01:00
offl 122b2e4665 Core/Misc: Update comments of static flags
(cherry picked from commit b4bb2bc0c52f682564e97d8e23d23784ce37c0ba)
2022-03-15 23:55:32 +01:00
offl 8bd9a211fe Core/Misc: Update enums of static flags
(cherry picked from commit f381e1824423d9ef0307b63651a90f29b4bab5f9)
2022-03-15 23:55:19 +01:00
offl 9161c93d09 Core/Misc: Rename few type flags
(cherry picked from commit 4b028e599e06b4f7501298dc3410be89616c9720)
2022-03-15 23:55:08 +01:00
offl 5de542610f Core/Misc: Name unknown CreatureEliteType
(cherry picked from commit 8047532605957e2d387251677e616f4407fb9f6e)
2022-03-15 23:53:31 +01:00
offl 7cba68ca17 Core/Misc: Rename UNIT_FLAG_PVP to UNIT_FLAG_PVP_ENABLING
Ref #26912

(cherry picked from commit 4e291caff80b1e6b7f67fcd7d2c38bccc05fd8e6)
2022-03-15 23:47:46 +01:00
offl ad0ebedd9b Core/Misc: Rename UNIT_FLAG_SWIMMING to UNIT_FLAG_CAN_SWIM
Ref #26912

(cherry picked from commit e4a82ee97ad99f751216af47c88f29ff118d771b)
2022-03-15 23:47:31 +01:00
offl 661a24b7b1 Core/Misc: Rename UNIT_FLAG_TAXI_FLIGHT to UNIT_FLAG_ON_TAXI
Ref #26912

(cherry picked from commit a50ce8755b43b7c3bf98e1e0d8c36411a292f284)
2022-03-15 23:32:27 +01:00
offl 756ef6799a Core/Creature: Add first 4 enums of static flags (#26914)
(cherry picked from commit 1a9b914ac0085089712ffddac3e27ff9cff2d995)
2022-03-15 23:11:44 +01:00
offl c4906ce60b Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE (#26913)
(cherry picked from commit c4741a131a0a28b69c228d3637beab7090e5f1e3)
2022-03-15 23:03:26 +01:00
offl 6a5f3835f3 Scripts/Misc: Remove useless comments & Varos' Centrifuge Shield adjustments
(cherry picked from commit b2fffe674d545f1c5ed5ada3041f23872dccfb30)
2022-03-15 22:24:44 +01:00
offl 2d4f087f85 Scripts/Creature: Update Dancing Flames (#26883)
(cherry picked from commit 70c3e58327855eb0e05a235f31bf72e135846877)
2022-03-15 00:11:06 +01:00
offl 0506f21f5e DB/Creature: Remove remaining non-static flags from DB, finally (#26884)
(cherry picked from commit 0e12e23f7784b4a80d3515cb094342cb677e35b2)
2022-03-14 23:56:38 +01:00
HelloKitty c50c877bdb Core/QuestHandler: Fix potential crash caused by QUEST_FLAGS_PARTY_ACCEPT with conditions (#26880)
(cherry picked from commit 5a60082e5d3a5290f142168c3142c54b000cb2b0)
2022-03-14 23:55:09 +01:00
Gildor 81e9f0ef79 Core/Disables: Fixed params_1 (SPELL_DISABLE_AREA) data loading for DISABLE_TYPE_SPELL (#26878)
(cherry picked from commit 188b074f3ca0b303b263dc3bb2cfc093c0731a64)
2022-03-14 23:53:42 +01:00
offl 94840f791c DB/GameObject: Update Toy Train Set
(cherry picked from commit fd9d04062c129049a134768ec15d09402c3fa95a)
2022-03-14 23:51:23 +01:00
Giacomo Pozzoni 318e0e2406 Handle deprecated SAI actions and events (#26846)
* Core/SAI: Show a clear error for no longer supported SAI actions

* Core/SAI: Show a warning for deprecated SAI events, still loading them.

Disable log "sql.sql.deprecation" in config if you want to ignore the warning

(cherry picked from commit 3af4d17188dc0b7cb84ccd50bb9bb9d6cb193e00)
2022-03-14 00:09:26 +01:00
trickerer c783ba38d2 Core/Combat Fix first autoattack being skipped after charging (#26860)
Fixes #25014
Fixes #24626

(cherry picked from commit 8729bec8449d06ce2bcd25c2a176923221bca2dd)
2022-03-13 23:43:50 +01:00
Giacomo Pozzoni a19c71a770 Core/SAI: Change error to warning for unused parameters (#26848)
Change error to warning for unused parameters and load the scripts instead of skipping them

(cherry picked from commit cb764a932d640698ed7cd92dd1e02d08243a8ad3)
2022-03-13 23:43:28 +01:00
Gildor 9b7c55921f Core/Unit: improve SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL immunities (#26849)
(cherry picked from commit 0fad28e4ab4d7143d629a8f28883a46823680fde)
2022-03-13 23:36:57 +01:00
ccrs a00c4f80bb Scripts/VioletHold: f661bc6 follow-up - remove remnants of SetVisible calls from npc_sinclari_vh
(cherry picked from commit 505e91a016e68ef323388e6e18e1a519d9cb184a)
2022-03-13 22:41:14 +01:00
ccrs 4387c8ab13 Scripts/VioletHold: corrections to violet_hold_trashAI to prevent trash npcs being stuck in place forever if SPELL_DESTROY_DOOR_SEAL is no longer being casted for w/e reason
(cherry picked from commit 4c0ff0917194516f8f734fd2b627e5cf5a8a5db8)
2022-03-13 22:40:13 +01:00
Shauren ff80b5ad67 Core/Vehicles: Remove unused field
(cherry picked from commit 203f175ec9f2479ac6600ca8bc9bd91625a03512)
2022-03-13 22:39:40 +01:00
Giacomo Pozzoni b7addbafe8 Core/DB: Improve MySQL version check messages (#26866)
* Core/DB: Improve MySQL version check messages

* Make it more clear that any version above the required one is supported

* Implement feedback

(cherry picked from commit d9a0db79a8f74254afa31bbc26ab506fa00203c1)
2022-03-13 22:37:07 +01:00
offl 0b50fd183f DB/Quest: Rework 'Bitter Departure' (12832)
(cherry picked from commit afafff57a85232d42517439496a5281598a08126)
2022-03-13 22:13:20 +01:00
offl 4164d55158 DB/Creature: Get rid of more flags
Ref #25764

(cherry picked from commit 2f02c2fb86ccf1fb9ff094f60b0eb0b48de5eece)
2022-03-13 21:16:26 +01:00
offl 0ce5a2e7a5 DB/Creature: Get rid of more Feign Death flags
Ref #25764

(cherry picked from commit 354a45b09d02a6fb12fbfc2f13a4b29883cdcc2a)
2022-03-13 19:31:14 +01:00
Ovah a5889ba3eb Core/Quests: check PreviousQuestID values as well when trying to make quest groups available to players (#26769)
* Core/Quests: check PreviousQuestID values as well when trying to make a quest available to support quest group requirements for another quest group

* checking for previous quests via NextQuestID only works for single followup quests. However, if we want to make multiple quests available after rewarding all quests of an exclusive group we have to consider PreviousQuestID values as well as every single quest of the next quest group has to check the rewarded exclusive group

* only check for previous quests that must be rewarded instead of being active

(cherry picked from commit a0aa9730e25197f8be2611f3b7800bdb979cad35)
2022-03-13 19:31:14 +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
ModoX 09b36d8f75 Tools/Extractors: Use TACTKeys from wowdev TACTKeys repo instead of wow.tools
* wow.tools will kill /api.php?type=tactkeys soon
2022-03-13 19:24:14 +01:00