Skip to content

Adjust-command-logic #69

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

Merged
merged 21 commits into from
May 25, 2025
Merged

Conversation

BoiseComputer
Copy link
Contributor

Adjust command logic as requested by AzerothCore.

BoiseComputer and others added 21 commits April 20, 2025 13:38
- Created a new SQL table `beastmaster_tamed_pets` to store information about tamed pets.
- Implemented functionality in `NpcBeastmaster.cpp` to track tamed pets, including methods for inserting, renaming, and deleting pets from the database.
- Enhanced the gossip menu to include options for viewing and managing tracked pets.
- Added a profanity filter and validation for pet names during renaming.
- Introduced a chat handler for processing rename and delete confirmations.
- Updated configuration loading to support new features related to tamed pets.
- Refactored existing code for better organization and clarity, including the use of structured data types for pets.
- Removed redundant global tracked pets cache declaration and encapsulated it within the NpcBeastmaster class.
- Introduced a mutex for thread-safe access to the tracked pets cache.
- Added ClearTrackedPetsCache method to manage cache clearing for individual players.
- Updated ShowTrackedPetsMenu to ensure thread safety when accessing the tracked pets cache.
- Improved code readability and organization by adding comments and restructuring methods.
… management

- Removed JSON dependency and related code for loading pet data.
- Implemented SQL queries to fetch pet information from the database.
- Simplified database operations for tracking tamed pets.
- Introduced new structures for handling pet information and player actions.
- Consolidated script classes into NpcBeastmaster for better organization.
- Enhanced logging and error handling for database operations.
- Updated gossip menu and chat handling for pet renaming and deletion.
…lity and organization

- Split long lines into multiple lines for better readability.
- Reorder includes in NpcBeastmaster.cpp for consistency.
- Add constexpr for Beastmaster NPC entry and whistle item entry.
- Enhance comments for clarity and maintainability.
- Update logic for handling whispers and gossip menu interactions.
- Implement a new OnChat method to handle pet renaming with validation.
- Adjust spacing and formatting throughout the code for consistency.
…mmands, update README with usage instructions
…s, improve configuration options for class and race restrictions, and add chat commands for summoning. Implement login notifications and refine pet adoption logic.
…ooldown message and improve PlayerScript constructor. Enhance logging format for registered commands.
@BoiseComputer BoiseComputer marked this pull request as draft May 25, 2025 16:58
@BoiseComputer BoiseComputer marked this pull request as ready for review May 25, 2025 16:59
@BoiseComputer
Copy link
Contributor Author

A change requested by TheScrewedSoftware:
9:25 AM]TheSCREWEDSoftware: Just by looking at the readme.
I would probably suggest the in game command from .cancel to petname cancel and removal of .bm this small letter commands could conflict with others.

@TheSCREWEDSoftware
Copy link

CC: @Helias i don't have merge rights

@Helias Helias merged commit 6546a51 into azerothcore:master May 25, 2025
1 check passed
@Helias
Copy link
Member

Helias commented May 25, 2025

merged, thanks!

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