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