if(mmgr->GetPlayerCount() > 0 && mmgr->GetPlayerCount() < 2) { MapCell * mcell = 0; Map * mmap = mmgr->GetBaseMap(); CellSpawns * spawns; uint32 x[21] = {230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250}; uint32 y[21] = {230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250}; if(!mcell) { for( x[21] ; x[21] < 250 ; x[21] ++ ) // change the x here if we want to load more cells { for( y[21] ; y[21] < 250 ; y[21] ++ ) // change the y here for the same effect { mcell = mmgr->GetCell(x[21], y[21]); if(!mcell) { mcell = mmgr->Create( x[21] , y[21] ); mcell->Init( x[21] , y[21] , mmgr->GetMapId() , mmgr ); sLog.outDetail( "Created cell [%u,%u] on map %d (instance %d)." , x , y , mmgr->GetMapId() , pPlayer->GetInstanceID() ); mcell->SetActivity( true ); mmap->CellGoneActive( x[21] , y[21] ); spawns = mmap->GetSpawnsList( x[21] , y[21] ); if( spawns ) mcell->LoadObjects( spawns ); } } } } }