-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Scourge invasion Event Rework #1717
Open
Oroxzy
wants to merge
75
commits into
vmangos:development
Choose a base branch
from
Oroxzy:scourge_invasion_fixes2
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+10,384
−2,184
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oroxzy what are the minor stuff to fix? |
I mentioned it in more detail above, under the TODO list |
works only hardcoded
ratkosrb
reviewed
Sep 28, 2023
INSERT INTO `spell_mod` (`Id`, `procChance`, `procFlags`, `procCharges`, `DurationIndex`, `Category`, `CastingTimeIndex`, `StackAmount`, `SpellIconID`, `activeIconID`, `manaCost`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `Custom`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `Dispel`, `Stances`, `StancesNot`, `SpellVisual`, `ManaCostPercentage`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxAffectedTargets`, `MaxTargetLevel`, `DmgClass`, `rangeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `SpellFamilyName`, `SpellFamilyFlags`, `Mechanic`, `EquippedItemClass`, `Comment`) VALUES | ||
(28032, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, NULL), | ||
(28056, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, NULL), | ||
(28041, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why editing these spells? No comment provided in the insert.
These spells must ignore armor in order to function correctly
0blu
added
SQL
A issue / PR which references SQL code
CPP
A issue / PR which references CPP code
labels
Oct 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reason
Extreme adjustments to behave exactly like the original (even better because our city attacks are not bugged...) and move everything into the database if possible.
Quick explanation
This is how the event works now with these changes:
GameEvent 17 adds all Quest NPCs and GameObjects for Cities and Light's Hope Chapel to the Map.
It also spawns the City attack NPCs and Bosses in Dungeons.
GAME_EVENT_SCOURGE_INVASION = 17,
It also summons the NPC "Mouth of Kel'thuzad" in every invasion Zone.
This NPC controls and handles the attacked zones. He contains the only Hardcoded Script beside some Gossips and Qest stuff.
Each Invasion Zone has a seperated GameEvent:
Every event spawns the NPCs and GameObjects in it's zone.
If all Necropolises in the Zone are destroyed, the Mouth of Kel'thuzad NPC stops the Game Event at his defeated zone and has a configurable timer to start it again at some point.
TODO
Fix issue with Spawn Spell 28234, which makes npcs immune to damage somehow.
Removed almost all of the horrible Hardcoded stuff and moving things to DB.
City attacks and Flameshocker random spawns like it should be.
Much more accurate invasion camp spawn mechanics.
https://www.youtube.com/watch?v=tkrFymyC9v4&feature=youtu.be
Corrected many spell timers.
Respawn Low level minions outside cities with correct groups and respawn timers.
Make zone invasion timers and max attackable zones configurable.
Pooling invasion camps skullpiles.
Solve Spawn Mechanism.
How can i solve this?
if (iter->isSpawned())
it works but it may break several other scripts, which should target non-spawned objects.https://github.com/vmangos/core/blob/b8616cbfb212d52f70b79593ea1ce8c8fbce51dd/src/game/Spells/Spell.cpp#L2642C1-L2649C14
Im dumb please help! :p