Hello again!
This time I bring the getalliance(<Guild ID>) script command. It works similar to getpartymember() and getguildmember(). I'm still in the process of testing, but it seems to work okay so far. There is a sample script in the comments section at the top of the plugin. Try it out!
*getalliance(<Guild ID>)
This command will find all guilds in an alliance with the specified guild and
returns their names and guild ids into an array of temporary global variables.
Upon executing this,
$@guildallyname$[] is a global temporary string array which contains all the
names of each allied guild.
$@guildoppositionname$[] is a global temporary string array which contains all the
names of each opposition guild.
$@guildallygid[] is a global temporary number array which contains the
guild id of each allied guild.
$@guildoppositiongid[] is a global temporary number array which contains the
guild id of each opposition guild.
$@guildallycount is the number of allied guilds found.
$@guildoppositioncount is the number of opposition guilds found.
Note that the returned guilds come in no particular order.
Be sure to use $@guildallycount/$@guildoppositioncount to go through this array, and not
getarraysize(), because it is not cleared between runs of getalliance().
For usage examples, see getpartymember().
Download: https://pastebin.com/82DxKcUW