connectmember is the name of the file GameServer.exe reads to allow access to the accounts you put in there.
Example:
Code:
// Connect user list
// Only current game server.
"myaccount"
"joeccount"
In Data/ServerInfo.dat you'll find:
Code:
[GameServerInfo]
ServerName = SERVERNAME
ServerCode = 0
ConnectMemberLoad = 0;
Change ConnectMemberLoad to 1 instead of 0.
Here I have a SQL that will generate this file for you, and the only thing you need to do is to Reload the file when the GS is already opened.
Creat a job with this. Doesn't matter how you schedule it. Can happen every 5 minutes, 5 hours, etc:
Code:
declare @memb___id varchar(10)
declare @vip int
declare @value varchar(255)
declare @address varchar(255)
SET @address = 'C:\MuServer\Subservidor-GOLDHEN\data\ConnectMember.txt'
SET @value = 'DEL '+ @address
exec MASTER..XP_CMDSHELL @value
declare c cursor for select memb___id, vip FROM MEMB_INFO
open c
FETCH NEXT FROM c INTO @memb___id, @vip
--Creates the file even though there's no VIP
SET @value = 'ECHO:' + '//Accounts list' + '>>' + @address
exec MASTER..XP_CMDSHELL @value
print @value;
WHILE @@FETCH_STATUS = 0
BEGIN
--Put the names into the file
IF @vip = 2 --Change this to the number of your VIP
BEGIN
SET @value = 'ECHO;"' + @memb___id + '" >> '+ @address
exec MASTER..XP_CMDSHELL @value
print @value;
END
FETCH NEXT FROM c INTO @memb___id, @vip
END
CLOSE c
DEALLOCATE c