That is caused by the misusing of StandState related method. Replace bot->AddUnitState(UNIT_STAND_STATE_SIT) with bot->SetStandState(UNIT_STAND_STATE_SIT) and it should work.
Actually bot->AddUnitState(UNIT_STAND_STATE_SIT) is equal to bot->AddUnitState(UNIT_STATE_DIED) because UNIT_STATE_DIED=UNIT_STAND_STATE_SIT=1, which may cause the bot to be considered dead and prevent it from moving. (not sure)
https://github.com/ZhengPeiRu21/mod-playerbots/commit/9871cd34c46c661327ae333e5bce0fb67135789d
The bot gets stuck after eating or drinking. Problems are mentioned in these issues:
That is caused by the misusing of StandState related method. Replace
bot->AddUnitState(UNIT_STAND_STATE_SIT)
withbot->SetStandState(UNIT_STAND_STATE_SIT)
and it should work.Actually
bot->AddUnitState(UNIT_STAND_STATE_SIT)
is equal tobot->AddUnitState(UNIT_STATE_DIED)
becauseUNIT_STATE_DIED
=UNIT_STAND_STATE_SIT
=1, which may cause the bot to be considered dead and prevent it from moving. (not sure)