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