Skip to content

Instantly share code, notes, and snippets.

View irancore's full-sized avatar
💭
I may be slow to respond.

irancore

💭
I may be slow to respond.
View GitHub Profile
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());