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