c2ephp
|
00001 <?php 00002 //take off the two unprintable characters after Creatures Evolution Engine - Archived information file. zLib 1.13 compressed. 00003 //require_once(dirname(__FILE__).'/../agents/CreatureHistory.php'); 00004 require_once(dirname(__FILE__).'/../agents/PRAYFile.php'); 00005 require_once(dirname(__FILE__).'/../support/StringReader.php'); 00006 require_once(dirname(__FILE__).'/../support/FileReader.php'); 00007 require_once(dirname(__FILE__).'/../support/Archiver.php'); 00008 00009 $agent = new PRAYFile(new FileReader($argv[1])); 00010 $blocks = $agent->GetBlocks(PRAY_BLOCK_GLST); 00011 $history = $blocks[0]->GetHistory(); 00012 foreach($history->GetEvents() as $event) { 00013 if($event->GetEventType() == 13) { 00014 print $agent->GetBlockByName($blocks[0]->GetPHOTBlockName($event))->ToPNG(); 00015 break; 00016 } 00017 } 00018 00019 ?>