UpdateBoxItem » 历史记录 » 版本 6
yangdefeng, 2022-05-21 10:36
1 | 3 | yangdefeng | h4. _*%{color:green}updateBoxItem%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 刷新指定itemBox格子,例如删除itemBox格子中的物品后使用updateBoxItem刷新为空的itemBox |
||
4 | |||
5 | 标签:命令定义|updateBoxItem |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 | |
||
9 | |updateBoxItem |itemBox编号 | |
||
10 | |||
11 | 说明: |
||
12 | 2 | yangdefeng | * 参数1: itemBox编号 |
13 | 1 | machenhe | |
14 | 3 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
15 | |||
16 | *使用前提1* |
||
17 | 请开启配置开关"isUseCustomOKPanel" |
||
18 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
19 | |配置节点|[[tjconfig|[tjconfig]]] | |
||
20 | |配置项 |isUseCustomOkPanel=1 | |
||
21 | |||
22 | 5 | yangdefeng | h4. |
23 | 3 | yangdefeng | - |
24 | - |
||
25 | 1 | machenhe | |
26 | bq. [<notextile>@</notextile>main] |
||
27 | 4 | yangdefeng | #act |
28 | [[clsMainUI]] |
||
29 | 1 | machenhe | #say |
30 | 6 | yangdefeng | <[[dlg_itemBox_|itemBox]]:0:-100001:-1:0:0:-1:-1:*:tips> |
31 | <itemBox:1:-100001:-1:200:0:-1:-1:*:tips> |
||
32 | 2 | yangdefeng | |
33 | 1 | machenhe | <[[dlg_text_|text]]:放入0:0:400/<notextile>@</notextile>放入0> |
34 | 2 | yangdefeng | <text:放入1:200:400/<notextile>@</notextile>放入1> |
35 | |
||
36 | 1 | machenhe | <text:删除0:0:600/<notextile>@</notextile>删除0> |
37 | 2 | yangdefeng | <text:删除1:200:600/<notextile>@</notextile>删除1> |
38 | |
||
39 | 1 | machenhe | |
40 | [<notextile>@</notextile>放入0] |
||
41 | 4 | yangdefeng | #if |
42 | [[checkBaItemCountEx]] 粗铁 5 |
||
43 | 1 | machenhe | #act |
44 | [[bagItemIntoBox]] 粗铁 0 5 |
||
45 | 4 | yangdefeng | #elseAct |
46 | [[messageBox]] 没有5个粗铁可以放入 |
||
47 | 1 | machenhe | |
48 | [<notextile>@</notextile>放入1] |
||
49 | 4 | yangdefeng | #if |
50 | checkBaItemCountEx 麻布 5 |
||
51 | 1 | machenhe | #act |
52 | bagItemIntoBox 麻布 1 5 |
||
53 | 4 | yangdefeng | messageBox 没有5个麻布可以放入 |
54 | 2 | yangdefeng | |
55 | 1 | machenhe | [<notextile>@</notextile>删除0] |
56 | 2 | yangdefeng | #act |
57 | [[delBoxItem]] 0 5 |
||
58 | *{color:green}updateBoxItem* 0 |
||
59 | |
||
60 | 1 | machenhe | [<notextile>@</notextile>删除1] |
61 | #act |
||
62 | delBoxItem 1 5 |
||
63 | updateBoxItem 0 |