From cdf58dc552d8e80058361958b2c78c54016e1e4a Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Sun, 21 Jun 2009 23:38:28 +0000 Subject: Added instance command definitions, using what I could find and how they are used from the script provided. Further feed back may be nessecary. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13904 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 343098d73..a57a261bd 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -999,6 +999,7 @@ From here on, we will have the commands sorted as follow: 4.- Player-related commands. 5.- Mob / NPC -related commands. 6.- Other commands. +7.- Instance Commands. ===================== |1.- Basic commands.| @@ -6339,5 +6340,94 @@ This will open a book item at the specified page --------------------------------------- +======================== +|7.- Instance commands.| +======================== +--------------------------------------- + +*instance_create("",,) + +Create an instance using the name "" for the Party of . +Instance ID currently will only be ID_ENDLESS (5) or ID_CATACOMBS (6) +Most Instance_* commands are used in conjunction with this command and depend +on the ID this command returns. + +Example: + // Store the Party ID of the invoking character. + set .@party_id, getcharid(1); + // Atempt to create an instance using that party ID. + set .@id, instance_create("Endless Tower", .@party_id, ID_ENDLESS); + if (.@id == -1) { // Party ID is in use by another instance. + ... + } + else (.@id < 0) { // Unspecified error while queuing instance. + ... + } +--------------------------------------- + +*instance_destroy() + +Destroys instance with the ID . + +--------------------------------------- + +*instance_attachmap(,"") +*instance_detachmap(,"") + +Attach or detach the map "" to the instance with the . + +--------------------------------------- + +*instance_init(); + +Initiate the instance of . + +--------------------------------------- + +*instance_announce ,"",{,}; + +Works like announce, but has the paramter, where 0 = active instance? + +--------------------------------------- + +*instance_attach(); + +Attaches a script to the proviced ? + +--------------------------------------- + +*instance_npcname("",) + +Retrieve the unique name given to a copy of an NPC for an instance, the given +"" that belonds to instance . Can be used with such commands +as enablenpc and disablenpc, donpcevent, etc. + +--------------------------------------- + +*has_instance("") + +Check if the player has been queued for the instance. + +--------------------------------------- + +*instance_id() + +Apparantly returns the ID the player is currently attached too. + +--------------------------------------- + +*instance_warpall "",,; + +Warp all palyers in the instance to and given coordinates. + +--------------------------------------- + +*instance_set_timeout ,,; + +Lifetime of for , while is how long until the +instance times out while inactive. + +--------------------------------------- + Whew. That's about all of them. -- cgit v1.2.3-60-g2f50