void InitializeTowerWar()
{
sServer.TowerWar.Status = 1;
GenerateMob(TORRE_ERION, 0, 0);
ClearTowerArea(0);
SendNotice("A batalha de Erion foi iniciada.");
//std::cout << "TowerWar.Guild " << sServer.TowerWar.Guild << std::endl;
if (sServer.TowerWar.Guild)
{
for (int i = MAX_PLAYER; i < MAX_MOB; i++)
{
if (pMob[i].GenerateID != TORRE_ERION)
continue;
pMob[i].Mobs.Player.GuildIndex = sServer.TowerWar.Guild;
p364 packet;
GetCreateMob(i, (BYTE*)&packet);
GridMulticast_2(pMob[i].Target.X, pMob[i].Target.Y, (BYTE*)&packet, 0);
/*std::cout << "Nome da torre " << pMob[i].Mobs.Player.Name << std::endl;
std::cout << "GenerateID da torre " << pMob[i].GenerateID << std::endl;
std::cout << "guild da torre " << pMob[i].Mobs.Player.GuildIndex << std::endl;*/
}
}
}