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