-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Core/Misc: Implemented spawn tracking #30247
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
Conversation
|
sql/updates/world/master/2024_99_99_98_world.sql needs to be completely recreated. It drops and creates a table and then tries to delete rows from that table just dropped and created. |
|
src/server/game/Entities/Player/Player.cpp |
5e4eeb2 to
846efc8
Compare
|
How many rows does DELETE stqo
FROM `spawn_tracking_quest_objective` stqo
LEFT JOIN `quest_objectives` qo ON stqo.`QuestObjectiveId`=qo.`ID`
WHERE qo.`ID` IS NULL;delete at the end of the sql update ? Are most of the rows excluded already before ? |
|
mdX7
left a comment
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.
seems great already. Would be cool to get a command to get info about spawntracking for targeted npcs; but thats for a separate pr imo
|
|
||
| if (unit->IsCreature()) | ||
| if (SpawnTrackingStateData const* spawnTrackingStateData = unit->GetSpawnTrackingStateDataForPlayer(receiver)) | ||
| stateAnimKitId = spawnTrackingStateData->StateAnimKitId.value_or(0); |
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.
intended to use 0 here instead of default stateAnimKitId?
Changes proposed:
Issues addressed:
Closes #29705
Tests performed:
Builds, tested in-game, Added example for quest https://www.wowhead.com/quest=55881/purge-the-totems (.quest add 55881)
Known issues and TODO list: (add/remove lines as needed)