summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorGodLesZ <GodLesZ@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-13 11:00:21 +0000
committerGodLesZ <GodLesZ@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-13 11:00:21 +0000
commita6a57e9e454fca911a7d1f9a027a17e50e2570a0 (patch)
tree461c83bdd3b6df7b9dcae85eee481bd294ce46f5 /doc/script_commands.txt
parent9d694d82b4861271193535f0a7f77349482ac84e (diff)
downloadhercules-a6a57e9e454fca911a7d1f9a027a17e50e2570a0.tar.gz
hercules-a6a57e9e454fca911a7d1f9a027a17e50e2570a0.tar.bz2
hercules-a6a57e9e454fca911a7d1f9a027a17e50e2570a0.tar.xz
hercules-a6a57e9e454fca911a7d1f9a027a17e50e2570a0.zip
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
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt11
1 files changed, 10 insertions, 1 deletions
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.