Code:
INSERT INTO `disables` VALUES (0, 48869, (1+16+32), "571,1", "1519", "Disable Bambina's Vengeance in map 1 and 571 and area 1519");
Now to explain a bit
1st field -
SourceType =
0 -> Disable Spell
2nd field -
Entry =
48869 -> Bambina's Vengeance Spell Id
3rd field -
Flags =
(1+16+32) -> 1 (Disable Spell For Players) + 16 (Disable spell on map id) + 32 (Disable spell on area)
*3rd field -
Flags =
(1+16) -> 1 (Disable Spell For Players) + 16 (Disable spell on map id)
4th field -
Param_0 =
"571,1" -> map ids 571,1 you can add more maps after ,
*5th field -
Param_1 =
"1519" -> area id required only if you choose a certain area note that the map is required if you also want the area
6th field -
Comment =
"" -> whatever you want to remember the code
If that doesn't work for you you can always count on c++
Code:
class player_restrictions : public PlayerScript
{
public:
player_restrictions() : PlayerScript("player_restrictions") {}
void OnMapChanged(Player* pPlayer) {
if (pPlayer->GetMapId() == 489 ){
if (pPlayer->HasAura(41924)){
pPlayer->RemoveAura(41924);
ChatHandler(pPlayer->GetSession()).PSendSysMessage("|cff00BFFFBattleground Restrictions:|r |cffFFFFFFOver powered buffs were removed from your buff list .|r");
}
}
}
};
void AddSC_player_restrictions()
{
new player_restrictions();
}