Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] Mus Commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 383232" data-attributes="member: 36373"><p>Hey Guys,</p><p></p><p>So this is the first time I am trying to setup MUS Commands on Plus EMU. I have enabled Sockets on IIS and restarted IIS several times.</p><p></p><p>This is my function:</p><p>[PHP]</p><p><?php</p><p> function Mus($header, $data = '')</p><p> {</p><p> $musData = $header . chr(1) . $data;</p><p> </p><p> $sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));</p><p> @socket_connect($sock, "VPS IP", "MUS PORT");</p><p> @socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE); </p><p> @socket_close($sock);</p><p> } </p><p> ?></p><p>[/PHP]</p><p>I have my VPS IP and Mus Port correct. The emulator is configured to the mus port, but when I try to call to this function my page turns white?</p><p>[doublepost=1472572080,1472483883][/doublepost]Bump <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /> Still having this issue and still working to get it.</p><p>[doublepost=1472572746][/doublepost]FIXED:</p><p></p><p>Here is the way to send it:</p><p></p><p>[CODE]<?php</p><p> function Mus()</p><p> {</p><p> $port = 30001;</p><p> $ip = "127.0.0.1";</p><p> $musData = 'goto' . chr(1) . '1:111';</p><p></p><p> $sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); </p><p> @socket_connect($sock, $ip, intval($port));</p><p> @socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE); </p><p> @socket_close($sock);</p><p> } </p><p> Mus();</p><p> ?>[/CODE]</p><p></p><p>You will have to add parameters and send the parameters. This was just me playing around til it worked</p></blockquote><p></p>
[QUOTE="JayC, post: 383232, member: 36373"] Hey Guys, So this is the first time I am trying to setup MUS Commands on Plus EMU. I have enabled Sockets on IIS and restarted IIS several times. This is my function: [PHP] <?php function Mus($header, $data = '') { $musData = $header . chr(1) . $data; $sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); @socket_connect($sock, "VPS IP", "MUS PORT"); @socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE); @socket_close($sock); } ?> [/PHP] I have my VPS IP and Mus Port correct. The emulator is configured to the mus port, but when I try to call to this function my page turns white? [doublepost=1472572080,1472483883][/doublepost]Bump :( Still having this issue and still working to get it. [doublepost=1472572746][/doublepost]FIXED: Here is the way to send it: [CODE]<?php function Mus() { $port = 30001; $ip = "127.0.0.1"; $musData = 'goto' . chr(1) . '1:111'; $sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); @socket_connect($sock, $ip, intval($port)); @socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE); @socket_close($sock); } Mus(); ?>[/CODE] You will have to add parameters and send the parameters. This was just me playing around til it worked [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] Mus Commands
Top