GetGuildType | ||
---|---|---|
Prototype | int GetGuildType( trgGuild ); | |
Purpose | Returns the type of guild associated with trgGuild. Valid types are: 0 - Standard 1 - Order 2 - Chaos 3 - Unknown 4 - Count | |
Example of Usage | if( GetGuild( pTalking ) != -1 ) |
GetGuildName | ||
---|---|---|
Prototype | string GetGuildName( trgGUild ); | |
Purpose | Returns the name of the guild trgGuild | |
Example of Usage | if( GetGuild( pTalking ) != -1 ) |
GetGuildMaster | ||
---|---|---|
Prototype | CHARACTER GetGuildMaster( trgGuild ); | |
Purpose | Returns the character, if any, that is the guildmaster of trgGuild. If the returned value is -1, there is no master | |
Example of Usage | if( GetGuild( pTalking ) == GetGuild( pTalkingTo ) && GetGuild( pTalking ) != -1 ) |
SetGuildType | ||
---|---|---|
Prototype | SetGuildType( trgGuild, newType ); | |
Purpose | Sets the guild trgGuild's type to newType. newType can be any of: 0 - Standard 1 - Order 2 - Chaos 3 - Unknown 4 - Count | |
Example of Usage | if( GetGuild( pTalkingTo ) != -1 ) |
SetGuildName | ||
---|---|---|
Prototype | SetGuildName( trgGUild, newName ); | |
Purpose | Sets the name of trgGuild to newName. | |
Example of Usage | if( GetGuild( pTalkingTo ) != -1 ) |
SetGuildMaster | ||
---|---|---|
Prototype | SetGuildMaster( trgGuild, newMaster ); | |
Purpose | Set's the guild master of trgGuild to newMaster. Note that newMaster is a SERIAL, not a character. To clear the master, use a value of 0xFFFFFFFF. | |
Example of Usage | SetGuildMaster( GetGuild( pTalkingTo ), 0xFFFFFFFF ); // no more master |
GetNumGuildMembers | ||
---|---|---|
Prototype | int GetNumGuildMembers( trgGuild, memberType ); | |
Purpose | Returns the number of members (memberType == 0) or recruits (memberType == 1) or both (memberType == 2 ) that belongs in the guild trgGuild. | |
Example of Usage | if( GetNumGuildMembers( GetGuild( pTalking ), 2 ) > 10 ) |
AddToGuild | ||
---|---|---|
Prototype | AddToGuild( trgGuild, trgMember, memberType ); | |
Purpose | Adds trgMember to the guild trgGuild as a member (memberType == 0) or recruit (memberType == 1). | |
Example of Usage | AddToGuild( GetGuild( pTalkingTo ), pTalking, 0 ); |
RemoveFromGuild | ||
---|---|---|
Prototype | RemoveFromGuild( trgGuild, trgMember ); | |
Purpose | Removes trgMember from the guild trgGuild. | |
Example of Usage | RemoveFromGuild( GetGuild( pTalkingTo ), pTalking ); |
CompareGuild | ||
---|---|---|
Prototype | int CompareGuild( pOne, pTwo ); | |
Purpose | Compare's the relationships between pOne and PTwo's guilds. Possible values are: 0 - Neutral 1 - War 2 - Ally 3 - Unknown 4 - Same 5 - Count | |
Example of Usage | if( CompareGuild( pTalking, pTalkingTo ) == 2 ) |
CompareGuildByGuild | ||
---|---|---|
Prototype | int CompareGuild( srcGuild, trgGuild ); | |
Purpose | Compares the relations between srcGuild and trgGuild. Possible values are: 0 - Neutral 1 - War 2 - Ally 3 - Unknown 4 - Same 5 - Count | |
Example of Usage | if( CompareGuildByGuild( GetGuild( pTalking ), GetGuild( pTalkingTo ) ) == 1 ) |
GetGuildStone | ||
---|---|---|
Prototype | SERIAL GetGuildStone( trgGuild ); | |
Purpose | Returns the serial of the guild stone associated with trgGuild. | |
Example of Usage | if( GetGuildStone( GetGuild( pUser ) ) == GetSerial( iUsed, 1 ) ) |