MapCell * mcell = 0; Map * mmap = mmgr->GetBaseMap(); CellSpawns * spawns; uint32 Cells[134][2] = { {247,244}, {247,245}, {247,246}, {244,247}, {245,247}, {246,247}, {244,243}, {245,243}, {246,243}, {243,243}, {243,244}, {243,245}, {243,246}, {242,243}, {242,244}, {242,245}, {242,242}, {243,242}, {244,242}, {241,242}, {241,243}, {241,244}, {241,245}, {240,243}, {240,242}, {240,244}, {240,245}, {240,242}, {239,242}, {239,243}, {239,244}, {238,242}, {238,243}, {238,244}, {237,242}, {237,243}, {237,244}, {237,245}, {238,245}, {239,245}, {236,242}, {236,243}, {236,244}, {236,245}, {237,241}, {238,241}, {239,241}, {236,241}, {236,240}, {237,240}, {238,240}, {239,240}, {236,239}, {237,239}, {238,239}, {236,238}, {237,238}, {238,238}, {235,238}, {235,239}, {235,240}, {235,237}, {236,237}, {237,237}, {235,236}, {236,236}, {237,236}, {234,236}, {234,237}, {234,238}, {234,235}, {235,235}, {236,235}, {237,235}, {235,234}, {236,234}, {237,234}, {238,236}, {238,237}, {239,237}, {239,238}, {239,239}, {239,236}, {238,235}, {239,235}, {240,236}, {240,237}, {240,238}, {241,236}, {241,237}, {241,238}, {242,236}, {242,237}, {242,238}, {240,235}, {241,235}, {242,235}, {243,236}, {243,237}, {243,238}, {241,239}, {242,239}, {243,239}, {244,237}, {244,238}, {244,239}, {244,236}, {245,236}, {245,237}, {245,238}, {245,239}, {243,240}, {244,240}, {245,240}, {243,241}, {244,241}, {245,241}, {242,240}, {242,241}, {243,242}, {244,242}, {245,242}, {246,242}, {246,243}, {247,243}, {247,244}, {247,245}, {247,246}, {242,246}, {240,241}, {241,241}, {240,240}, {240,239}, {241,240} }; if(!mcell) { for (int i = 0; i < 134; i++) { uint32 x = Cells[i][1]; uint32 y = Cells[i][2]; mcell = mmgr->GetCell(x, y); if(!mcell) { mcell = mmgr->Create( x , y ); mcell->Init(x , y , 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 , y ); spawns = mmap->GetSpawnsList( x , y ); if( spawns ) mcell->LoadObjects( spawns ); } } }