DelBoxItem » 历史记录 » 版本 2
yangdefeng, 2022-05-20 11:08
1 | 1 | machenhe | _*%{color:green}delBoxItem%*_ |
---|---|---|---|
2 | |||
3 | 删除指定ItemBox中的物品 |
||
4 | |||
5 | 标签:命令定义|delBoxItem |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 | |
||
9 | |delBoxItem |itemBox编号 |删除数量 | |
||
10 | |||
11 | 说明: |
||
12 | 2 | yangdefeng | * 参数1: itemBox编号(0-7) |
13 | 1 | machenhe | |
14 | 2 | yangdefeng | * 参数2: 删除数量,只有可堆叠的物品有效, |
15 | 如果删后格子中还有物品显示,需要使用updateBoxItem命令刷新客户端的显示, |
||
16 | 如果参数为空,则删除全部物品 |
||
17 | 1 | machenhe | |
18 | *%{color:deepskyblue}脚本示例:%* |
||
19 | |||
20 | bq. [<notextile>@</notextile>main] |
||
21 | #ACT |
||
22 | #say |
||
23 | 2 | yangdefeng | <[[itemBox_|itemBox]]:0:0:0:0:0:40:40:*:tips> |
24 | <itemBox:1:0:0:200:0:40:40:*:tips> |
||
25 | 1 | machenhe | |
26 | 2 | yangdefeng | bq. <[[dlg_text_|text]]:放入0:0:400/<notextile>@</notextile>放入0> |
27 | 1 | machenhe | <text:放入1:200:400/<notextile>@</notextile>放入1> |
28 | |||
29 | bq. <text:删除0:0:600/<notextile>@</notextile>删除0> |
||
30 | <text:删除1:200:600/<notextile>@</notextile>删除1> |
||
31 | |||
32 | |||
33 | bq. [<notextile>@</notextile>放入0] |
||
34 | #act |
||
35 | 2 | yangdefeng | [[bagItemIntoBox]] 粗铁 0 5 |
36 | 1 | machenhe | |
37 | bq. [<notextile>@</notextile>放入1] |
||
38 | #act |
||
39 | bagItemIntoBox 麻布 1 5 |
||
40 | |||
41 | bq. [<notextile>@</notextile>删除0] |
||
42 | #act |
||
43 | 2 | yangdefeng | *{color:green}delBoxItem* 0 |
44 | [[\updateBoxIte]] 0 |
||
45 | 1 | machenhe | |
46 | bq. [<notextile>@</notextile>删除1] |
||
47 | #act |
||
48 | delBoxItem 1 5 |
||
49 | updateBoxItem 0 |