From 16f3fe4fd1eeaa27ad093ea70b0a26054096bdb0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Dec 2018 06:52:34 +0300 Subject: Add script command expandInventoryResult. This function send to client final expand status. --- doc/script_commands.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 5fad09c9f..d2f945719 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -10247,6 +10247,7 @@ card_id - any card item id. returns true if all parameters correct false in other case. Works for 20160831 main, 20151118 RE, any zero version + --------------------------------------- *servicemessage("", {, }) @@ -10257,6 +10258,7 @@ specified by account ID or name, or to connected to npc player. It will not be seen by anyone else. Works for 20170830 RE and main and for any zero clients + --------------------------------------- *expandInventoryAck({, }) @@ -10274,4 +10276,22 @@ Valid result statuses: ItemId make sense only if result is EXPAND_INVENTORY_ASK_CONFIRMATION Works for 20181212 zero clients + +--------------------------------------- + +*expandInventoryResult() + +Send final inventory expansion result. +Normally this function should be called from script label +inventory_expansion::OnInventoryExpandConfirmed. + +Valid result values: + EXPAND_INVENTORY_RESULT_SUCCESS - success message + EXPAND_INVENTORY_RESULT_FAILED - other failed reason + EXPAND_INVENTORY_RESULT_OTHER_WORK - failed because player busy with other work + EXPAND_INVENTORY_RESULT_MISSING_ITEM - failed because missing item + EXPAND_INVENTORY_RESULT_MAX_SIZE - failed because inventory size already maximum + +Works for 20181212 zero clients + --------------------------------------- -- cgit v1.2.3-60-g2f50