[Core/SQL] Adds Support for Multiple Mob Pets #6489
+88
−45
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.
I affirm:
What does this pull request do?
Adds Support for Mobs with Multiple Pets through mob_pets and core
mob_pets.sql
to use a composite key of the Master Mob ID with the Pet Offset and uses an index on the Master Mob ID instead of just a Primary Key on the Master Mob ID.Some of the mobs that summon multiple pets:
For sake of simplicity, and to show a basic implementation of using multiple pets - I have updated Ix'Aern DRG with some basic logic to summon all 3 of its wynavs with 'Call Wyvern' and, since it uses the ability multiple times, how tracking can be done to re-trigger the ability and show that they are all resummoned and follow the proper pet logic.
NOTE: This is only a slight modification to replace the looping structure that was in place for Ix'aern DRG from before. This is not an accurate re-implementation of the encounter. Someone else is currently working on that with retail capture data and will PR that soon. This is strictly to provide an example usage of this multi-pet support PR.
Steps to test these changes
1 -
!zone The Garden of Ru'Hmet
2 -
!spawnmob 16921022
3 -
!gotoid 16921022
4 - Enage Ix'Aern DRG
Note that all 3 pets are summoned through the Call Wyvern JA
5 - Kite the mob away from its spawn point and then
!goto <me>
to drop aggroNote that the pets now follow their master back
6 - Attempt to use the SMN Pull Technique to only aggro Ix'Aern DRG
!changejob smn 75
Note that the pets now detect that the master is still engaged and continue to fight the player.
Previously, this would allow players to engage Ix'Aern DRG while the pets remained in an idle/roaming state.
7 - Use
!hp 0
on 1~2 of the pets8 - Wait till Ix'Aern DRG attempts to re-use Call Wyvern
Note that the missing pets are re-summoned and engage with whatever the masters current target is.