Commit Graph

793 Commits

Author SHA1 Message Date
offl
57d369dd6a Scripts/Instances: Update Slave Pens scripts to new register model (#26568) 2021-06-07 00:25:46 +03:00
offl
e7e4786606 Scripts/Spells: Add comments with id & name of spells part 4 2021-05-31 20:35:03 +03:00
offl
03c727326d Scripts/Spells: Add comments with id & name of spells part 3 2021-05-31 04:13:29 +03:00
offl
0e804c95ac Scripts/Spells: Add comments with id & name of spells part 2 2021-05-29 20:47:46 +03:00
offl
80a4b7f1e2 Scripts/Spells: Add comments with id & name of spells part 1 2021-05-28 17:33:15 +03:00
offl
78bd609e8a Scripts/Quest: Rework cocooned creatures (#26554) 2021-05-27 19:05:47 +03:00
offl
0d9125d8e4 Scripts/Eye: Update Void Reaver to new model & few misc changes (#26470)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:17:05 +02:00
offl
2b6632e50a Scripts/Mechanar: Update gatewatchers to new model (#26471)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-26 09:12:15 +02:00
offl
7bd3a36d52 Scripts/ML: Update Magtheridon to new model (#26420) 2021-04-16 20:14:19 +03:00
offl
9aa7ed4954 Scripts/Outland: Update Kazzak & Doomwalker to new model (#26419) 2021-04-16 20:14:05 +03:00
offl
df8ab338c7 DB/Quest: Rework 'Avruu's Orb' (9418) 2021-03-15 01:09:31 +02:00
offl
c905af818c DB/Quest: Rework 'A Spirit Guide' (9410) 2021-03-14 03:20:36 +02:00
offl
43fa6698d7 DB/Quest: Rework 'The Road to Falcon Watch' (9375)
Closes #26233
2021-03-14 03:17:43 +02:00
offl
5a22cd868a Scripts/The Eye: Update instance script (#26190) 2021-03-11 20:19:23 +02:00
offl
cdb7904182 DB/Instance/Gruul's Lair: Overhaul 2021-02-22 17:20:03 +02:00
offl
6ad76dd7c0 DB/Instance/The Eye: Overhaul part 2 2021-02-19 00:40:50 +02:00
offl
2f9e38612f DB/Instance/The Eye: Overhaul part 1 2021-02-16 00:16:38 +02:00
offl
3cb70ee62a Core/Scripts: Move some speed values & UNIT_FLAG_NOT_SELECTABLE to DB 2021-02-04 15:11:22 +02:00
offl
a9c83d5566 DB/Creature: Remove UNIT_FLAG_PACIFIED
Ref #25764
2021-01-31 18:39:25 +02:00
offl
1ed79d7a2e Core/Scripts: Verify & migrate spell school immunities to DB
Some already are stored in DB. Looks like they all are still valid for master
2021-01-26 23:43:50 +02:00
Kargatum
a32b6b8ac4 Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf
2021-01-03 11:47:07 +01:00
offl
6af54eb508 DB/Instance/Arcatraz: More adjustments 2020-11-26 02:25:47 +02:00
Ovah
850b88546f Scripts/Misc: Use InstanceMap* in InstanceScript instead of Map* (#25655)
# Conflicts:
#	src/server/game/Instances/InstanceScript.cpp
#	src/server/game/Instances/InstanceScript.h
#	src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/instance_blackrock_caverns.cpp
#	src/server/scripts/EasternKingdoms/MagistersTerrace/instance_magisters_terrace.cpp
#	src/server/scripts/EasternKingdoms/TheStockade/instance_the_stockade.cpp
#	src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp
#	src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp
#	src/server/scripts/Maelstrom/Stonecore/instance_stonecore.cpp
#	src/server/scripts/Outland/BlackTemple/instance_black_temple.cpp

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-11-17 19:45:13 +01:00
offl
a2da08deb1 DB/Instance/The Arcatraz: Update auras, scripts & stats 2020-11-08 00:25:13 +02:00
Keader
be8b251b58 build fix 2020-11-05 12:57:36 -03:00
Keader
83e0a70ddc Scripts/Black Temple: Some little fixes
- Fixed Reliquary of Souls ignoring boundary
- Fixed Maiev texts timer
- Fixed Shadow Prison hitting every single npc on black temple

Many thanks to Ovahlord
2020-11-05 12:05:14 -03:00
offl
60ded4ea47 DB/Instance/Auchenai Crypts: Complete overhaul part 1 2020-10-03 02:37:58 +03:00
offl
3ce1a5b3ac DB/Gameobject: Add correct door to Sethekk Halls 2020-09-18 18:44:08 +03:00
offl
29b39ae606 DB/Quest: Convert & update support for 'A Slow Death' to SAI
Closes #25399

Based on dr-j's script
2020-09-12 22:20:19 +03:00
offl
2ff8da2acd DB/Quest: Convert & update support for 'Escape from Firewing Point!' to SAI
Closes #25358

Based on dr-j's script
2020-09-12 22:19:43 +03:00
Maks Szokalski
41188eb535 Add "On" to some gossip methods in AI (#25415)
* Add "On" to some methods

* Update npc_innkeeper.cpp

* Update zone_borean_tundra.cpp
2020-09-10 16:57:11 +02:00
NoName
dad187615d Core/Movement: Corrected Animation Tier handling (PR #24875)
Co-authored-by: Warpten <vertozor@gmail.com>
Co-authored-by: Ovahlord <dreadkiller@gmx.de>
Co-authored-by: Carbenium <carbenium@outlook.com>
2020-09-08 17:12:52 +02:00
Treeston
0c7f6ac89f Scripts/AreaTrigger: Rename OnlyOnceAreaTriggerScript::_OnTrigger to TryHandleOnce, and make its return value useful. 2020-09-07 18:25:49 +02:00
Shauren
7d4fbf706a Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it 2020-08-20 16:03:47 +02:00
Peter Keresztes Schmidt
6c7837f947 Core/Unit: Make HandleEmoteCommand typesafe (#25249)
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter

* Scripts/HoR: Fix wrong emote during escape event

* Core/Unit: Make improve type safety of HandleEmoteCommand

Change argument type to the expected enum type Emote

* Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE

UNIT_NPC_EMOTESTATE is no flag field
2020-08-15 15:29:43 +02:00
Giacomo Pozzoni
07fd84b679 Core/Misc: Fix static analysis issues (#25194) 2020-08-04 11:36:47 +02:00
Trond B. Krokli
7f2874a7ac Scripts/Outland: Convert 'Captain Tyralius' to SAI (#25188)
Closes #24676
2020-08-03 21:06:20 +03:00
Giacomo Pozzoni
7cf122fc2a Core/Misc: Fix static analysis issues (#25178) 2020-07-31 22:53:13 +02:00
Trond B. Krokli
e0dae8feb6 Scripts/Quest: Force of Neltharaku quest credit (#24807)
* Scripts/Quest: Force of Neltharaku quest credit

**Description:**

Suggested solution to resolve the kill credit double cast issue
in the quest "The Force of Neltharaku" (10854).

by Rushor

**Changes proposed:**

- Remove duplicate spell casts in the zone quest script
- Remove commented-out script section
- Set a couple of unit flags (anim/stand/hover)
- Move return new creature script override to end of script
- Move PlayerGUID, FlyTimer, and Tapped to Private
- Add DB flight movement control to Enslaved Netherwing Drake
- Add SpellMgr MaxAffectedTargets = 1 for spell 38762
- Add movement enum POINT_MOVE_UP
- Add missing enum for quest ID

**Target branch(es):** 3.3.5/master

- [X] 3.3.5
- [X] master

**Issues addressed:** Closes #24796

**Tests performed:** (Does it build, tested in-game, etc.)

Pending for now.

**Known issues and TODO list:** (add/remove lines as needed)

- [X] Open PR in draft mode until testing is cleared
- [ ] Compile and create local server
- [ ] Test changes on local server

* Rename 9999_99_99_99_world.sql to 2020_07_29_00_world.sql

Co-authored-by: Rushor <Rushor@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-07-29 13:26:39 +02:00
Carbenium
1245833cdd Core/CreatureAI: std::chrono-ify DoSummon* methods 2020-07-28 17:25:51 +02:00
Carbenium
8642aaaf92 Core/WorldObject: Replace non-std::chrono SummonGameObject overloads
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest
2020-07-27 23:00:51 +02:00
Carbenium
a41f599be7 Core/WorldObject: Remove non-std::chrono SummonCreature overload
Remove
TempSummon* SummonCreature(uint32 entry, Position const& pos, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0, uint32 vehId = 0, uint32 spellId = 0);
2020-07-27 14:53:25 +02:00
Carbenium
480dee3125 Core/Creature: Remove non-std::chrono overload of DespawnOrUnsummon 2020-07-27 13:37:18 +02:00
Carbenium
92a02a5c87 Core/EventProcessor: std::chrono-ify CalculateTime
uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset).
Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)
2020-07-27 13:36:25 +02:00
Carbenium
1131229ee9 Core/WorldObject: Partially std::chrono-ify SummonCreature overloads
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0);
to
TempSummon* SummonCreature(uint32 entry, float x, float y, float z, float o = 0, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime = 0s);
2020-07-26 23:30:32 +02:00
Carbenium
8cb35b0d5f EventMap: Change GetTimeUntilEvent to return std::chrono types 2020-07-26 23:20:11 +02:00
Carbenium
5832790428 Scripts/World+Outland+Spells: Use std::chrono overload of Creature::DespawnOrUnsummon 2020-07-26 22:21:59 +02:00
Carbenium
f5076112cb Core/ScriptedAI: std::chrono-ify DoSpawnCreature 2020-07-25 23:16:04 +02:00
Carbenium
f1f251eb38 Core/Scripts: Fix timing issue of EVENT_FLY_TO_RANDOM_PILLAR during Illidan encounter
The intention here is to add additional 30 seconds of delay to the current delay of EVENT_FLY_TO_RANDOM_PILLAR.
Instead of EventMap::GetNextEventTime, EventMap::GetTimeUntilEvent has to be used which returns the currently
scheduled delay until the event occurs.
EventMap::GetNextEventTime instead exposes the timer value internal to EventMap at which the event should occur.
2020-07-22 01:19:59 +02:00
Peter Keresztes Schmidt
e6e5775be8 Build: Enable -Wimplicit-fallthrough on clang (#25056)
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs

Related: #25006

* Misc: Add some missing breaks (no-ops) to satisfy clang

Related: #25006
Closes #25055

* Build: Enable -Wimplicit-fallthrough on clang

Closes #25006
2020-07-18 20:43:16 +02:00