Jump to content

Instance Check Commands v0.1

Sign in to follow this  

About This File

Additional Instance Check Commands to go along with the existing instance_check_party.

 

Commands:

*instance_check_guild(<guild_id>{,<amount>{,<min>{,<max>}}});This function checks if a guild meets certain requirements, returning 1 ifall conditions are met and 0 otherwise. it will only check online characters.amount - number of online guild members (default is 1).min - minimum level of all characters in the guild (default is 1).max - maximum level of all characters int he guild (default is max level in conf).Example:if( instance_check_guild(getcharid(2), 2, 1, 150) ){    mes "Your guild meets the Memorial Dungeon requirements.",    mes "All online members are between levels 1-150 and at least two are online.";    close;} else {    mes "Sorry, your guild does not meet requirements.";    close;}

*instance_check_ready(<IOT_TYPE>,<owner_id>{,amount{,min{,max}}});This function checks if the Char, Party, Guild, etc... meets certain requirements, returning 1 ifall conditions are met and 0 otherwise. It will only check online characters.IOT_TYPE:    IOT_NONE - Not sure what this is, but will return 1 regardless of settings due to it being unknown.    IOT_CHAR - Character ( Will only check for min or max level. Amount doesn't matter since only 1 character can enter IOT_CHAR instance ).    IOT_PARTY - Party    IOT_GUILD - Guildamount - number of online party members (default is 1).min  - minimum level of all characters in the party (default is 1).max - maximum level of all characters in the party (default is max level in conf).Example:if( instance_check_ready(IOT_CHAR, getcharid(0), 1, 75) ){    mes "The player has met all the requirements to enter the instance.",    mes "The player is at least level 75 and is online.";    close;} else {    mes "The player does not meet all the requirements or is offline.";    close;}Example 2:if( instance_check_ready(IOT_PARTY, getcharid(1), 5, 10, 50) ){    mes "The party meets all the requirements to enter the instance.",    mes "All online members are between the levels 10-50 and at least 5 members are online.";    close;} else {    mes "Sorry, your party does not meet all the requirements.";    close;}Example 3:if( instance_check_ready(IOT_GUILD, getcharid(2), 36, 140, 150) ){    mes "The guild meets all the requirements to enter the instance.";    mes "All online members are between the levels 140-150 and at least 36 of them are online.";    close;} else {    mes "Sorry, your guild does not meet the requirements.";    close;}

[Credits: malufett for providing the base for which these commands were derived from].


What's New in Version v0.1

Released

  • v0.1 - Original Release



User Feedback

Recommended Comments

There are no comments to display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.