From fb7e893c4de7813beca7112689300ee369bb73c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Jun 2016 00:02:35 +0300 Subject: Add into docs script commands getcardbyindex and removecardbyindex. --- server/scripts/evol_script_commands.txt | 27 +++++++++++++++++++++++++-- 1 file 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. -- cgit v1.2.3-70-g09d2