in your script look for the gossip script, Gossip_Battlemaster.cpp, open it, heres what you need to edit(in red):
Code:
class SCRIPT_DECL ArathiBasinBattlemaster : public GossipScript
{
public:
void GossipHello(Object* pObject, Player * plr, bool AutoSend)
{
GossipMenu *Menu;
uint32 Team = plr->GetTeam();
if(Team > 1) Team = 1;
// Check if the player can be entered into the bg or not.
if(plr->getLevel() < 20)
{
uint32 FactMessages[2] = { 7700, 7667 };
// Send "you cannot enter" message.
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), FactMessages[Team], plr);
}
else
{
uint32 FactMessages[2] = { 7700, 7555 }; // need to find the second one
// Send "you cannot enter" message.
objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), FactMessages[Team], plr);
Menu->AddItem( 0, "I would like to enter the battleground.", 1);
}
if(AutoSend)
Menu->SendTo(plr);
}
void GossipSelectOption(Object* pObject, Player * plr, uint32 Id, uint32 IntId, const char * Code)
{
// Send battleground list.
if(pObject->GetTypeId()!=TYPEID_UNIT)
return;
plr->GetSession()->SendBattlegroundList(((Creature*)pObject), 3); // WSG = 2
}
void Destroy()
{
delete this;
}
};
then you edit it to whatever level, save and compile your scripts