SetItemBind » 历史记录 » 版本 2
tejie, 2026-01-15 18:15
| 1 | 2 | tejie | h4. _*%{color:green}setItemBind%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 1 | machenhe | 设置指定装备栏中的道具绑定状态(禁止丢弃,禁止交易,禁止出售) |
| 4 | |||
| 5 | 2 | tejie | 标签:命令^setItemBind |
| 6 | 1 | machenhe | |
| 7 | *格式* |
||
| 8 | |命令名 |参数1 |参数2 | |
||
| 9 | |setItemBind |装备位id |绑定或解绑 | |
||
| 10 | |||
| 11 | *说明* |
||
| 12 | 2 | tejie | |^.参数1| *装备位id* |
| 13 | 0-16 指定id装备位中的道具 |
||
| 14 | 1 | machenhe | 参见装备位id说明[[装备位置]] |
| 15 | 2 | tejie | *-1 当前操作道具* |
| 16 | 1 | machenhe | 当前打开的自定义道具栏中的道具 |
| 17 | 2 | tejie | 当前拾取道具| |
| 18 | |^.参数2|绑定或解绑 |
||
| 19 | 0 解绑 |
||
| 20 | 1 绑定| |
||
| 21 | 1 | machenhe | |
| 22 | - |
||
| 23 | - |
||
| 24 | |||
| 25 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 26 | |||
| 27 | bq. [<notextile>@</notextile>main] |
||
| 28 | #say |
||
| 29 | <检测/<notextile>@</notextile>检测(检测)>\\ \\ |
||
| 30 | <绑定/<notextile>@</notextile>检测(绑定)>\\ \\ |
||
| 31 | <解绑/<notextile>@</notextile>检测(解绑)>\\ \\ |
||
| 32 | |
||
| 33 | [<notextile>@</notextile>检测] |
||
| 34 | #if |
||
| 35 | equal [[装备位置|<$dress>]] |
||
| 36 | #act |
||
| 37 | [[sendTipsMsg]] 特戒提示, 没穿戴衣服/scolor=222 |
||
| 38 | break |
||
| 39 | |
||
| 40 | #if |
||
| 41 | [[checkScriptParam]] 绑定 |
||
| 42 | #act |
||
| 43 | goto <notextile>@</notextile>绑定 |
||
| 44 | break |
||
| 45 | |
||
| 46 | #if |
||
| 47 | checkScriptParam 解绑 |
||
| 48 | #act |
||
| 49 | goto <notextile>@</notextile>解绑 |
||
| 50 | break |
||
| 51 | |
||
| 52 | #if |
||
| 53 | [[checkItemBind]] 0 |
||
| 54 | #act |
||
| 55 | sendTipsMsg 特戒提示, 衣服已绑定/scolor=222 |
||
| 56 | |
||
| 57 | #if |
||
| 58 | not checkItemBind 0 |
||
| 59 | #act |
||
| 60 | sendTipsMsg 特戒提示, 衣服未绑定/scolor=222 |
||
| 61 | |
||
| 62 | [<notextile>@</notextile>绑定] |
||
| 63 | #if |
||
| 64 | not checkItemBind 0 |
||
| 65 | #act |
||
| 66 | *%{color:green}setItemBind%* 0 1 |
||
| 67 | sendTipsMsg 特戒提示, 设定衣服绑定/scolor=222 |
||
| 68 | #elseAct |
||
| 69 | sendTipsMsg 特戒提示, 衣服就是绑定的/scolor=222 |
||
| 70 | |
||
| 71 | [<notextile>@</notextile>解绑] |
||
| 72 | #if |
||
| 73 | checkItemBind 0 |
||
| 74 | #act |
||
| 75 | setItemBind 0 0 |
||
| 76 | sendTipsMsg 特戒提示, 设定衣服解绑/scolor=222 |
||
| 77 | #elseAct |
||
| 78 | sendTipsMsg 特戒提示, 衣服就是未绑的/scolor=222 |