@@ -6217,19 +6217,32 @@ has no gear, script will be terminated with an error.
6217
6217
//=====================================
6218
6218
---------------------------------------
6219
6219
6220
- *openstorage()
6220
+ *openstorage(<storage_constant>{, <storage_mode>});
6221
6221
6222
- This will open character's Kafra storage window on the client connected to
6223
- the invoking character. It can be used from any kind of NPC or item
6224
- script, not just limited to Kafra Staff.
6222
+ This command opens the specified storage window <storage_id> on the client
6223
+ connected to the invoking character. It can be used from any kind of NPC or
6224
+ item script and is not limited to Kafra Staff interactions .
6225
6225
6226
- The storage window opens regardless of whether there are open NPC dialogs
6227
- or not, but it is preferred to close the dialog before displaying the
6228
- storage window, to avoid any disruption when both windows overlap .
6226
+ The storage window will open regardless of whether there are open NPC dialogs,
6227
+ but it is recommended to close any dialogs before displaying the storage window
6228
+ to avoid overlapping interface elements, which could disrupt the user experience .
6229
6229
6230
+ Parameters:
6231
+ <storage_constant>: Specifies which storage to open (e.g., STORAGE_TYPE_MAIN).
6232
+ Constants are declared in conf/storage.conf
6233
+ <storage_mode> (optional): Defines the access permissions for the storage window.
6234
+
6235
+ Storage Modes (bitmask):
6236
+ STORAGE_ACCESS_VIEW: View storage only.
6237
+ STORAGE_ACCESS_GET: Allow retrieving items from storage.
6238
+ STORAGE_ACCESS_PUT: Allow depositing items into storage.
6239
+ STORAGE_ACCESS_ALL: (Default mode) Full access for viewing, retrieving,
6240
+ and depositing items.
6241
+
6242
+ Example Usage:
6230
6243
mes("I will now open your stash for you");
6231
6244
close2();
6232
- openstorage();
6245
+ openstorage(STORAGE_TYPE_MAIN );
6233
6246
end;
6234
6247
6235
6248
The mapflag 'nostorage' when set to type '2' (or 3), will not open the
0 commit comments