View Single Post
Old 05-18-2004, 11:45 AM   #5 (permalink)
SDragon
 
Join Date: Dec 2003
Posts: 67
Default

Unfortunately I only have access to the B36 script right now (not going to try and install RC1 on my work computer), but I don;t think the file changed any.

Original script code:
PHP Code:
public static void EventSink_ServerListServerListEventArgs e )
{
    try
    {
        
IPAddress ipAddr;

        if ( 
ResolveAddress != null && !IsLocalMachinee.State ) ? Address Dns.GetHostName(), out ipAddr ) )
            
e.AddServerServerName, new IPEndPointipAddrListener.Port ) );
        else
            
e.Rejected true;
    }
    catch
    {
        
e.Rejected true;
    }

Ok the part in there that makes an entry in the UO servers list is this:
PHP Code:
        if ( ResolveAddress != null && !IsLocalMachinee.State ) ? Address Dns.GetHostName(), out ipAddr ) )
            
e.AddServerServerName, new IPEndPointipAddrListener.Port ) ); 
Therefore, all you really need to do is copy that and past it back in so that you have it twice (and change the "if" to "else if" so that the rest of the code will still work properly).

You should have this now:
PHP Code:
public static void EventSink_ServerListServerListEventArgs e )
{
    try
    {
        
IPAddress ipAddr;

        if ( 
ResolveAddress != null && !IsLocalMachinee.State ) ? Address Dns.GetHostName(), out ipAddr ) )
            
e.AddServerServerName, new IPEndPointipAddrListener.Port ) );
        else if ( 
ResolveAddress != null && !IsLocalMachinee.State ) ? Address Dns.GetHostName(), out ipAddr ) )
            
e.AddServerServerName, new IPEndPointipAddrListener.Port ) );
        else
            
e.Rejected true;
    }
    catch
    {
        
e.Rejected true;
    }

Now, you just have to change the "Address", "ServerName" variables in the second entry with ones that are for the 2nd server. Also, if you are behind a router and both servers will have the same address, then you will have to give them two different port numbers.
SDragon is offline