This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AccountMounts : public PlayerScript | |
{ | |
static const bool limitrace = false; // This set to true will only learn mounts from chars on the same team, do what you want. | |
public: | |
AccountMounts() : PlayerScript("AccountMounts") { } | |
void OnLogin(Player* pPlayer) | |
{ | |
std::vector<uint32> Guids; | |
QueryResult result1 = CharacterDatabase.PQuery("SELECT guid, race FROM characters WHERE account = %u", pPlayer->GetSession()->GetAccountId()); |