Skip to content
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

Updated Playerbots.cpp to allow bots to gain achievements #492

Closed
wants to merge 1 commit into from

Conversation

Dohtt
Copy link

@Dohtt Dohtt commented Aug 25, 2024

This change should make it so that playerbots can gain achievements just like regular players.

Playerbots should now be able to gain achievements & achievement progress like regular players.
@tehho
Copy link

tehho commented Aug 26, 2024

This should probably be done behind a feature flag.
You need to keep the return true otherwise the function does not return anything for normal players.

Add a config value, suggestion AiPlayerbot.AllowAchievements, and default the config to 0, aka false. Then in the if bot, return is config set.

This should keep the default behavior and allow for enabling achievements

@noisiver
Copy link
Collaborator

noisiver commented Aug 26, 2024

A few issues with this.

  • How you're doing this is the worse way possible. Warnings all over the place when compiling. Basically you replaced the return false with true and that's not right.
  • It should be configurable.
  • You should check the achievements to make sure the rndbots don't get realm first achievements. It could be configurable but it should still be there.

@Dohtt Dohtt closed this Aug 26, 2024
@Dohtt Dohtt deleted the Dohtt-Test-Branch branch August 26, 2024 14:58
@Dohtt
Copy link
Author

Dohtt commented Aug 26, 2024

i'll leave the code part to people who can actually code, thanks for pointing out it won't work.

@noisiver
Copy link
Collaborator

i'll leave the code part to people who can actually code, thanks for pointing out it won't work.

That's not what I'm saying. I'm just saying that the code needs to be cleaned up and modified to include a few more things. If you want to enabled achievements on your end, just remove both of those functions instead of making them return true.

If you want this feature to be a part of the repo but aren't confident in doing it yourself I could sit down and add it as a configurable option.

@Dohtt Dohtt restored the Dohtt-Test-Branch branch September 5, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants