Commit Graph

931 Commits

Author SHA1 Message Date
Ovahlord 30759beac7 Scripts/LCT: implement Lockmaw encounter 2023-11-07 16:17:55 +01:00
Ovahlord b606af8c4a Scripts/LCT: use the correct difficulty check to enable General Husam's heroic mechanics for Timewalking difficulty as well 2023-11-07 16:17:55 +01:00
Ovahlord a6c9e44c55 Scripts/LCT: gave General Husam's enums unique names to reduce linking time 2023-11-07 16:17:55 +01:00
Ovahlord 394940e0c5 Scripts/LCT: fixed spell validation for General Husam's Bad Intentions script effect 2023-11-06 16:53:45 +01:00
Ovahlord 24dab9326d Scripts/LCT: implement General Husam encounter (#29414) 2023-11-06 11:51:37 +01:00
ModoX 0e2f041728 Core/InstanceScript: Refactored door types to reflect its behavior (#29406) 2023-11-06 00:11:42 +01:00
Shauren 9894f6b802 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
Shauren fb4f7b0c4c Scripts/Dire Maul: Added dungeon encounter ids 2023-09-18 22:09:31 +02:00
Shauren 1f2ae69226 Scripts/Stratholme: Added dungeon encounter ids 2023-09-18 19:25:30 +02:00
Shauren 7a4cbddb2c Scripts/Zul'farrak: Added dungeon encounter ids 2023-09-17 23:37:15 +02:00
Shauren 03d6dd8539 Scripts/Uldaman: Added dungeon encounter ids 2023-09-17 22:01:07 +02:00
Shauren 83c0b901e5 Scripts/Razorfen Kraul: Added dungeon encounter ids 2023-09-17 20:23:33 +02:00
Shauren 1ef9b29486 Scripts/Wailing Caverns: Added dungeon encounter ids 2023-09-17 18:52:02 +02:00
Shauren 1dd4b38170 Core/Creatures: std::chrono-ify TempSummon 2023-08-09 11:37:17 +02:00
Shauren 8594fcfe8a Scripts/Spells: Converted some damage calculating scripts to use new hooks as examples 2023-08-02 00:12:16 +02:00
Shauren 2e7e49b749 Scripts/Spells: Removed unneccessary PrepareSpellScript and PrepareAuraScript uses 2023-07-24 10:48:50 +02:00
Teleqraph 88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-07-20 19:09:27 +02:00
Meji 889e88ab80 Core/Spells: Fixed target radius logic in spell effects for TargetB (#29158) 2023-07-20 10:10:18 +02:00
Ovahlord 252da139ad Scripts/Halls of Origination: fixed a deprecation warning 2023-07-11 20:11:44 +02:00
Shauren c484530b0c Core/Spells: Added enum flag operators to TriggerCastFlags to prevent accidentally using CastSpellExtraArgs(bool) constructor when CastSpellExtraArgs(TriggerCastFlags) was intended 2023-06-09 00:33:35 +02:00
Shauren 622eed752b Scripts/Spells: Converted remaining spell scripts to use ValidateSpellEffect 2023-06-03 23:17:28 +02:00
Shauren f8a6a9b017 Scripts/Spells: Added spell effect validation helper 2023-05-30 19:34:19 +02:00
ModoX 89e09dc44e Core/AI: Drop script_waypoints and move data to waypoint_data (#28879) 2023-04-10 04:04:33 +02:00
ModoX 356c98579b Core/SAI: Drop waypoints table and move existing rows to waypoint_data table (#28834) 2023-04-08 01:33:05 +02:00
ModoX 36044a9470 Core/Creature: Added possibility to give creatures multiple gossip menu ids and control them via conditions (#28159) 2023-04-05 23:49:46 +02:00
Shauren 0956873613 Core/Creatures: Allow overriding default gossip menu id 2023-03-12 00:13:49 +01:00
Shauren 39b76cfbc2 Core/Movement: Allow specifying timeout for follow movement 2023-03-04 14:57:17 +01:00
Shauren 7395d75b5a Core/Misc: Fixed clang 15 warnings 2023-01-31 18:51:31 +01:00
Shauren 3df16c12b7 Core/Scripts: Move EvadeReason outside of CreatureAI class 2023-01-19 21:23:06 +01:00
Ovahlord 4bd780b464 Scripts/HoO: fixed a crash in Temple Guardian Anhuur's script due to now supporting gameobject casters
(cherry picked from commit 3203f04ac1064d0812e3bcad12d0c25dc2e31593)
2023-01-09 12:06:04 +01:00
Shauren d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren d8a4668c77 Core/Misc: Add missing Containers.h include where neccessary 2023-01-06 16:44:11 +01:00
Shauren ba9bbbc9d0 Core/Misc: Fixed deprecation warnings for c++20 2023-01-01 00:26:53 +01:00
Malcrom 51afe537b0 Scripts/Durotar: Fix ship arrived gossip for Mith'aka (#28386) 2022-10-22 23:38:34 +02:00
Shauren 133334a902 Core/Loot: Implemented personal loot and tag sharing for non-boss loot 2022-10-17 23:11:46 +02:00
Shauren e65fae7bcd Scripts/Gossips: Set gossip menu id for scripts that load menu items from database
(cherry picked from commit 900a2f6d88)
2022-10-13 12:41:34 +02:00
Shauren 46e0056196 Scripts/Instances: Add dungeon encounter data 2022-10-04 00:19:38 +02:00
Shauren 76be303351 Core/Scripts: Save instance data in JSON format 2022-10-04 00:19:38 +02:00
Shauren 17665c929c Core/Instances: Instance lock rewrite (WIP) 2022-10-04 00:19:38 +02:00
Shauren e5bf2608d7 Scripts/Hyjal: Change boss state management from SetData to SetBossState
(cherry picked from commit 753a901928)
2022-09-30 20:55:18 +02:00
Shauren 52d6bdbe0a DB/Ahn'Qiraj Temple: Added spawn groups for bosses
(cherry picked from commit 6260a95763)
2022-09-30 20:53:11 +02:00
Shauren 0f15d74ffc Scripts/The Escape From Durnholde: Minor improvements
* Converted to BossAI
* Prevent repeating boss kills on Thrall event wipe

(cherry picked from commit 2d027e56ad)
2022-09-30 20:47:31 +02:00
lee 063d9b156d Scripts/Battle for Mount Hyjal:Fix wrong npc text,trash movment,archimode last phase (#27910)
* Fix wrong npc text,trash movment,archimode last phase

1.Fix wrong npc text for Jania,Thrall,Tyrande.
2.Change Hyjal trash movement from walk to run.
3.Fix archimode drain worldtree event.
4.Fix archimode below 10% hp phase.Case Protection of elune on player.

* fix code style

fix code style

* fix wrong type

* Revert "fix wrong type"

This reverts commit 204c45f7d76cb8f7e3a444db1d7bebb341ad931c.

* fix wrong type

* Update boss_archimonde.cpp

* add missing Creature Text

* fix code style

* Update hyjalAI.cpp

* do some work to prevent respawn mobs in combat

* remove dup yell at alliance base

* fix code style

* fix SPELL_METEOR unvisiable when spawn Giant Infernal

* change to DoCastSelf

* hide archimonde doomfire spirit visual

* fix code style

* fix SQL warning when startup server

* fix code style

* move SetRun out of constructor

* remove target list

* move setRun

* fix code style

* Change npctext ID to high ID.Fill text into Creature Text

Change npctext ID to high ID.
Fill text into Creature Text.

* Remove Magic Numbers

* change npctext high ID

* fix change high npc_text id in code

* remove setCanFly,add flight state to db

* change npc_text id

* change npc yell condition after second boss dead

* update npc_text IDs taken from sniff file.

Updated IDs taken from sniff file provided by Aokromes.

* remove MoveInLineOfSight

* move protection_of_elune immuity effect to spell script

* move worldtree channel target to db

Move worldtree channel target to db
Fix wrong position and movement_type of worldtree channel target

* update wrong npc_text IDs in code

* remove CastProtectionOfElune

* remove SetVisible(false),change flags_txtra of doomfire(18095) and doomfire_spirit(18104)

* update sql

* fix compile error

* revent spawntime,move guards say slay and say death to db

* Move code from Initialize() to Reset()

Move code from Initialize() to Reset()

Move code from Initialize() to Reset()

Update boss_archimonde.cpp

* remove unneeeary ->AI()

* Update hyjal_trash.cpp

* Update src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp

* Update src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjalAI.cpp

* Rename 9999_99_99_world.sql to 2022_09_11_00_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit fea9de5b17)
2022-09-29 21:59:52 +02:00
Meji 69e0249807 Core/Gossip: Drop OptionType for gossip_menu_option and rename OptionIcon to OptionNpc as it also determines functionality on client side (#28220)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-09-08 14:49:03 +02:00
Shauren cfca26c264 Core/WorldStates: Migrate instance script worldstates to new system 2022-06-30 00:16:41 +02:00
offl 7d9d55ee87 Scripts/Quest: Migrate few quest spell scripts to zone files (#28015)
(cherry picked from commit b52e0ccbad)
2022-06-10 19:32:05 +02:00
lee 6d805a653b Scripts/Misc: Load gossip options from DB (#27892)
(cherry picked from commit 5a20861565)
2022-06-10 16:13:23 +02:00
Shauren 36dde87249 Core/Movement: Delay creating MoveSplineInit objects used by GenericMovementGenerator to spline launch time
* This fixes inconsistent transport state detection for players exiting vehicles that are on transport (ICC gunship battle), fixes players being telerpoted to middle of nowhere on that fight

(cherry picked from commit b1a94bf94c)
2022-06-10 15:16:39 +02:00
Shauren 1c62b0b90f Scripts/Instances: Replace manual criteria timer starts in instances with new GameEvents api 2022-04-24 13:58:18 +02:00
Shauren e1abd8256b Core/Achievements: Implemented criteria flag "Reset on Start" and removed manual script workarounds for it 2022-04-24 12:36:28 +02:00