Commit Graph

6073 Commits

Author SHA1 Message Date
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
Malcrom
8c64457edc Scripts/Quest: Refactor Last Rites (#28328) 2022-10-14 19:54:35 +02:00
Malcrom
f7ebdd3631 Scripts/Quest: Improved script for Abduction (#28306) 2022-10-14 14:33:35 +02:00
Malcrom
f98e2bcab4 Scripts/Quests: Help Those That Cannot Help Themselves (#28304) 2022-10-14 14:09:48 +02:00
Shauren
900a2f6d88 Scripts/Gossips: Set gossip menu id for scripts that load menu items from database 2022-10-12 00:41:49 +02:00
Malcrom
0174e6ba80 Scripts/Eversong Woords: Add cosmetic script for a party (#28308) 2022-10-04 10:24:54 +02:00
Malcrom
5ffe5bd43a DB/Scripts: Move Quest "Aces High!" gossip menu to database (#28300) 2022-10-02 13:45:23 +02:00
Malcrom
c0758ae6f3 Scripts/BoreanTundra: Modernized Unfit for Death (11865) implementation (#28297) 2022-10-02 04:47:02 +02:00
Shauren
753a901928 Scripts/Hyjal: Change boss state management from SetData to SetBossState 2022-09-29 00:39:44 +02:00
Shauren
08d2b6743a Scripts/Karazhan: Mark optional boss as completed when it dies 2022-09-28 00:40:06 +02:00
Shauren
6260a95763 DB/Ahn'Qiraj Temple: Added spawn groups for bosses 2022-09-28 00:15:00 +02:00
Shauren
349ba4e74a DB/Ruins of Ahn'Qiraj: Added spawn groups for bosses 2022-09-27 23:40:04 +02:00