From a6a57e9e454fca911a7d1f9a027a17e50e2570a0 Mon Sep 17 00:00:00 2001 From: GodLesZ Date: Tue, 13 Dec 2011 11:00:21 +0000 Subject: Small correction of item bonus (bugreport:1878) - planed to make a HTML document, because tab's are always displayed different Small correction on instance_create() documentation git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15087 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 644c58d22..d022991a6 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -7043,7 +7043,16 @@ Example: set .@party_id, getcharid(1); // Attempt to create an instance using that party ID. set .@id, instance_create("Endless Tower", .@party_id); - if (.@id == -1) { // Party ID is in use by another instance. + if (.@id == -1) { // Invalid type - not used anymore + ... + } + else if (.@id == -2) { // Invalid Party ID + ... + } + else if (.@id == -3) { // No free instances (MAX_INSTANCE exceeded) + ... + } + else if (.@id == -4) { // Already exists ... } else (.@id < 0) { // Unspecified error while queuing instance. -- cgit v1.2.3-70-g09d2