Skip to content

Instantly share code, notes, and snippets.

@MyNameIsKodos
Created August 6, 2017 00:30
Show Gist options
  • Save MyNameIsKodos/9e8928a5b40525c5600a5b884defc2ef to your computer and use it in GitHub Desktop.
Save MyNameIsKodos/9e8928a5b40525c5600a5b884defc2ef to your computer and use it in GitHub Desktop.
Descriptions for Channels
integer ID2Chan( string id )
{
integer mainkey = 921;
string tempkey = llGetSubString( ( string )id, 0, 7 );
integer hex2int = ( integer )( "0x" + tempkey );
return hex2int + mainkey;
}
NETWORK_CHANNEL = ID2Chan( llMD5String( llGetObjectDesc(), 0 ) );
listenhandle = llListen( NETWORK_CHANNEL, "", "", "" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment