Commit Graph

6084 Commits

Author SHA1 Message Date
Gildor
f2a83e8238 Core/Commands: Improve wp event command (#30226)
* Fixed crash by handling null arg_id in .wp event add
* Fixed incorrect data type conversion in .wp event listid
2024-09-12 22:05:13 +02:00
Shauren
9800393424 Core/Units: Some cleanup in movement packet related functions - try to keep only one function handling a packet, not have it scattered all over the place
(cherry picked from commit 075e5d6751)
2024-09-10 18:25:12 +02:00
Shauren
1f25a0ff92 Core/Entities: Make ObjectGuid formattable with fmt without using ToString() 2024-07-14 13:45:05 +02:00
Shauren
b08d85349c Core/Creatures: Fixed memory leaks in creature formations
(cherry picked from commit 2e3920081f)
2024-07-08 12:45:19 +02:00
CraftedRO
c5a9ab65af Core/Players: Add level restrictions for faction changes (#30057)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-06-27 18:54:31 +02:00
Gildor
e4caf52e5a Core/Spells: Allow using SpellDifficulty.dbc on battleground maps (#30055) 2024-06-27 14:08:09 +02:00
Takenbacon
70d6121ef4 Core/Misc: Move zone packet sending from World to Map (#30024) 2024-06-08 11:13:24 +02:00
CraftedRO
b2a77f6d01 Scripts/Spells: Prevent sacrificing immune minions with Death Pact (#29920)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-06-03 19:16:19 +02:00
Mykhailo Redko
faf87b327d Scripts/Halls of Lightning: Fix a crash caused by iterator invalidating in Ionar boss script (#29963) 2024-05-11 16:25:23 +02:00
Meji
83c403c870 Core/ChildrensWeek: Add target for text locales with variables (#29956) 2024-05-05 12:25:07 +02:00
Shauren
7952661e23 Core/Misc: Support boost 1.85
(cherry picked from commit cfa838df5d)
2024-04-22 11:57:54 +02:00
Shauren
0dcff2624e Core/Objects: Added ToWorldObject and ToItem
(cherry picked from commit 6f6af6a1a1)
2024-03-14 21:04:24 +01:00
Shauren
a79b42bf68 Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently)
(cherry picked from commit 4779fa5048)
2024-03-14 00:14:16 +01:00
Shauren
45d7a44555 Build: Reuse PCH file between all script modules
(cherry picked from commit eac4bf825a)
2024-02-26 12:29:16 +01:00
CraftedRO
72c421f50b Scripts/Blackrock Depths: Replace player spells used by High Interrogator Gerstahn with correct ones for that creature (#29637) 2024-02-25 13:25:00 +01:00
bibi
75e38a5d8f Scripts/Stratholme: Portcullis Trap (#29596)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-02-24 21:55:13 +01:00
Shauren
454998f553 Scripts/Zul'Gurub: Corrected brazier of madness boss despawn time 2024-02-24 12:46:38 +01:00
bibi
3085b897c1 Scripts/Zul'Gurub: Fixed Edge of Madness (#29593) 2024-02-23 23:08:21 +01:00
Mykhailo Redko
6c181a00d5 Scripts/Pets: Implemented Elwynn Lamb minipet feature. (#29635) 2024-02-23 21:33:55 +01:00
bibi
a666bdfc31 Scripts/Sunken Temple: fix Shade of Eranikus and Jammal'an the Prophet (#29663)
* Also minor modernization for instance script

Co-authored-by: 14shagov <14shagov>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-02-23 20:05:03 +01:00
Shauren
1fcb55d8f4 Core/Instances: Name unknown EncounterFrameType ENCOUNTER_FRAME_PHASE_SHIFT_CHANGED 2024-02-14 15:42:17 +01:00
Mykhailo Redko
ca1560f043 Core/Players: Improvements for talent reset logic. (#29580)
* Clean up Player::ResetTalents() from unnecessary logic, such as withdrawing money. Move it to more suitable places.
* Implemented SMSG_TALENTS_INVOLUNTARILY_RESET and use it instead of old trinity_string.
* Do not reset the accumulated talent reset cost if CONFIG_NO_RESET_TALENT_COST is enabled.
2024-02-13 15:55:37 +01:00
Gildor
1b87820935 Core/Spells: Implement visual aura duration of Rogue talents Overkill and Master of Subtlety (#29693) 2024-02-13 14:54:24 +01:00
Mykhailo Redko
75016bf4da Scripts/Commands: .account set seclevel command will update security level for online session (#29600) 2024-01-22 13:58:31 +01:00
Fraxinus94
7d9933150f Scripts/TempleOfAhnQiraj (#29571)
Fix The Eye of C'thun spell Dark Glare not being updated visually with the correct orientation
2024-01-08 19:31:41 +01:00
r4dish
c2831bafde Scripts/Commands: Implemented .bg start and .bg stop commands. 2024-01-06 23:43:59 +01:00
r4dish
1dc9b83a25 Core/Misc: Do not apply Deserter debuff to players teleported from the battleground by gm command (.appear/.summon). 2024-01-06 23:43:59 +01:00
Demolitionist Legoso
0c1e5fea69 Scripts/Bloodmyst Isle: Add missing Legoso Talk target (fixes $n) (#29554)
Updates #21586
2024-01-04 20:55:19 +01:00
M'Dic
f746c7f7ff Core/Groups: Reduce differences between branches (define naming) (#29332) 2023-09-19 21:26:27 +02:00
Gildor
61eba44d4a Scripts/Trial of the Crusader: Update Read and Write Save Data (#29293) 2023-08-29 21:59:34 +02:00
Shauren
8e7b6c54e4 Core/Logging: Fixed missing log format changes
(cherry picked from commit 150ba27eb1)
2023-08-27 12:51:53 +02:00
Shauren
ca03ecf3e6 Build: Support ASAN on msvc
(cherry picked from commit 0a0b420d86)
2023-08-23 14:23:56 +02:00
Shauren
deec17d8ec Core/Logging: Fixed a few missed log format statements 2023-08-17 11:15:15 +02:00
Shauren
a4299c2a4b Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo
(cherry picked from commit 3260b94dd6)
2023-08-15 21:59:52 +02:00
Shauren
aaa6e73c8c Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
(cherry picked from commit d791afae1d)
2023-08-15 20:10:04 +02:00
Shauren
27cd5a90f4 Core/Misc: Replace enable_if overload selection with if constexpr
(cherry picked from commit a53e4a5756)
2023-08-12 17:56:16 +02:00
Shauren
ad3fc81db9 Core/Misc: Add missing Containers.h include where neccessary 2023-08-12 17:56:16 +02:00
Shauren
b7287e85e4 Core/Misc: Fixed deprecation warnings for c++20
(cherry picked from commit ba9bbbc9d0)
2023-08-12 14:24:24 +02:00
Shauren
f9033a5dbd Scripts/Forge of Souls: Fixed achievement_bronjahm_soul_power script registration 2023-07-19 13:45:17 +02:00
Shauren
aa96aa4783 Core/Misc: Cleanup Expression is converted to bool and can be replaced with 'boolean constant' 2023-05-07 18:52:34 +02:00
Shauren
7e0b28c70c Scripts/Undercity: Fixed NPC_HIGHBORNE_BUNNY being told to MoveJump to { target->GetPositionX(), 0, 0 } with speedXY = target->GetPositionY() and speedZ = target->GetPositionZ() 2023-05-07 18:35:53 +02:00
Gildor
431a59eae1 Scripts/Trial Of The Crusader: Fix application of spell Surge of Adrenaline (Icehowl) (#28933)
* Scripts/Trial Of The Crusader: Fix application of spell Surge of Adrenaline (Icehowl)
2023-04-25 08:35:38 +02:00
Adam B
63790adbfe Add code that changes the faction of Tortheldrin in Dire Maul (#28581)
* Add code that changes the faction of Tortheldrin

Per WoW Classic, Tortheldrin becomes hostile after Immolthar is killed. This code implements an event that does this.

* Bug fix.

Fixed a bug where the server would crash if the bosses were already dead and the player zoned in.

* Recommited with the correct path.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed wrong file.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Made changes requested by jackpoz.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Corrected a syntax error after testing.
- Tested in game and confirmed all is working.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed whitespace changes.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Changed the script to use OnUnitDeath rather than an event.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed the IMMO_DEAD_CHECK event.

Signed-off-by: Adam Bajac <adam@asblab.work>

* Removed redundant comma.

Signed-off-by: Adam Bajac <adam@asblab.work>

---------

Signed-off-by: Adam Bajac <adam@asblab.work>
Co-authored-by: Adam B <adam@avalonglobal.com>
2023-04-11 23:11:48 +02:00
lee
60b75e3b6e Scripts/Misc:fix npc_professions locale text (#27894)
* fix npc_professions locale text

fix npc_professions locale text load from db

* fix dup sql

fix dup sql

* add condition and gossip option

add condition and gossip option for money cost depends on player level

* add missing update statements

* Rename 9999_99_99_world.sql to 2023_03_24_00_world.sql

---------

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2023-03-24 10:52:44 +01:00
M'Dic
48f9a807f3 Update (core\log): Log correction (#28802)
Loading AreaTrigger definitions to Loading Area Trigger Teleports definitions
and also Re-Loading AreaTrigger teleport definitions to Re-Loading Area Trigger Teleport definitions
2023-03-10 10:26:25 +01:00
Shauren
70e985c7f7 Scripts/Events: Fixed infinite loop with auras 71507 and 71508 casting each other when unit is removed from map 2023-02-09 10:26:42 +01:00
Shauren
9d8fc90371 Scripts/Icecrown Citadel: Added missing empty check before SelectRandomContainerElement 2023-01-06 01:46:57 +01:00
Mikhail Redko
dc221604d9 Core/Scripts: Implemented Zort's Protective Elixir (#28372)
* Core/Scripts: Implemented Zort's Protective Elixir

* Rename XXXX_XX_XX_XX_world.sql to 2022_12_23_00_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2022-12-23 15:08:58 +01:00
Badgersson
d91c4526e1 Core/Spells: resurrection after raise ally (#28582)
(fix #26296)player->IsResurrectRequested() now is called with spell_dk_raise_ally_Aura removing
2022-12-23 14:26:28 +01:00
Ovah
f2fcd6746c Scripts/Halls of Lightning: reworked General Bjarngrim Encounter (#28457)
* handle missing visuals
* reworked all AI scripts
* handle missing mechanic of Arc Weld
* reworked the whole waypoint and tempoary electrical charge handling
* moved Stormforged Lieutenants to their own spawn group to handle their spawning/despawning via boss
* moved the Tempoary Electrical Charge mechanic from spell_linked_spell to spell script instead
* replaced hacky virtual items for Bjarngrim's stances with sniffed ones
2022-11-04 13:08:34 +01:00