SetItemState » 历史记录 » 版本 1
yangdefeng, 2022-05-18 09:45
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 | |||
29 | * 参数3: 是否激活绑定类型 |
||
30 | ** 0 取消 |
||
31 | ** 1 激活 |
||
32 | |||
33 | - |
||
34 | - |
||
35 | |||
36 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
37 | |||
38 | bq. [<notextile>@</notextile>main] |
||
39 | #if |
||
40 | equal <$dress> |
||
41 | #act |
||
42 | sendMsg 6 装备位中没放衣服 |
||
43 | #elseSay |
||
44 | <text:禁扔:50:50/<notextile>@</notextile>禁扔> |
||
45 | <text:禁交易:50:100/<notextile>@</notextile>禁交易> |
||
46 | <text:禁存:50:150/<notextile>@</notextile>禁存> |
||
47 | <text:禁修理:50:200/<notextile>@</notextile>禁修理> |
||
48 | <text:禁出售:50:250/<notextile>@</notextile>禁出售> |
||
49 | <text:禁爆出:50:300/<notextile>@</notextile>禁爆出> |
||
50 | <text:丢弃消失:50:350/<notextile>@</notextile>丢弃消失> |
||
51 | |
||
52 | <text:可扔:200:50/<notextile>@</notextile>可扔> |
||
53 | <text:可交易:200:100/<notextile>@</notextile>可交易> |
||
54 | <text:可存:200:150/<notextile>@</notextile>可存> |
||
55 | <text:可修理:200:200/<notextile>@</notextile>可修理> |
||
56 | <text:可出售:200:250/<notextile>@</notextile>可出售> |
||
57 | <text:可爆出:200:300/<notextile>@</notextile>可爆出> |
||
58 | <text:丢弃可捡:200:350/<notextile>@</notextile>丢弃可捡> |
||
59 | |
||
60 | |
||
61 | [<notextile>@</notextile>禁扔] |
||
62 | #act |
||
63 | setItemState 0 0 1 |
||
64 | sendMsg 6 设置装备位中<$dress>[禁扔] |
||
65 | |
||
66 | [<notextile>@</notextile>禁交易] |
||
67 | #act |
||
68 | setItemState 0 1 1 |
||
69 | sendMsg 6 设置装备位中<$dress>[禁交易] |
||
70 | |
||
71 | [<notextile>@</notextile>禁存] |
||
72 | #act |
||
73 | setItemState 0 2 1 |
||
74 | sendMsg 6 设置装备位中<$dress>[禁存] |
||
75 | |
||
76 | [<notextile>@</notextile>禁修理] |
||
77 | #act |
||
78 | setItemState 0 3 1 |
||
79 | sendMsg 6 设置装备位中<$dress>[禁修理] |
||
80 | |
||
81 | [<notextile>@</notextile>禁出售] |
||
82 | #act |
||
83 | setItemState 0 4 1 |
||
84 | sendMsg 6 设置装备位中<$dress>[禁出售] |
||
85 | |
||
86 | [<notextile>@</notextile>禁爆出] |
||
87 | #act |
||
88 | setItemState 0 5 1 |
||
89 | sendMsg 6 设置装备位中<$dress>[禁爆出] |
||
90 | |
||
91 | [<notextile>@</notextile>丢弃消失] |
||
92 | #act |
||
93 | setItemState 0 6 1 |
||
94 | sendMsg 6 设置装备位中<$dress>[丢弃消失] |
||
95 | |
||
96 | |
||
97 | [<notextile>@</notextile>可扔] |
||
98 | #act |
||
99 | setItemState 0 0 0 |
||
100 | sendMsg 6 设置装备位中<$dress>[可扔] |
||
101 | |
||
102 | [<notextile>@</notextile>可交易] |
||
103 | #act |
||
104 | setItemState 0 1 0 |
||
105 | sendMsg 6 设置装备位中<$dress>[可交易] |
||
106 | |
||
107 | [<notextile>@</notextile>可存] |
||
108 | #act |
||
109 | setItemState 0 2 0 |
||
110 | sendMsg 6 设置装备位中<$dress>[可存] |
||
111 | |
||
112 | [<notextile>@</notextile>可修理] |
||
113 | #act |
||
114 | setItemState 0 3 0 |
||
115 | sendMsg 6 设置装备位中<$dress>[可修理] |
||
116 | |
||
117 | [<notextile>@</notextile>可出售] |
||
118 | #act |
||
119 | setItemState 0 4 0 |
||
120 | sendMsg 6 设置装备位中<$dress>[可出售] |
||
121 | |
||
122 | [<notextile>@</notextile>可爆出] |
||
123 | #act |
||
124 | setItemState 0 5 0 |
||
125 | sendMsg 6 设置装备位中<$dress>[可爆出] |
||
126 | |
||
127 | [<notextile>@</notextile>丢弃可捡] |
||
128 | #act |
||
129 | setItemState 0 6 0 |
||
130 | sendMsg 6 设置装备位中<$dress>[丢弃可捡] |