项目

一般

简介

DelBoxItem » 历史记录 » 版本 5

yangdefeng, 2022-05-20 17:31

1 5 yangdefeng
h4. _*%{color:green}delBoxItem%*_
2 1 machenhe
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 5 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
19 1 machenhe
20
bq. [<notextile>@</notextile>main]
21
#say
22 5 yangdefeng
<[[dlg_itemBox_|itemBox]]:0:-1:-1:0:0:-1:-1:*:tips>
23
<itemBox:1:-1:-1:200:0:-1:-1:*:tips>
24 1 machenhe
25 2 yangdefeng
bq. <[[dlg_text_|text]]:放入0:0:400/<notextile>@</notextile>放入0>
26 1 machenhe
<text:放入1:200:400/<notextile>@</notextile>放入1>
27
28
bq. <text:删除0:0:600/<notextile>@</notextile>删除0>
29
<text:删除1:200:600/<notextile>@</notextile>删除1>
30
31
32
bq. [<notextile>@</notextile>放入0]
33
#act
34 2 yangdefeng
[[bagItemIntoBox]] 粗铁 0 5
35 1 machenhe
36
bq. [<notextile>@</notextile>放入1]
37
#act
38
bagItemIntoBox 麻布 1 5
39
40
bq. [<notextile>@</notextile>删除0]
41
#act
42 2 yangdefeng
*{color:green}delBoxItem* 0
43 4 yangdefeng
[[updateBoxItem]] 0
44 1 machenhe
45
bq. [<notextile>@</notextile>删除1]
46
#act
47
delBoxItem 1 5
48
updateBoxItem 0