Sign in to follow this  
Followers 0
Myriad

getalliance Script Command

1 post in this topic

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,

[email protected]$[]        is a global temporary string array which contains all the
                          names of each allied guild.

[email protected]$[]  is a global temporary string array which contains all the
                          names of each opposition guild.

[email protected][]          is a global temporary number array which contains the
                          guild id of each allied guild.

[email protected][]    is a global temporary number array which contains the
                          guild id of each opposition guild.

[email protected]          is the number of allied guilds found.

[email protected]    is the number of opposition guilds found.

Note that the returned guilds come in no particular order.

Be sure to use [email protected]/[email protected] 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

Edited by Myriad

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0