ChangeGuildMaster » 历史记录 » 版本 1
yangdefeng, 2022-05-09 12:13
| 1 | 1 | yangdefeng | _*%{color:green}changeGuildMaster%*_ |
|---|---|---|---|
| 2 | 改变行会会长为当前角色 |
||
| 3 | %{color:deepPink}通过[默认行会系统][界面按钮]创建行会时, |
||
| 4 | 无须使用该命令.% |
||
| 5 | |||
| 6 | 标签:命令定义|changeGuildMaster |
||
| 7 | |||
| 8 | *格式* |
||
| 9 | |命令名 |参数1 | |
||
| 10 | |changeGuildMaster |目标行会| |
||
| 11 | |||
| 12 | *说明* |
||
| 13 | 参数1: 要改变会长的行会名称 |
||
| 14 | |||
| 15 | - |
||
| 16 | - |
||
| 17 | |||
| 18 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 19 | |||
| 20 | bq. [<notextile>@</notextile>main] |
||
| 21 | <创建行会/<notextile>@@</notextile>inputString1>\\ \\ |
||
| 22 | <加入行会/<notextile>@</notextile>加入>\\ \\ |
||
| 23 | <删除会员/<notextile>@</notextile>删除>\\ \\ |
||
| 24 | <改会长/<notextile>@</notextile>改会长>\\ \\ |
||
| 25 | |
||
| 26 | [<notextile>@</notextile>inputString1] |
||
| 27 | #if |
||
| 28 | [[haveGuild]] |
||
| 29 | #act |
||
| 30 | [[messageBox]] 你已有行会,不能创建 |
||
| 31 | break |
||
| 32 | |
||
| 33 | #if |
||
| 34 | [[checkGuildName]] s1 |
||
| 35 | #act |
||
| 36 | [[sendMsg]] 6 该行会名称已被占用 |
||
| 37 | break |
||
| 38 | |
||
| 39 | #if |
||
| 40 | not haveGuild |
||
| 41 | #act |
||
| 42 | [[addGuild]] <$str(s1)> self |
||
| 43 | messageBox <$str(s1)>行会创建成功 |
||
| 44 | [[mov]] a$可申请行会名 <$str(s1)> |
||
| 45 | |
||
| 46 | [<notextile>@</notextile>加入] |
||
| 47 | #if |
||
| 48 | #act |
||
| 49 | [[getGuildList]] s$行会列表 |
||
| 50 | |
||
| 51 | #if |
||
| 52 | not [[equal]] s$行会列表 |
||
| 53 | #act |
||
| 54 | [[pgExtractString]] , s$行会列表 s$行会拆分 n0 |
||
| 55 | [[addGuildMember]] <$str(s$行会拆分_1)> <$userName> |
||
| 56 | messageBox 你已加入行会<$str(s$行会拆分_1)> |
||
| 57 | #elseAct |
||
| 58 | messageBox 服务器上还没有行会\\ \\先创建一个\\ \\再换个角色来加入 |
||
| 59 | |
||
| 60 | [<notextile>@</notextile>删除] |
||
| 61 | #if |
||
| 62 | haveGuild |
||
| 63 | #act |
||
| 64 | [[delGuildMember]] <$guildName> <$userName> |
||
| 65 | messageBox 你已从<$guildName>行会退出 |
||
| 66 | #elseAct |
||
| 67 | messageBox 你还没有加入行会 |
||
| 68 | |
||
| 69 | [<notextile>@</notextile>改会长] |
||
| 70 | #if |
||
| 71 | [[isGuildMaster]] |
||
| 72 | #act |
||
| 73 | messageBox 你已经是会长 |
||
| 74 | break |
||
| 75 | |
||
| 76 | #if |
||
| 77 | not haveGuild |
||
| 78 | #act |
||
| 79 | messageBox 你还没加入行会 |
||
| 80 | break |
||
| 81 | |
||
| 82 | #if |
||
| 83 | #act |
||
| 84 | *{color:green}changeGuildMaster* <$guildName> |
||
| 85 | messageBox 恭喜,你现在是<$guildName>会长了 |