Esempio n. 1
0
 public function execute($a = null, $b = null, $c = null)
 {
     $village = $this->getVillage();
     // Add mission
     $mission = new Dolumar_Underworld_Models_Mission(null);
     $mission->setMapName('dordaedeloth.map');
     $mission->setObjectiveName('DorDaedeloth');
     Dolumar_Underworld_Mappers_MissionMapper::create($mission, true);
     // Update server status
     $server = Neuron_GameServer::getServer();
     $server->setData('gamestate', Dolumar_Players_Server::GAMESTATE_ENDGAME_RUNNING);
     // And notify all players
     Neuron_GameServer_Player_Guide::addPublicMessage('end_casted', array($village->getOwner(), $village), 'guide', 'neutral');
 }
Esempio n. 2
0
 private function createExploreMission()
 {
     $mission = new Dolumar_Underworld_Models_Mission(null);
     $mission->setMapName('explore.map');
     $mission->setObjectiveName('Explore');
     return Dolumar_Underworld_Mappers_MissionMapper::create($mission, true);
 }