Hiho! I am trying to implement these four mounts from AQ - made custom items, added ItemScripts (event checks if player is in a instance). The problem is here, that it dismounts me on changing a map and area - for example, when I ride from Dalaran to Dalaran Sewers, when I go to Gurubashi and then jump into the arena, when I leave Orgrimmar - go to Durotar. The only reason that this is caused i think is because blizzard added a fix to AQ, that check’s if there’s a mapchange on a player with this mount, it dismounts (to disallow leaving the instance mounted). Looked in code, can’t find anything. Just need a confirmation and maybe an idea?
Here is the code but it doesn’t matter, it’s just an aura.
[CODE]bool OnUse(Player* player, Item* /* item /, SpellCastTargets const & / targets */) override
{
if (player->IsInCombat())
player->GetSession()->SendNotification(“Can’t use mount in combat”);
for (int k = 0; k < 42; k++){
if (player->GetMapId() == tab[k]){
player->GetSession()->SendNotification("Can't use mount in an instance");
return false;
}
player->AddAura(26054, player);
}
return true;
}[/CODE]