Azerothcore-wotlk: Drink and Eat Animations are no consistent/continuous

Created on 6 Sep 2020  路  8Comments  路  Source: azerothcore/azerothcore-wotlk

Drink and Eat Animations are not consistent or continued

CURRENT BEHAVIOUR:

When eating or drinking stuff. It will only play the initial drink/eat animations when you sit down but it wont play the other continued animations.

EXPECTED BLIZZLIKE BEHAVIOUR:

The character should have the eat and drink animations for the time the item is consumed.

STEPS TO REPRODUCE THE PROBLEM:
  1. Get yourself something to drink or eat.
  2. Drink/Eat it.
  3. You will see that the character will only do the first animation and then do nothing just sitting.
EXTRA NOTES:

Cant tell but works on Warmane.

AC HASH/COMMIT:

https://github.com/azerothcore/azerothcore-wotlk/commit/8908df6b8040cb849731a68d71bc8fcfbaaf3b0a

OPERATING SYSTEM:

Windows 10

MODULES:

No

OTHER CUSTOMIZATIONS:

No


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Fix included

Most helpful comment

@FrancescoBorzi @craftorix
After looking through the source, the code already exists in the files and its rather a very simple code change.
https://github.com/azerothcore/azerothcore-wotlk/blob/940f14857e79ba11b207c9bf239ee275d22faf5e/src/server/game/Entities/Unit/Unit.cpp#L17525-L17531

Change this

SendMessageToSet(&data, false);

to this

SendMessageToSet(&data, true);

All 8 comments

The source is missing some code to make it work correctly.

Reference Pull Request: https://github.com/TrinityCore/TrinityCore/pull/21280/files

@Meltie2013 thanks for that link. You can also open a PR with it. Don't forget to mention the original author.

@FrancescoBorzi @craftorix
After looking through the source, the code already exists in the files and its rather a very simple code change.
https://github.com/azerothcore/azerothcore-wotlk/blob/940f14857e79ba11b207c9bf239ee275d22faf5e/src/server/game/Entities/Unit/Unit.cpp#L17525-L17531

Change this

SendMessageToSet(&data, false);

to this

SendMessageToSet(&data, true);

@Meltie2013, can yuo make a PR? so the people can test it easily and comment with their feedback there?

Anyways, thank you :+1:

@Meltie2013 thanks for your fix, you can check this to know how to open a PR: https://www.azerothcore.org/wiki/How-to-create-a-PR

I would love to open a PR for you guys but currently on the road, so internet isn't good for downloading and uploading.
I'll see when I can make that PR.

funny but https://github.com/azerothcore/azerothcore-wotlk/commit/03bfbf4f7e43f6b8064e6846e0bf2503958c17bc#diff-4522eeffcbc961602e86620011a2d579R17511 when this make false again is magic i look all history from that commit to now and don't see any commints that make this to false :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CyberFoxHax picture CyberFoxHax  路  3Comments

PolluxTroy0 picture PolluxTroy0  路  3Comments

FrancescoBorzi picture FrancescoBorzi  路  3Comments

lineagedr picture lineagedr  路  3Comments

fragcamp picture fragcamp  路  4Comments