Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

PHP & Sending MUS

Junior Spellweaver
Joined
Nov 28, 2011
Messages
111
Reaction score
17
What does MUS do and how do I send a MUS through PHP? I'm using RevCMS. Thank you!
 
Joined
Aug 10, 2011
Messages
7,400
Reaction score
3,295
MUS is just a open port that your emulator can receive commands from.

It can be like :shutdown so you can shutdown your hotel via your housekeeping or give someone credits :coins $username $value

I never coded a mus port and dont know if RevCMS has one. You can check the php files in your housekeeping to see if there is one.
 
Upvote 0
[̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅]
Joined
May 4, 2008
Messages
831
Reaction score
741
PHP:
public function MUS($command, $data = '')
    {
        $MUSdata = $command . chr(1) . $data;
        $socket = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
        @socket_connect($socket, $this->CmsSetting('client_ip'), $this->CmsSetting('client_mus'));
        @socket_send($socket, $MUSdata, strlen($MUSdata), MSG_DONTROUTE);    
        @socket_close($socket);
    }
PHP:
MUS("ha","this is a hotel alert);

I hope this helps.
 
Upvote 0
Back
Top