- Moved to Eluna support.
For one, using local function sometimes causes issues, but in this case you're using 'AddMember' method wrong. It should be 'player' in the argument not 'player:GetGUIDLow()' as it already supplies the GUID in C++.
function FirstLoginGuild (event, player)
local guild = GetGuildByName("test")
if (player:GetGMRank() > 1) then
guild:AddMember(player, 3) -- 3 is Member Rank in the guild.
print ("Someone Rank 1 or higher has logged into game")