SetItemBind » 历史记录 » 版本 1
machenhe, 2022-05-10 18:46
| 1 | 1 | machenhe | _*%{color:green}setItemBind%*_ |
|---|---|---|---|
| 2 | 设置指定装备栏中的道具绑定状态(禁止丢弃,禁止交易,禁止出售) |
||
| 3 | |||
| 4 | 标签:命令定义|setItemBind |
||
| 5 | |||
| 6 | *格式* |
||
| 7 | |命令名 |参数1 |参数2 | |
||
| 8 | |setItemBind |装备位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 | - |
||
| 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 |