summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-22 00:02:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-22 00:02:35 +0300
commitfb7e893c4de7813beca7112689300ee369bb73c6 (patch)
tree1d160c74aa315b292dd264ce0b5392746eac0128
parent0bd02e91ecb108f0d772db74ef5b4f006db92067 (diff)
downloaddocs-fb7e893c4de7813beca7112689300ee369bb73c6.tar.gz
docs-fb7e893c4de7813beca7112689300ee369bb73c6.tar.bz2
docs-fb7e893c4de7813beca7112689300ee369bb73c6.tar.xz
docs-fb7e893c4de7813beca7112689300ee369bb73c6.zip
Add into docs script commands getcardbyindex and removecardbyindex.
-rw-r--r--server/scripts/evol_script_commands.txt27
1 files changed, 25 insertions, 2 deletions
diff --git a/server/scripts/evol_script_commands.txt b/server/scripts/evol_script_commands.txt
index e59aed0..21f3131 100644
--- a/server/scripts/evol_script_commands.txt
+++ b/server/scripts/evol_script_commands.txt
@@ -714,14 +714,14 @@ This command works same like hercules emotion command, except it removed limit f
---------------------------------------
-successremovecardsindex index
+*successremovecardsindex index
This command remove all cards from item by inventory index and put all cards in inventory.
Also show status effect 3.
---------------------------------------
-failedremovecardsindex index, flag
+*failedremovecardsindex index, flag
This command remove all cards from item by inventory index.
Also show status effect 2.
@@ -734,6 +734,29 @@ flag value:
---------------------------------------
+*getcardbyindex itemIndex, cardIndex
+
+This command return card id by item index and card (slot) index.
+If no cards found or error happend, return zero.
+
+Example:
+ .@item = requestitemindex();
+ mes "slot 0 = card " + str(getcardbyindex(.@item, 0));
+
+---------------------------------------
+
+*removecardbyindex itemIndex, cardIndex
+
+This command remove card from invetory and slot index.
+If error happend, return -1.
+If no errors, return 0.
+
+Example:
+ .@item = requestitemindex();
+ removecardbyindex .@item, 0;
+
+---------------------------------------
+
*htnew
Create a new hash table (hash map, associative array), and return it's ID.