As far as a script would go, addguildmember(guild, accnt, nick); is how you would add members to a guild. If the compiler does not find a file guildname.txt, with guildname being the name of the guild, it will automatically create a file.
Most used functions:
PHP Code:
addguildmember(guild, accnt, nick);
removeguildmember(guild, accnt, nick);
removeguild(guild);
I do not have the documentation in front of me, so if anybody see's any errors with those functions, let me know :]
Just as a very basic example script:
PHP Code:
function onPlayerchats()
{
if(player.account == "Admin-Accnt")
{
tokens = player.chat.tokenize();
switch(tokens[0])
{
case ":newguild" :
addguildmember(tokens[1], player.account, player.nick);
break;
case ":remguild" :
removeguild(tokens[1]);
break;
}
}
}
Hope this helps!