Commit Graph

724 Commits

Author SHA1 Message Date
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
Shauren
900a2f6d88 Scripts/Gossips: Set gossip menu id for scripts that load menu items from database 2022-10-12 00:41:49 +02:00
Shauren
753a901928 Scripts/Hyjal: Change boss state management from SetData to SetBossState 2022-09-29 00:39:44 +02:00
Shauren
6260a95763 DB/Ahn'Qiraj Temple: Added spawn groups for bosses 2022-09-28 00:15:00 +02:00
Shauren
2d027e56ad Scripts/The Escape From Durnholde: Minor improvements
* Converted to BossAI
* Prevent repeating boss kills on Thrall event wipe
2022-09-27 00:08:16 +02:00
lee
fea9de5b17 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 204c45f7d7.

* 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>
2022-09-11 17:33:25 +02:00
offl
b52e0ccbad Scripts/Quest: Migrate few quest spell scripts to zone files (#28015) 2022-06-10 00:15:20 +03:00
lee
5a20861565 Scripts/Misc: Load gossip options from DB (#27892) 2022-04-08 04:43:57 +03:00
Shauren
b1a94bf94c 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
2022-04-03 22:36:49 +02:00
Shauren
5eea9883c2 Core/GameObjects: Reduce differences between branches part 3 - gameobject updatefield accessors 2022-03-30 18:01:24 +02:00
Shauren
e334fdf3ad Core/Units: Reduce differences between branches part 1 - object class 2022-03-29 23:07:07 +02:00
Shauren
d611925dc7 Core/Units: Reduce differences between branches part 1 - unit updatefield accessors 2022-03-29 11:30:49 +02:00
lee
e7c02d6a90 Scripts/Misc: Load some texts from DB (#27867) 2022-03-26 00:20:01 +02:00
anzz1
b8059ec6e7 Scripts: Update Silithus Wind Stones (#27700)
* Despawn Wind Stone after use, allow it to respawn (remove GO_FLAG_NODESPAWN on initialize)
* Re-check twilight set aura on GossipSelect (don't allow to summon without wearing set)
* Fix spell Abyssal Punisment (24803) not casting when interacting with stone without required items
* Fix miniboss not despawning after leaving combat
* Fix possible exploit of spawning many minibosses from a single wind stone spawn
* Improve creature scripts
* Set correct respawn time for wind stones

Closes #27698 Closes #26814
2022-02-04 17:22:55 +02:00
offl
fde8619dac Scripts/BM: Remove unused text 2022-01-12 19:30:48 +02:00
offl
9d6c4e3d93 Scripts/Spells: Update Gordunni Trap spell script (#27437)
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-12-23 02:08:46 +02:00
offl
542c10094f Scripts/Misc: Migrate world event scripts to separate files (#27284) 2021-11-21 23:18:10 +02:00
offl
44a265685e DB/Creature: Zaetar's Spirit 2021-11-02 03:29:40 +02:00
offl
d42c89aa04 Scripts/Misc: Migrate Operation Gnomeregan & Zalazane's Fall scripts to own files (#27163) 2021-11-01 18:10:09 +02:00
offl
ed38206031 Scripts/Misc: Replace some of AddItem / CreateItem with spells (#27160) 2021-11-01 18:09:24 +02:00
offl
c4741a131a Core/Misc: Rename UNIT_FLAG_NOT_SELECTABLE to UNIT_FLAG_UNINTERACTIBLE (#26913) 2021-09-15 01:04:03 +03:00
Shauren
325bdc0ab0 Core/Spells: Remove remaining direct accesses to SpellInfo::Effects 2021-09-04 14:21:02 +02:00
Jinnaix
6bcda49e98 Core/Script: fix Silithus Wind Stone exploit (#26808)
* Core/Script: fix Silithus Wind Stone exploit

* corrections

Closes #23577
2021-08-14 13:34:51 +02:00
Giacomo Pozzoni
0800ab20a8 Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken (#26787)
* Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken

* Update scripts
2021-08-09 17:00:34 +02:00
offl
365a95bc94 Scripts/BM: Update scripts to new register model (#26792) 2021-08-09 14:18:12 +03:00
offl
97140cd195 Scripts/BFD: Update scripts to new register model (#26791) 2021-08-09 14:18:02 +03:00
Giacomo Pozzoni
aa7279df09 Core/SAI: Warn when an unused parameter is set in the database (#26628)
* Core/SAI: Warn when an unused parameter is set in the database

* Warn when an unused parameter is set in the database as all unused parameters are supposed to be set to 0.

* Remove unused struct from union.

* Add a new struct simpleTalk for SMART_ACTION_SIMPLE_TALK instead of reusing only some fields of struct talk from SMART_ACTION_TALK

* Add addAura and flag structs to be used instead of generic ones to match the parameters used by actions

* Add randRangeTimedActionList struct to be used instead of generic ones to match the parameters used by actions.

* Remove unused action structs.
2021-07-17 11:22:11 +02:00
offl
fc14d4f30a Scripts/OL: Update Onyxia to new register model (#26683) 2021-07-13 14:15:32 +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
HelloKitty
730c2633e0 Scripts/RazorfenDowns: Fix Belnistrasz Incorrect Usage of GOSSIP_OPTION_QUESTGIVER (#26404)
NPC was using GOSSIP_OPTION_QUESTGIVER as a UNIT_NPC_FLAGS when it should have been using UNIT_NPC_FLAG_QUESTGIVER.

Behavior shouldn't change though as they both coincidentally were 2.
2021-04-14 14:22:14 +02:00
offl
8fa6f95d4b Scripts/Zone: Update Dustwallow Marsh zone file (#26368)
* Scripts/Zone: Update Dustwallow Marsh zone file

* Do you want SpellInfo back?

Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-13 09:38:17 +02:00
offl
fe41744c7a Scripts: Update Azuregos to new model (#26392)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-13 09:34:07 +02:00
offl
5cddcc75f2 Scripts/Zone: Update Feralas zone file (#26367)
Co-authored-by: offl <offl@users.noreply.github.com>
2021-04-12 15:03:13 +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
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
Jinnaix
26002c530f Scripts/Diremaul - Dire Maul crystal and forcefield fix (#25332)
* Scripts/Diremaul
Diremaul Crystal and Forcefield fix

* Apply suggestions from code review

Apply suggestions

Co-authored-by: MaxtorCoder <warsongkiller.s8@gmail.com>

* Fix stuff

* _private member

* use std array instead of c-arrays and standartized guid container namings

* Process feedback

* finalize

* blubb

* small changes

* whoops

* Process feedback

* Missing include

* Process feedback

* Apply suggestions from code review

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>

* remove unused field

Co-authored-by: MaxtorCoder <warsongkiller.s8@gmail.com>
Co-authored-by: Ovah <dreadkiller@gmx.de>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-01-10 16:38:41 +01: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
f62306f52d Core/Scripts: Add missing spells to Black Morass 2020-12-27 03:13:40 +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
7fd12cc722 DB/Instance/AQ40: Update gossips
Closes #25577
2020-10-25 01:35:35 +03:00
offl
d89c84263d DB/Quest: Convert & update support for 'The Caverns of Time' to SAI 2020-09-12 22:19:05 +03:00
offl
8c303e4f97 DB/Quest: Convert & update Homing Robot chickens to SAI
Closes #25239
2020-09-12 22:18:32 +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
jackpoz
ca2159bf40 Scripts/Obsidian Sanctum: Fix portals not being visible
Change NearestGameObjectEntryInObjectRangeCheck to allow returning GameObject not spawned.
Fixes other occurrences where a similar issue exists.
2020-09-04 22:01:25 +02:00
Aokromes
bf8b34946d Script/Azuremyst_isle: Remove useless log 2020-08-28 10:20:03 +02:00