Added a script command for instance information (#1815)
With this script command you can look up information about a specific instance. This way you do not have to hardcode values specified in the database in the script if you need it. Thanks to @aleos89 for the script documentation.
This commit is contained in:
@@ -8389,6 +8389,30 @@ if (instance_check_guild(getcharid(2),2,2,149)) {
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*instance_info("<instance name>",<info type>{,<instance_db map index>});
|
||||
|
||||
Returns the specified <info type> of the given <instance name> from the instance database.
|
||||
If the <instance name> is unknown or an invalid <info type> is supplied -1 will be returned.
|
||||
|
||||
Valid info types:
|
||||
IIT_ID: Instance database ID as integer.
|
||||
IIT_TIME_LIMIT: Instance database total life time as integer.
|
||||
IIT_IDLE_TIMEOUT: Instance database timeout time as integer.
|
||||
IIT_ENTER_MAP: Instance database enter map as string.
|
||||
IIT_ENTER_X: Instance database enter X location as integer.
|
||||
IIT_ENTER_Y: Instance database enter Y location as integer.
|
||||
IIT_MAPCOUNT: Instance database total maps as integer.
|
||||
IIT_MAP: Instance database map name from the given <instance_db map index> as string.
|
||||
If the index is invalid an empty string will be returned.
|
||||
|
||||
Example:
|
||||
|
||||
.@name$ = "Endless Tower";
|
||||
mes .@name$ + " will be destroyed if no one is in the instance for " + instance_info(.@name$,IIT_IDLETIMEOUT) + " seconds.";
|
||||
// Endless Tower will be destroyed if no one is in the instance for 300 seconds.
|
||||
|
||||
---------------------------------------
|
||||
|
||||
=========================
|
||||
|8.- Quest Log commands.|
|
||||
=========================
|
||||
|
||||
Reference in New Issue
Block a user