diff options
-rw-r--r-- | server/scripts/evol_script_commands.txt | 27 |
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. |