SetItemState » 历史记录 » 版本 2
yangdefeng, 2022-06-22 15:53
1 | 1 | yangdefeng | _*%{color:green}setItemState%*_ |
---|---|---|---|
2 | 设定指定装备位道具的绑定状态 |
||
3 | |||
4 | 标签:命令定义|setItemState |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 |参数2 |参数3 | |
||
8 | |setItemState |装备位id |绑定类型 |激活/取消绑定类型 | |
||
9 | |||
10 | 说明: |
||
11 | * 参数1: 装备位id |
||
12 | ** 0-16 指定id装备位中的道具 |
||
13 | 参见装备位id说明[[装备位置]] |
||
14 | ** -1 |
||
15 | 当前打开的自定义道具栏中的道具 |
||
16 | 当前拾取道具 |
||
17 | |||
18 | * 参数2: 绑定类型 |
||
19 | ** 0 禁止丢弃 |
||
20 | ** 1 禁止交易 |
||
21 | *** 角色摆摊 |
||
22 | *** 玩家面对面交易 |
||
23 | ** 2 禁止放入仓库 |
||
24 | ** 3 禁止修理 |
||
25 | ** 4 禁止出售给NPC |
||
26 | ** 5 禁止爆出 |
||
27 | ** 6 丢弃后消失 |
||
28 | 2 | yangdefeng | ** 7 禁止拍卖 |
29 | 1 | yangdefeng | |
30 | * 参数3: 是否激活绑定类型 |
||
31 | ** 0 取消 |
||
32 | ** 1 激活 |
||
33 | |||
34 | - |
||
35 | - |
||
36 | |||
37 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
38 | |||
39 | bq. [<notextile>@</notextile>main] |
||
40 | #if |
||
41 | equal <$dress> |
||
42 | #act |
||
43 | sendMsg 6 装备位中没放衣服 |
||
44 | #elseSay |
||
45 | <text:禁扔:50:50/<notextile>@</notextile>禁扔> |
||
46 | <text:禁交易:50:100/<notextile>@</notextile>禁交易> |
||
47 | <text:禁存:50:150/<notextile>@</notextile>禁存> |
||
48 | <text:禁修理:50:200/<notextile>@</notextile>禁修理> |
||
49 | <text:禁出售:50:250/<notextile>@</notextile>禁出售> |
||
50 | <text:禁爆出:50:300/<notextile>@</notextile>禁爆出> |
||
51 | <text:丢弃消失:50:350/<notextile>@</notextile>丢弃消失> |
||
52 | |
||
53 | <text:可扔:200:50/<notextile>@</notextile>可扔> |
||
54 | <text:可交易:200:100/<notextile>@</notextile>可交易> |
||
55 | <text:可存:200:150/<notextile>@</notextile>可存> |
||
56 | <text:可修理:200:200/<notextile>@</notextile>可修理> |
||
57 | <text:可出售:200:250/<notextile>@</notextile>可出售> |
||
58 | <text:可爆出:200:300/<notextile>@</notextile>可爆出> |
||
59 | <text:丢弃可捡:200:350/<notextile>@</notextile>丢弃可捡> |
||
60 | |
||
61 | |
||
62 | [<notextile>@</notextile>禁扔] |
||
63 | #act |
||
64 | setItemState 0 0 1 |
||
65 | sendMsg 6 设置装备位中<$dress>[禁扔] |
||
66 | |
||
67 | [<notextile>@</notextile>禁交易] |
||
68 | #act |
||
69 | setItemState 0 1 1 |
||
70 | sendMsg 6 设置装备位中<$dress>[禁交易] |
||
71 | |
||
72 | [<notextile>@</notextile>禁存] |
||
73 | #act |
||
74 | setItemState 0 2 1 |
||
75 | sendMsg 6 设置装备位中<$dress>[禁存] |
||
76 | |
||
77 | [<notextile>@</notextile>禁修理] |
||
78 | #act |
||
79 | setItemState 0 3 1 |
||
80 | sendMsg 6 设置装备位中<$dress>[禁修理] |
||
81 | |
||
82 | [<notextile>@</notextile>禁出售] |
||
83 | #act |
||
84 | setItemState 0 4 1 |
||
85 | sendMsg 6 设置装备位中<$dress>[禁出售] |
||
86 | |
||
87 | [<notextile>@</notextile>禁爆出] |
||
88 | #act |
||
89 | setItemState 0 5 1 |
||
90 | sendMsg 6 设置装备位中<$dress>[禁爆出] |
||
91 | |
||
92 | [<notextile>@</notextile>丢弃消失] |
||
93 | #act |
||
94 | setItemState 0 6 1 |
||
95 | sendMsg 6 设置装备位中<$dress>[丢弃消失] |
||
96 | |
||
97 | |
||
98 | [<notextile>@</notextile>可扔] |
||
99 | #act |
||
100 | setItemState 0 0 0 |
||
101 | sendMsg 6 设置装备位中<$dress>[可扔] |
||
102 | |
||
103 | [<notextile>@</notextile>可交易] |
||
104 | #act |
||
105 | setItemState 0 1 0 |
||
106 | sendMsg 6 设置装备位中<$dress>[可交易] |
||
107 | |
||
108 | [<notextile>@</notextile>可存] |
||
109 | #act |
||
110 | setItemState 0 2 0 |
||
111 | sendMsg 6 设置装备位中<$dress>[可存] |
||
112 | |
||
113 | [<notextile>@</notextile>可修理] |
||
114 | #act |
||
115 | setItemState 0 3 0 |
||
116 | sendMsg 6 设置装备位中<$dress>[可修理] |
||
117 | |
||
118 | [<notextile>@</notextile>可出售] |
||
119 | #act |
||
120 | setItemState 0 4 0 |
||
121 | sendMsg 6 设置装备位中<$dress>[可出售] |
||
122 | |
||
123 | [<notextile>@</notextile>可爆出] |
||
124 | #act |
||
125 | setItemState 0 5 0 |
||
126 | sendMsg 6 设置装备位中<$dress>[可爆出] |
||
127 | |
||
128 | [<notextile>@</notextile>丢弃可捡] |
||
129 | #act |
||
130 | setItemState 0 6 0 |
||
131 | sendMsg 6 设置装备位中<$dress>[丢弃可捡] |