OpenRecycleItem » 历史记录 » 版本 20
yangdefeng, 2022-05-27 19:14
1 | 2 | yangdefeng | h4. _*%{color:green}openRecycleItem%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 打开道具回收界面 |
||
4 | |||
5 | 标签:命令定义|openRecycleItem |
||
6 | |||
7 | *格式* |
||
8 | |命令名 | |
||
9 | |openRecycleItem | |
||
10 | |||
11 | 19 | yangdefeng | - |
12 | - |
||
13 | |||
14 | h5. *相关变量* |
||
15 | |||
16 | 16 | yangdefeng | |s$recycleItemList|本次回收背包格中的道具名称列表,以“,”分隔| |
17 | |n$recycleNum |本次回收对应背包格子数(从几个背包格中回收) | |
||
18 | 17 | yangdefeng | |\2=.本次回收第X个背包格中道具信息(X=[1-n$recycleNum]) | |
19 | 16 | yangdefeng | |s$recycleInfo_X_1|本次回收第X个背包格中道具名称 | |
20 | |s$recycleInfo_X_2|本次回收第X个背包格中道具数量 | |
||
21 | |s$recycleInfo_X_3|本次回收第X个背包格中道具回收货币变量名称 | |
||
22 | |s$recycleInfo_X_4|本次回收第X个背包格中道具回收总价 | |
||
23 | |||
24 | 11 | yangdefeng | - |
25 | - |
||
26 | |||
27 | 2 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
28 | 1 | machenhe | |
29 | 10 | yangdefeng | *使用前提* |
30 | 配置回收项 |
||
31 | 配置工具 |
||
32 | tejiePlatform-->查看-->列表信息二-->回收列表 |
||
33 | |||
34 | 配置完生成以下文件 |
||
35 | ..\Mir200\Envir\recycleItem.txt |
||
36 | |||
37 | - |
||
38 | - |
||
39 | |||
40 | 1 | machenhe | bq. [<notextile>@</notextile>main] |
41 | #act |
||
42 | 4 | yangdefeng | *{color:green}openRecycleItem* |
43 | 2 | yangdefeng | |
44 | 5 | yangdefeng | bq. %{color:deepPink}..\Mir200\Envir\Market_Def\QFunction-0.txt以下触发器 |
45 | 3 | yangdefeng | 点击回收界面中“快速回收”时触发% |
46 | 1 | machenhe | %{color:darkOrange}[<notextile>@</notextile>manualRecycle]% |
47 | #act |
||
48 | 20 | yangdefeng | [[sendMsg]] 6 执行了一次手动回收操作。 |
49 | 19 | yangdefeng | print 本次回收道具列表:[[OpenRecycleItem#相关变量|<$str(s$recycleItemList)>]] |
50 | print 回收道具列表长度:[[OpenRecycleItem#相关变量|<$str(n$recycleNum)>]] |
||
51 | 1 | machenhe | mov n$i 1 |
52 | 14 | yangdefeng | |
53 | 13 | yangdefeng | #if loop <$str(n$recycleNum)> |
54 | #act |
||
55 | 19 | yangdefeng | mov s$回收物 [[OpenRecycleItem#相关变量|<$str(s$recycleInfo_<$str(n$i)>_1)>]] |
56 | mov n$回收数 [[OpenRecycleItem#相关变量|<$str(n$recycleInfo_<$str(n$i)>_2)>]] |
||
57 | mov s$回收货币 [[OpenRecycleItem#相关变量|<$str(s$recycleInfo_<$str(n$i)>_3)>]] |
||
58 | mov n$回收总价 [[OpenRecycleItem#相关变量|<$str(n$recycleInfo_<$str(n$i)>_4)>]] |
||
59 | 13 | yangdefeng | print 回收物:<$str(s$回收物)>,回收数:<$str(n$回收数)>,回收货币:<$str(s$回收货币)>,回收总价:<$str(n$回收总价)> |
60 | inc n$i 1 |
||
61 | 3 | yangdefeng | |
62 | bq. %{color:deepPink}..\Mir200\Envir\Market_Def\QFunction-0.txt以下触发器 |
||
63 | 点击回收界面中“自动回收”勾选时触发% |
||
64 | %{color:darkOrange}[<notextile>@</notextile>autoRecycle]% |
||
65 | 6 | yangdefeng | #act |
66 | 1 | machenhe | [[sendMsg]] 6 点击了一次“自动回收”勾选。 |
67 | |||
68 | bq. %{color:deepPink}..\Mir200\Envir\Market_Def\QFunction-0.txt以下触发器 |
||
69 | 拾取道具时触发% |
||
70 | %{color:darkOrange}[<notextile>@</notextile>pickupItemEx]% |
||
71 | 6 | yangdefeng | #if |
72 | 7 | yangdefeng | [[equal]] [[setAutoRecycle|<$autoRecycle>]] 1 |
73 | 15 | yangdefeng | #act |
74 | [[doRecycleItem]] |
||
75 | 19 | yangdefeng | print 本次回收道具列表:[[OpenRecycleItem#相关变量|<$str(s$recycleItemList)>]] |
76 | print 回收道具列表长度:[[OpenRecycleItem#相关变量|<$str(n$recycleNum)>]] |
||
77 | 15 | yangdefeng | mov n$i 1 |
78 | |
||
79 | 19 | yangdefeng | #if loop [[OpenRecycleItem#相关变量|<$str(n$recycleNum)>]] |
80 | 15 | yangdefeng | #act |
81 | 19 | yangdefeng | mov s$回收物 [[OpenRecycleItem#相关变量|<$str(s$recycleInfo_<$str(n$i)>_1)>]] |
82 | mov n$回收数 [[OpenRecycleItem#相关变量|<$str(n$recycleInfo_<$str(n$i)>_2)>]] |
||
83 | mov s$回收货币 [[OpenRecycleItem#相关变量|<$str(s$recycleInfo_<$str(n$i)>_3)>]] |
||
84 | mov n$回收总价 [[OpenRecycleItem#相关变量|<$str(n$recycleInfo_<$str(n$i)>_4)>]] |
||
85 | 1 | machenhe | print 回收物:<$str(s$回收物)>,回收数:<$str(n$回收数)>,回收货币:<$str(s$回收货币)>,回收总价:<$str(n$回收总价)> |
86 | inc n$i 1 |