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