From 8fda7d4ba6dde60dc259ba0fc79775713799b619 Mon Sep 17 00:00:00 2001 From: script-z3r0 Date: Tue, 29 Nov 2011 21:58:18 +0000 Subject: Updated doc/script_commands.txt to include instance variables from wiki git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15002 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 88 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 6f7a213c1..7645ce046 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4,7 +4,7 @@ //= A reference manual for the eAthena scripting language. //= Commands are sorted depending on their functionality. //===== Version =========================================== -//= 3.45.20110709 +//= 4.0.20111128 //========================================================= //= 1.0 - First release, filled will as much info as I could //= remember or figure out, most likely there are errors, @@ -183,6 +183,9 @@ //= Added 'getmercinfo' command. [Ai4rei] //= 3.46.20110810 //= Added information on OnTouchNPC and 'unitwarp' special case [Skotlex] +//= 4.0.20111128 +//= Updated to Include Instance Commands [Z3R0] +//= Included Instance Variable Definition [BrianL] //========================================================= This document is a reference manual for all the scripting commands and functions @@ -7215,6 +7218,89 @@ can be one of the following: If the character does not have a mercenary, the command returns "" for name and 0 for all other types. + +// Added Instance Commands +---------------------------------------- + +*instance_create ""{,}; + +Creates an instance with the name "", for the party . + +Returns: Unique ID of the instance, negative number on failure. + +---------------------------------------- + +*instance_attachmap "", {,); + +Attaches the specified map onto the instance. +Optional parameter specifies whether a map requires emulation for instancing or not (default). + +Returns: Name of the map if successful, otherwise an empty string. + +---------------------------------------- + +*instance_attach ; + +Attaches this instance onto the current script. + +---------------------------------------- + +*instance_set_timeout , {, }; + + is the total time the instance will stay alive, + is how long players have when they are outside of the instance until it is destroyed. + +If is ommited, current instance attached to the current script is taken. +If no instance attached, instance of the attached player's party is taken. + +---------------------------------------- + +*instance_init ; + +Creates the instance, copying all NPCs and initializing the timer. + +---------------------------------------- + +*instance_destroy {}; + +Removes the instance, destroys all NPCs on the instanced map and ends the timer. + +If is ommited, current instance attached to the current script is taken. +If no instance attached, instance of the attached player's party is taken. + +---------------------------------------- + +*instance_npcname ""{, }; + +Retrieves the unique address of an NPC on an instanced map. + +If is ommited, current instance attached to the current script is taken. If no instance attached, instance of the attached player's party is taken. + +---------------------------------------- + +*instance_announce , "", , {, {, {, {, }}}}; + +Works like announce command. + +Displays an announce inside the specified instance. + +If is 0, current instance attached to the current script is taken. If no instance attached, instance of the attached player's party is taken. + +---------------------------------------- + +*has_instance ""{, }; + +Checks, whether the given map is attached to the specified instance or not. If is ommited, current instance attached to the current script is taken. If no instance attached, instance of the attached player's party is taken. +Returns: Name of the instance map if successful, otherwise an empty string. + +---------------------------------------- + +*instance_warpall "", , {, }; + +Warps entire party, that is attached to given instance to a map at specified coordinates. + +If is ommited, current instance attached to the current script is taken. If no instance attached, instance of the attached player's party is taken. + ---------------------------------------- Whew. -- cgit v1.2.3-70-g09d2