Okay, I have a scheduled VB script running that will update RegisteredUsers.dat with accounts that are in my SQL Server database. Now I need to have a LUA script that will refresh the registered users every 1 minute using that list. Is there a command that I am not aware of to do this? Anyone have any code? I will gladly share my script that will update RegisteredUsers.dat if anyone is interested in syncing website accounts with hub accounts.
well you could
write the nicks to add into a second file.
and then read out that file with a lua script and
do this func
AddRegUser(nick,pass,profile_index)
done.
Is AddRegUser smart enough to not add a duplicate user without throwing an error or do I need to loop through the existing users and see if the user is already registered?
Thats where it would be nice just to refresh the list rather than having to loop through all those users if AddRegUSer is not smart enough. Right now I have 2300+ members.
well I guess it will not overwrite the old one... but not sure.. haven't tested yet.
AddRegUser(nick, pass, level) - adds new registered user or changes his password and profile if user is already registered
can be solved by stuffing all the regged users in a table.
plop