* Modified to allow for excluding certain spells from the module * change of plans. let's load the spell ids from the config file instead, makes it a bit more versatile for others as well. * Update mod_account_mount.cpp * Update .gitignore ignore .conf file, only commit .dist * Update mod_account_mount.cpp * Handle scenarios where no spell IDs are to be excluded Modified the AccountMounts script to seamlessly handle scenarios where no spell IDs are to be excluded by interpreting "0" or an empty configuration string as no exclusion criteria. This update leverages the existing uint32 type for spell ID representation and enhances the script's flexibility in configuration management. The change ensures that the AccountMounts script is more adaptable to server administrators' needs, allowing for a straightforward way to toggle spell ID exclusions. Also added some code commenting * fatal error: 'GetStringDefault' is deprecated * add racial limit to config * Create world_disable_racial_mounts_in_bg.sql * include scriptmgr * remove onlogin override * OnLogin -> OnPlayerLogin * delete project specific sql --------- Co-authored-by: Walter Pagani <paganiwalter@gmail.com>
AzerothCore
mod-account-mounts
The module's objective is to go through the list of characters on an account (which is activated when the player enters the server, with OnLogin), obtain the playerGuids and store the mount spells that all the characters know. Then, said list is run through, and the character who does not know the spell is taught said spell. By default, it shows mounts that are of the same race, however, it can be enabled to show all mounts, regardless of faction.
Currently, another module is in development, which is not finished, but has a similar idea, however, the difference is that it stores the spells in a database, allowing them to be classified into Alliance, horde and neutral, so If a player is an alliance, he learns those of the alliance plus the neutral ones. And if a player is Horde, learn those of that faction plus the neutral ones. As is the case, of the Lich King's mount.
https://github.com/pangolp/mod-mounts-on-account
- Latest build status with azerothcore:
Credits: ConanHun513