. * * $Id: freelancer.php,v 1.2 2008/02/22 13:33:40 tombuskens Exp $ */ [freelancer] status = "\x00\x02\xf1\x26\x01\x26\xf0\x90\xa6\xf0\x26\x57\x4e\xac\xa0\xec\xf8\x68\xe4\x8d\x21" require_once GAMEQ_BASE . 'Protocol.php'; /** * Freelancer protocol * UNTESTED * * @author Tom Buskens * @version $Revision: 1.2 $ */ class GameQ_Protocol_freelancer extends GameQ_Protocol { /* * status packet */ public function status() { // Server name length @ 3 $this->p->skip(3); $name_length = $this->p->readInt8() - 90; // Max players @ 20 $this->p->skip(17); $this->r->add('max_players', $this->p->readInt8() - 1); // Num players @ 24 $this->p->skip(3); $this->r->add('num_players', $this->p->readInt8() - 1); // Servername @ 91 $this->p->skip(66); $this->r->add('servername', $this->p->read($name_length)); } } ?>